Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddbfc229 authored by Tarun Gupta's avatar Tarun Gupta
Browse files

usb: gadget: u_bam: Add usb auto pm APIs to gbam_disconnect work



Add the auto pm API to gbam_disconnect_work. As it is required to
deccrement power usage count of gadget driver upon cable
disconnect or after usb bus suspend.

Change-Id: Ie77e0cd6fa06427dc1adbae47d0a4e0db084a1bf
Signed-off-by: default avatarTarun Gupta <tarung@codeaurora.org>
parent 0597b5d5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1172,6 +1172,11 @@ static void gbam_disconnect_work(struct work_struct *w)

	msm_bam_dmux_close(d->id);
	clear_bit(BAM_CH_OPENED, &d->flags);
	/*
	 * Decrement usage count which was incremented upon cable connect
	 * or cable disconnect in suspended state
	 */
	usb_gadget_autopm_put_async(port->gadget);
}

static void gbam2bam_disconnect_work(struct work_struct *w)