]> git.baikalelectronics.ru Git - kernel.git/commit
USB: straighten out port feature vs. port status usage
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 4 Mar 2010 22:05:08 +0000 (17:05 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:31 +0000 (13:21 -0700)
commit23b84e965210134bb90e9872ec5c0c2287559b69
tree2c0a7c689ab6a58f3a799ae51e41ac885e212194
parent5e46d46817ccb73e3684b60e74baee5e4f48e8b0
USB: straighten out port feature vs. port status usage

This patch (as1349b) clears up the confusion in many USB host
controller drivers between port features and port statuses.  In mosty
cases it's true that the status bit is in the position given by the
corresponding feature value, but that's not always true and it's not
guaranteed in the USB spec.

There's no functional change, just replacing expressions of the form
(1 << USB_PORT_FEAT_x) with USB_PORT_STAT_x, which has the same value.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c
drivers/usb/host/ehci-hub.c
drivers/usb/host/isp1362-hcd.c
drivers/usb/host/isp1760-hcd.c
drivers/usb/host/oxu210hp-hcd.c
drivers/usb/host/r8a66597-hcd.c
drivers/usb/host/sl811-hcd.c
drivers/usb/host/xhci-hub.c
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_virthub.c