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/xhci-hub.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/xhci-hub.c')
-rw-r--r-- | drivers/usb/host/xhci-hub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 208b805b80eb..dd69df1e4558 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c | |||
@@ -64,15 +64,15 @@ static void xhci_hub_descriptor(struct xhci_hcd *xhci, | |||
64 | static unsigned int xhci_port_speed(unsigned int port_status) | 64 | static unsigned int xhci_port_speed(unsigned int port_status) |
65 | { | 65 | { |
66 | if (DEV_LOWSPEED(port_status)) | 66 | if (DEV_LOWSPEED(port_status)) |
67 | return 1 << USB_PORT_FEAT_LOWSPEED; | 67 | return USB_PORT_STAT_LOW_SPEED; |
68 | if (DEV_HIGHSPEED(port_status)) | 68 | if (DEV_HIGHSPEED(port_status)) |
69 | return 1 << USB_PORT_FEAT_HIGHSPEED; | 69 | return USB_PORT_STAT_HIGH_SPEED; |
70 | if (DEV_SUPERSPEED(port_status)) | 70 | if (DEV_SUPERSPEED(port_status)) |
71 | return 1 << USB_PORT_FEAT_SUPERSPEED; | 71 | return USB_PORT_STAT_SUPER_SPEED; |
72 | /* | 72 | /* |
73 | * FIXME: Yes, we should check for full speed, but the core uses that as | 73 | * FIXME: Yes, we should check for full speed, but the core uses that as |
74 | * a default in portspeed() in usb/core/hub.c (which is the only place | 74 | * a default in portspeed() in usb/core/hub.c (which is the only place |
75 | * USB_PORT_FEAT_*SPEED is used). | 75 | * USB_PORT_STAT_*_SPEED is used). |
76 | */ | 76 | */ |
77 | return 0; | 77 | return 0; |
78 | } | 78 | } |