summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-tilegx.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2013-07-30 15:37:33 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-31 17:29:03 -0700
commit28e861658e23ca94692f98e245d254c75c8088a7 (patch)
treeaaddbdfa86dfa7890e74c3a9b805dff53b8dc085 /drivers/usb/host/ehci-tilegx.c
parent15b7336e02d998720c5ace47036f7e539365bb05 (diff)
downloadlinux-stable-28e861658e23ca94692f98e245d254c75c8088a7.tar.gz
linux-stable-28e861658e23ca94692f98e245d254c75c8088a7.tar.bz2
linux-stable-28e861658e23ca94692f98e245d254c75c8088a7.zip
USB: refactor code for enabling/disabling remote wakeup
The hub driver is inconsistent in its organization of code for enabling and disabling remote wakeup. There is a special routine to disable wakeup for SuperSpeed devices but not for slower devices, and there is no special routine to enable wakeup. This patch refactors the code. It renames and changes the existing function to make it handle both SuperSpeed and non-SuperSpeed devices, and it adds a corresponding routine to enable remote wakeup. It also changes the speed determination to look at the device's speed rather than the speed of the parent hub -- this shouldn't make any difference because a SuperSpeed device always has to be attached to a SuperSpeed hub and conversely. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-tilegx.c')
0 files changed, 0 insertions, 0 deletions