Patch "usb: gadget: pxa27x: fix suspend callback" has been added to the 4.1-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
usb: gadget: pxa27x: fix suspend callback
to the 4.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
usb-gadget-pxa27x-fix-suspend-callback.patch
and it can be found in the queue-4.1 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
391e6dcb37857d5659b53def2f41e2f56850d33cMon Sep 17 00:00:00 2001
From: Felipe Balbi <[email protected]>
Date: Wed, 18 Nov 2015 17:06:00 -0600
Subject: usb: gadget: pxa27x: fix suspend callback
From: Felipe Balbi <[email protected]>
commit 391e6dcb37857d5659b53def2f41e2f56850d33c upstream.
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 callinggadget_driver->disconnect().
--- drivers/usb/gadget/udc/pxa27x_udc.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/usb/gadget/udc/pxa27x_udc.c +3 -0
@@ -2535,6 +2535,9 @@ static int pxa_udc_suspend(struct platfo udc->pullup_resume = udc->pullup_on;dplus_pullup (udc,0 ); +if (udc->driver) + udc->driver->disconnect (&udc->gadget); +return 0 ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.1/usb-musb-usb_ti_cppi41_dma-requires-dmaengine-support.patch queue-4.1/usb-gadget-pxa27x-fix-suspend-callback.patch