diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-03-04 11:32:30 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:31 -0400 |
commit | 288ead45fa6637e959015d055304f521cbbc0575 (patch) | |
tree | b150572e95760f26f905802269b3a76da0260976 /drivers/usb/host/sl811-hcd.c | |
parent | 45f30e0bdadd4660383250e85b543b0bea05413d (diff) |
USB: remove bogus USB_PORT_FEAT_*_SPEED symbols
This patch (as1348) removes the bogus
USB_PORT_FEAT_{HIGHSPEED,SUPERSPEED} symbols from ch11.h. No such
features are defined by the USB spec. (There is a PORT_LOWSPEED
feature, but the spec doesn't mention it except to say that host
software should never use it.) The speed indicators are port
statuses, not port features.
As a temporary workaround for the xhci-hcd driver, a fictional
USB_PORT_STAT_SUPER_SPEED symbol is added.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/sl811-hcd.c')
-rw-r--r-- | drivers/usb/host/sl811-hcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index 8f2f477890c4..dcd7fab7179c 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c | |||
@@ -1121,7 +1121,7 @@ sl811h_timer(unsigned long _sl811) | |||
1121 | u8 signaling = sl811->ctrl1 & SL11H_CTL1MASK_FORCE; | 1121 | u8 signaling = sl811->ctrl1 & SL11H_CTL1MASK_FORCE; |
1122 | const u32 mask = (1 << USB_PORT_FEAT_CONNECTION) | 1122 | const u32 mask = (1 << USB_PORT_FEAT_CONNECTION) |
1123 | | (1 << USB_PORT_FEAT_ENABLE) | 1123 | | (1 << USB_PORT_FEAT_ENABLE) |
1124 | | (1 << USB_PORT_FEAT_LOWSPEED); | 1124 | | USB_PORT_STAT_LOW_SPEED; |
1125 | 1125 | ||
1126 | spin_lock_irqsave(&sl811->lock, flags); | 1126 | spin_lock_irqsave(&sl811->lock, flags); |
1127 | 1127 | ||
@@ -1162,7 +1162,7 @@ sl811h_timer(unsigned long _sl811) | |||
1162 | } else { | 1162 | } else { |
1163 | sl811->port1 |= mask; | 1163 | sl811->port1 |= mask; |
1164 | if (irqstat & SL11H_INTMASK_DP) | 1164 | if (irqstat & SL11H_INTMASK_DP) |
1165 | sl811->port1 &= ~(1 << USB_PORT_FEAT_LOWSPEED); | 1165 | sl811->port1 &= ~USB_PORT_STAT_LOW_SPEED; |
1166 | sl811->irq_enable = SL11H_INTMASK_INSRMV | SL11H_INTMASK_RD; | 1166 | sl811->irq_enable = SL11H_INTMASK_INSRMV | SL11H_INTMASK_RD; |
1167 | } | 1167 | } |
1168 | 1168 | ||
@@ -1173,7 +1173,7 @@ sl811h_timer(unsigned long _sl811) | |||
1173 | #ifdef USE_B | 1173 | #ifdef USE_B |
1174 | sl811->irq_enable |= SL11H_INTMASK_DONE_B; | 1174 | sl811->irq_enable |= SL11H_INTMASK_DONE_B; |
1175 | #endif | 1175 | #endif |
1176 | if (sl811->port1 & (1 << USB_PORT_FEAT_LOWSPEED)) { | 1176 | if (sl811->port1 & USB_PORT_STAT_LOW_SPEED) { |
1177 | sl811->ctrl1 |= SL11H_CTL1MASK_LSPD; | 1177 | sl811->ctrl1 |= SL11H_CTL1MASK_LSPD; |
1178 | ctrl2 |= SL811HS_CTL2MASK_DSWAP; | 1178 | ctrl2 |= SL811HS_CTL2MASK_DSWAP; |
1179 | } | 1179 | } |