diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2010-12-07 00:00:19 -0500 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2011-03-13 21:23:50 -0400 |
commit | 131dec344d5e41f01e4791aa4c80eb4bdb1e5274 (patch) | |
tree | 5ec2e11acfa9f21a4aeb4137721786b2ea67cd83 /drivers/usb/host | |
parent | c6cc27c782e3a64cced0fcf1d6f492c8d8881c76 (diff) |
USB: Remove bogus USB_PORT_STAT_SUPER_SPEED symbol.
USB_PORT_STAT_SUPER_SPEED is a made up symbol that the USB core used to
track whether USB ports had a SuperSpeed device attached. This is a
linux-internal symbol that was used when SuperSpeed and non-SuperSpeed
devices would show up under the same xHCI roothub. This particular
port status is never returned by external USB 3.0 hubs. (Instead they
have a USB_PORT_STAT_SPEED_5GBPS that uses a completely different speed
mask.)
Now that the xHCI driver registers two roothubs, USB 3.0 devices will only
show up under USB 3.0 hubs. Rip out USB_PORT_STAT_SUPER_SPEED and replace
it with calls to hub_is_superspeed().
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-hub.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 770f84cb7327..a78f2ebd11b7 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c | |||
@@ -155,8 +155,6 @@ static unsigned int xhci_port_speed(unsigned int port_status) | |||
155 | return USB_PORT_STAT_LOW_SPEED; | 155 | return USB_PORT_STAT_LOW_SPEED; |
156 | if (DEV_HIGHSPEED(port_status)) | 156 | if (DEV_HIGHSPEED(port_status)) |
157 | return USB_PORT_STAT_HIGH_SPEED; | 157 | return USB_PORT_STAT_HIGH_SPEED; |
158 | if (DEV_SUPERSPEED(port_status)) | ||
159 | return USB_PORT_STAT_SUPER_SPEED; | ||
160 | /* | 158 | /* |
161 | * FIXME: Yes, we should check for full speed, but the core uses that as | 159 | * FIXME: Yes, we should check for full speed, but the core uses that as |
162 | * a default in portspeed() in usb/core/hub.c (which is the only place | 160 | * a default in portspeed() in usb/core/hub.c (which is the only place |