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)
commit391e6dcb37857d5659b53def2f41e2f56850d33c
treeb08adef60acf86153c1c4dd61b17c3bcb5a75147
parent7fe9a937d5156761cf79dc354f616c726b5c09e2
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