usb: musb: da8xx: Fix host mode suspend
authorAlexandre Bailon <abailon@baylibre.com>
Thu, 2 Feb 2017 03:30:20 +0000 (21:30 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 09:05:10 +0000 (10:05 +0100)
commit486fc20ac8391338a42b015801b846acda4db7b7
tree821c31849f5410547f59eb178bd47834e11e7fbb
parenta926ed11e7b4325f0ece739d7188e8bdbb99fb44
usb: musb: da8xx: Fix host mode 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.

Use the quirk MUSB_PRESERVE_SESSION to preseve MUSB_DEVCTL during 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/da8xx.c