aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb
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 /include/linux/usb
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 'include/linux/usb')
-rw-r--r--include/linux/usb/ch11.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/usb/ch11.h b/include/linux/usb/ch11.h
index 35cb7357ff72..bd3185aba4ee 100644
--- a/include/linux/usb/ch11.h
+++ b/include/linux/usb/ch11.h
@@ -47,11 +47,7 @@
47#define USB_PORT_FEAT_RESET 4 47#define USB_PORT_FEAT_RESET 4
48#define USB_PORT_FEAT_L1 5 /* L1 suspend */ 48#define USB_PORT_FEAT_L1 5 /* L1 suspend */
49#define USB_PORT_FEAT_POWER 8 49#define USB_PORT_FEAT_POWER 8
50#define USB_PORT_FEAT_LOWSPEED 9 50#define USB_PORT_FEAT_LOWSPEED 9 /* Should never be used */
51/* This value was never in Table 11-17 */
52#define USB_PORT_FEAT_HIGHSPEED 10
53/* This value is also fake */
54#define USB_PORT_FEAT_SUPERSPEED 11
55#define USB_PORT_FEAT_C_CONNECTION 16 51#define USB_PORT_FEAT_C_CONNECTION 16
56#define USB_PORT_FEAT_C_ENABLE 17 52#define USB_PORT_FEAT_C_ENABLE 17
57#define USB_PORT_FEAT_C_SUSPEND 18 53#define USB_PORT_FEAT_C_SUSPEND 18
@@ -87,6 +83,7 @@ struct usb_port_status {
87#define USB_PORT_STAT_TEST 0x0800 83#define USB_PORT_STAT_TEST 0x0800
88#define USB_PORT_STAT_INDICATOR 0x1000 84#define USB_PORT_STAT_INDICATOR 0x1000
89/* bits 13 to 15 are reserved */ 85/* bits 13 to 15 are reserved */
86#define USB_PORT_STAT_SUPER_SPEED 0x8000 /* Linux-internal */
90 87
91/* 88/*
92 * wPortChange bit field 89 * wPortChange bit field