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/ehci.h | |
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/ehci.h')
-rw-r--r-- | drivers/usb/host/ehci.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 556c0b48f3ab..4ebe9ad209e4 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h | |||
@@ -556,20 +556,20 @@ ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc) | |||
556 | case 0: | 556 | case 0: |
557 | return 0; | 557 | return 0; |
558 | case 1: | 558 | case 1: |
559 | return (1<<USB_PORT_FEAT_LOWSPEED); | 559 | return USB_PORT_STAT_LOW_SPEED; |
560 | case 2: | 560 | case 2: |
561 | default: | 561 | default: |
562 | return (1<<USB_PORT_FEAT_HIGHSPEED); | 562 | return USB_PORT_STAT_HIGH_SPEED; |
563 | } | 563 | } |
564 | } | 564 | } |
565 | return (1<<USB_PORT_FEAT_HIGHSPEED); | 565 | return USB_PORT_STAT_HIGH_SPEED; |
566 | } | 566 | } |
567 | 567 | ||
568 | #else | 568 | #else |
569 | 569 | ||
570 | #define ehci_is_TDI(e) (0) | 570 | #define ehci_is_TDI(e) (0) |
571 | 571 | ||
572 | #define ehci_port_speed(ehci, portsc) (1<<USB_PORT_FEAT_HIGHSPEED) | 572 | #define ehci_port_speed(ehci, portsc) USB_PORT_STAT_HIGH_SPEED |
573 | #endif | 573 | #endif |
574 | 574 | ||
575 | /*-------------------------------------------------------------------------*/ | 575 | /*-------------------------------------------------------------------------*/ |