aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hub.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2010-03-04 11:32:30 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-20 16:21:31 -0400
commit288ead45fa6637e959015d055304f521cbbc0575 (patch)
treeb150572e95760f26f905802269b3a76da0260976 /drivers/usb/core/hub.c
parent45f30e0bdadd4660383250e85b543b0bea05413d (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/core/hub.c')
-rw-r--r--drivers/usb/core/hub.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 1883c3c7b69..5ac27ed0c63 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -153,11 +153,11 @@ static int usb_reset_and_verify_device(struct usb_device *udev);
153 153
154static inline char *portspeed(int portstatus) 154static inline char *portspeed(int portstatus)
155{ 155{
156 if (portstatus & (1 << USB_PORT_FEAT_HIGHSPEED)) 156 if (portstatus & USB_PORT_STAT_HIGH_SPEED)
157 return "480 Mb/s"; 157 return "480 Mb/s";
158 else if (portstatus & (1 << USB_PORT_FEAT_LOWSPEED)) 158 else if (portstatus & USB_PORT_STAT_LOW_SPEED)
159 return "1.5 Mb/s"; 159 return "1.5 Mb/s";
160 else if (portstatus & (1 << USB_PORT_FEAT_SUPERSPEED)) 160 else if (portstatus & USB_PORT_STAT_SUPER_SPEED)
161 return "5.0 Gb/s"; 161 return "5.0 Gb/s";
162 else 162 else
163 return "12 Mb/s"; 163 return "12 Mb/s";
@@ -3075,7 +3075,7 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
3075 if (!(hcd->driver->flags & HCD_USB3)) 3075 if (!(hcd->driver->flags & HCD_USB3))
3076 udev->speed = USB_SPEED_UNKNOWN; 3076 udev->speed = USB_SPEED_UNKNOWN;
3077 else if ((hdev->parent == NULL) && 3077 else if ((hdev->parent == NULL) &&
3078 (portstatus & (1 << USB_PORT_FEAT_SUPERSPEED))) 3078 (portstatus & USB_PORT_STAT_SUPER_SPEED))
3079 udev->speed = USB_SPEED_SUPER; 3079 udev->speed = USB_SPEED_SUPER;
3080 else 3080 else
3081 udev->speed = USB_SPEED_UNKNOWN; 3081 udev->speed = USB_SPEED_UNKNOWN;