]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: pxa27x: fix suspend callback
authorFelipe Balbi <balbi@ti.com>
Wed, 18 Nov 2015 23:06:00 +0000 (17:06 -0600)
committerFelipe Balbi <balbi@ti.com>
Thu, 19 Nov 2015 20:48:35 +0000 (14:48 -0600)
commit190e24c36ebab90c93696d9189fae1f940148444
treeb08adef60acf86153c1c4dd61b17c3bcb5a75147
parentbc426b0adcc03911a92a1af7276812a863077be7
usb: gadget: pxa27x: fix suspend callback

pxa27x disconnects pullups on suspend but doesn't
notify the gadget driver about it, so gadget driver
can't disable the endpoints it was using.

This causes problems on resume because gadget core
will think endpoints are still enabled and just
ignore the following usb_ep_enable().

Fix this problem by calling
gadget_driver->disconnect().

Cc: <stable@vger.kernel.org> # v3.10+
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/pxa27x_udc.c