]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 21:58:59 +0000 (14:58 -0700)
commit84ac5d1140f716a616522f952734e850448d2556
treef2a6f653d022bd5f20c4e6c38618a4d7da2c88fa
parentb6a619a883c38e3f01749afe13dd23395c94a058
usb: musb: only restore devctl when session was set in backup

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).

Cc: <stable@vger.kernel.org> # v4.2+
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c