diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-03-04 17:05:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:31 -0400 |
commit | 749da5f82fe33ff68dd4aa1a5e35cd9aa6246dab (patch) | |
tree | 2c0a7c689ab6a58f3a799ae51e41ac885e212194 /drivers/usb/host/isp1362-hcd.c | |
parent | 288ead45fa6637e959015d055304f521cbbc0575 (diff) |
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>
Diffstat (limited to 'drivers/usb/host/isp1362-hcd.c')
-rw-r--r-- | drivers/usb/host/isp1362-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c index acc157da7275..6a6a50849bfe 100644 --- a/drivers/usb/host/isp1362-hcd.c +++ b/drivers/usb/host/isp1362-hcd.c | |||
@@ -1265,7 +1265,7 @@ static int isp1362_urb_enqueue(struct usb_hcd *hcd, | |||
1265 | 1265 | ||
1266 | /* don't submit to a dead or disabled port */ | 1266 | /* don't submit to a dead or disabled port */ |
1267 | if (!((isp1362_hcd->rhport[0] | isp1362_hcd->rhport[1]) & | 1267 | if (!((isp1362_hcd->rhport[0] | isp1362_hcd->rhport[1]) & |
1268 | (1 << USB_PORT_FEAT_ENABLE)) || | 1268 | USB_PORT_STAT_ENABLE) || |
1269 | !HC_IS_RUNNING(hcd->state)) { | 1269 | !HC_IS_RUNNING(hcd->state)) { |
1270 | kfree(ep); | 1270 | kfree(ep); |
1271 | retval = -ENODEV; | 1271 | retval = -ENODEV; |