]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
usb: musb: only restore devctl when session was set in backup
authorBin Liu <b-liu@ti.com>
Tue, 31 May 2016 15:05:24 +0000 (10:05 -0500)
committerKamal Mostafa <kamal@canonical.com>
Wed, 13 Jul 2016 15:59:55 +0000 (08:59 -0700)
commit991bd3bf85ebc91ebafd5e6035885e576d413e85
tree645359e2a992c83fbd48d24801434474b29c898a
parentbafb22b13a36f75464400946aa1419d466cd5e1c
usb: musb: only restore devctl when session was set in backup

BugLink: http://bugs.launchpad.net/bugs/1601952
commit 84ac5d1140f716a616522f952734e850448d2556 upstream.

If the session bit was not set in the backup of devctl register,
restoring devctl would clear the session bit. Therefor, only restore
devctl register when the session bit was set in the backup.

This solves the device enumeration failure in otg mode exposed by commit
56f487c (PM / Runtime: Update last_busy in rpm_resume).

Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/usb/musb/musb_core.c