]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/usb/dwc2/gadget.c
usb: dwc2: gadget: set op_state in vbus_session call
authorGregory Herrero <gregory.herrero@intel.com>
Tue, 29 Sep 2015 10:08:20 +0000 (12:08 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 1 Oct 2015 17:40:24 +0000 (12:40 -0500)
commitcd0e641c8da3c763f1f4b838a9bc30f1297f68d0
tree57cae2ccfb5787a6f6d47c573b11926cfbca680d
parent77ba9119adc48a0bb890ca121f6b8f09162c9182
usb: dwc2: gadget: set op_state in vbus_session call

Some device may have external id pin control enabled, so op_state
will not be set on id pin interrupt change.
Thus, ensure op_state is set to peripheral during vbus detection.

Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Tested-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Tested-by: John Youn <johnyoun@synopsys.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c