]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: Add a quirk to preserve the session during suspend
authorAlexandre Bailon <abailon@baylibre.com>
Thu, 2 Feb 2017 03:30:19 +0000 (21:30 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 09:05:10 +0000 (10:05 +0100)
commit3699cd934b6c36b5178226818ca8ee275adf4a22
tree3d63577f6d347261ef824bdde14985332665a5cd
parent2eab422d3f1736213792e91dbfe47d0f0385f22a
usb: musb: Add a quirk to preserve the session during suspend

On da8xx, VBUS is not maintained during suspend when musb is in host mode.
On resume, all the connected devices will be disconnected and then will
be enumerated again.
This happens because MUSB_DEVCTL is cleared during suspend.
Add a quirk to not clear MUSB_DEVCTL and then preserve the  session during
a suspend.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h