OSDN Git Service

USB: add flag for HCDs that can't receive wakeup requests (isp1760-hcd)
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 29 Jan 2015 20:05:04 +0000 (15:05 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Sat, 31 Jan 2015 17:05:06 +0000 (09:05 -0800)
commit074f9dd55f9cab1b82690ed7e44bcf38b9616ce0
tree5ef4e9054a862b930cd75f394f2c0a62e14361b2
parent3f2cee73b650921b2e214bf487b2061a1c266504
USB: add flag for HCDs that can't receive wakeup requests (isp1760-hcd)

Currently the USB stack assumes that all host controller drivers are
capable of receiving wakeup requests from downstream devices.
However, this isn't true for the isp1760-hcd driver, which means that
it isn't safe to do a runtime suspend of any device attached to a
root-hub port if the device requires wakeup.

This patch adds a "cant_recv_wakeups" flag to the usb_hcd structure
and sets the flag in isp1760-hcd.  The core is modified to prevent a
direct child of the root hub from being put into runtime suspend with
wakeup enabled if the flag is set.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Nicolas Pitre <nico@linaro.org>
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/core/driver.c
drivers/usb/host/isp1760-hcd.c
include/linux/usb/hcd.h