Revert "USB / PM: Allow USB devices to remain runtime-suspended when sleeping"
authorJohan Hovold <johan@kernel.org>
Mon, 2 May 2016 13:35:57 +0000 (15:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 May 2016 15:44:31 +0000 (08:44 -0700)
commit9be427efc764464fbcbc1ca3f0d34f575cb0f037
treeeb9d8136387c816bfacfc8b30d9e82b5dc250d75
parent550af790882f82ed24bb6d75557c2b117a7a0c9d
Revert "USB / PM: Allow USB devices to remain runtime-suspended when sleeping"

This reverts commit e3345db85068ddb937fc0ba40dfc39c293dad977, which
broke system resume for a large class of devices.

Devices that after having been reset during resume need to be rebound
due to a missing reset_resume callback, are now left in a suspended
state. This specifically broke resume of common USB-serial devices,
which are now unusable after system suspend (until disconnected and
reconnected) when USB persist is enabled.

During resume, usb_resume_interface will set the needs_binding flag for
such interfaces, but unlike system resume, run-time resume does not
honour it.

Cc: stable <stable@vger.kernel.org> # 4.5
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/port.c
drivers/usb/core/usb.c