]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jul 2016 16:31:13 +0000 (09:31 -0700)
commit089a2d8400a63701ed271c03f6bf8b2d29bb5b98
treec1560be8398903ffe73090f596570959aa3f1bf6
parent4fe6d4b48d7213f441e119256f245d8903bc8ac5
usb: musb: only restore devctl when session was set in backup

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>
drivers/usb/musb/musb_core.c