usb: hcd.h: Fix the values of SetHubDepth and GetPortErrorCount to match USB 3.1 specification
A message that is not in the archive (sent off-list or not yet received): CAFDyS3P0rHeG9eNc4ttVx6EX18CtGj2WUi+9W+YRO3=fCvUsBQ@mail.gmail.com
PATCH 1/1 usb: hcd.h: Fix the values of SetHubDepth and GetPortErrorCount to match USB 3.1 specification
Quoted 1 line
From the usb 3.1 spec available at http://www.usb.org/developers/docs/
table 10-7 (Hub Class Requests) specifies the values for SetHubDepth and GetPortErrorCount as:
Request bmRequestType bRequest wValue wIndex wLength Data SetHubDepth 00100000B SET_HUB_DEPTH Hub Depth Zero Zero None GetPortErrorCount 10100011B GET_PORT_ERR_COUNT Zero Port Two Number of Link
Errors on this port
Fix these two values to match the spec.
--- include/linux/usb/hcd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/usb/hcd.h +3 -3
@@ -564,9 +564,9 @@ extern void usb_ep0_reinit(struct usb_device *);/*-------------------------------------------------------------------------*/ -/* class requests from USB 3.0 hub spec, table 10-5 */ -#define SetHubDepth (0x3000 | HUB_SET_DEPTH) -#define GetPortErrorCount (0x8000 | HUB_GET_PORT_ERR_COUNT) +/* class requests from USB 3.1 hub spec, table 10-7 */ +#define SetHubDepth (0x2000 | HUB_SET_DEPTH) +#define GetPortErrorCount (0xa300 | HUB_GET_PORT_ERR_COUNT)/* * Generic bandwidth allocation constants/support
Signature · 1 line
2.4.6
Greg KH
maintainerQuoted 8 lines · Tal Shorer
Quoted 1 line
From the usb 3.1 spec available at http://www.usb.org/developers/docs/
table 10-7 (Hub Class Requests) specifies the values for SetHubDepth and GetPortErrorCount as:
Request bmRequestType bRequest wValue wIndex wLength Data SetHubDepth 00100000B
SET_HUB_DEPTHHub Depth Zero Zero None GetPortErrorCount 10100011BGET_PORT_ERR_COUNTZero Port Two Number of Link
Errors on this port
This doesn't make much sense at all, can you properly format it to look correct?
thanks,
greg k-h
Greg KH
maintainerQuoted 21 lines · Tal Shorer
Quoted 1 line
From the usb 3.1 spec available at http://www.usb.org/developers/docs/
table 10-7 (Hub Class Requests) specifies the values for SetHubDepth and GetPortErrorCount as:
Request bmRequestType bRequest wValue wIndex wLength Data SetHubDepth 00100000B
SET_HUB_DEPTHHub Depth Zero Zero None GetPortErrorCount 10100011BGET_PORT_ERR_COUNTZero Port Two Number of Link
Errors on this portFix these two values to match the spec.
Signed-off-by Tal Shorer <[email protected]>--- include/linux/usb/hcd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)include/linux/usb/hcd.h +0
-0
include/linux/usb/hcd.h extern void usb_ep0_reinit(struct usb_device *); · line 569
Quoted 9 lines
include/linux/usb/hcd.h +3
-3@@ -564,9 +564,9 @@ extern void usb_ep0_reinit(struct usb_device *);/*-------------------------------------------------------------------------*/ -/* class requests from USB 3.0 hub spec, table 10-5 */ -#define SetHubDepth (0x3000 | HUB_SET_DEPTH) -#define GetPortErrorCount (0x8000 | HUB_GET_PORT_ERR_COUNT) +/* class requests from USB 3.1 hub spec, table 10-7 */ +#define SetHubDepth (0x2000 | HUB_SET_DEPTH) +#define GetPortErrorCount (0xa300 | HUB_GET_PORT_ERR_COUNT)
Why did you loose the indentation?
PATCH v2 1/1 usb: hcd.h: Fix the values of SetHubDepth and GetPortErrorCount to match USB 3.1 specification
Quoted 1 line
From the usb 3.1 spec available at http://www.usb.org/developers/docs/
table 10-7 (Hub Class Requests) specifies the values for SetHubDepth and GetPortErrorCount as:
Request bmRequestType bRequest wValue wIndex wLength Data SetHubDepth 00100000B SET_HUB_DEPTH Hub Depth Zero Zero None GetPortErrorCount 10100011B GET_PORT_ERR_COUNT Zero Port Two Number of Link
Errors on this port
Fix these two values to match the spec.
--- include/linux/usb/hcd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/usb/hcd.h +3 -3
@@ -564,9 +564,9 @@ extern void usb_ep0_reinit(struct usb_device *);/*-------------------------------------------------------------------------*/ -/* class requests from USB 3.0 hub spec, table 10-5 */ -#define SetHubDepth (0x3000 | HUB_SET_DEPTH) -#define GetPortErrorCount (0x8000 | HUB_GET_PORT_ERR_COUNT) +/* class requests from USB 3.1 hub spec, table 10-7 */ +#define SetHubDepth (0x2000 | HUB_SET_DEPTH) +#define GetPortErrorCount (0xa300 | HUB_GET_PORT_ERR_COUNT)/* * Generic bandwidth allocation constants/support
Signature · 1 line
2.4.6
Please ignore v2, I missed that you
Quoted 36 lines · Tal Shorer
From the usb 3.1 spec available at http://www.usb.org/developers/docs/
table 10-7 (Hub Class Requests) specifies the values for SetHubDepth and GetPortErrorCount as:Request bmRequestType bRequest wValue wIndex wLength Data SetHubDepth 00100000B
SET_HUB_DEPTHHub Depth Zero Zero None GetPortErrorCount 10100011BGET_PORT_ERR_COUNTZero Port Two Number of Link
Errors on this portFix these two values to match the spec.
Signed-off-by Tal Shorer <[email protected]>--- include/linux/usb/hcd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)include/linux/usb/hcd.h +3
-4@@ -564,9 +564,9 @@ extern void usb_ep0_reinit(struct usb_device *);/*-------------------------------------------------------------------------*/ -/* class requests from USB 3.0 hub spec, table 10-5 */ -#define SetHubDepth (0x3000 | HUB_SET_DEPTH) -#define GetPortErrorCount (0x8000 | HUB_GET_PORT_ERR_COUNT) +/* class requests from USB 3.1 hub spec, table 10-7 */ +#define SetHubDepth (0x2000 | HUB_SET_DEPTH) +#define GetPortErrorCount (0xa300 | HUB_GET_PORT_ERR_COUNT)/* * Generic bandwidth allocation constants/support -- 2.4.6
PATCH v3 1/1 usb: hcd.h: Fix the values of SetHubDepth and GetPortErrorCount to match USB 3.1 specification
In reply to Greg KHQuoted 1 line
From the usb 3.1 spec available at http://www.usb.org/developers/docs/
table 10-7 (Hub Class Requests) specifies the values for SetHubDepth and GetPortErrorCount as:
Request bmRequestType bRequest wValue wIndex wLength Data
SetHubDepth 00100000B SET_HUB_DEPTH Hub Depth Zero Zero None
GetPortErrorCount 10100011B GET_PORT_ERR_COUNT Zero Port Two Number of Link Errors on this port
Fix these two values to match the spec.
--- include/linux/usb/hcd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/usb/hcd.h +3 -3
@@ -564,9 +564,9 @@ extern void usb_ep0_reinit(struct usb_device *);/*-------------------------------------------------------------------------*/ -/* class requests from USB 3.0 hub spec, table 10-5 */ -#define SetHubDepth (0x3000 | HUB_SET_DEPTH) -#define GetPortErrorCount (0x8000 | HUB_GET_PORT_ERR_COUNT) +/* class requests from USB 3.1 hub spec, table 10-7 */ +#define SetHubDepth (0x2000 | HUB_SET_DEPTH) +#define GetPortErrorCount (0xa300 | HUB_GET_PORT_ERR_COUNT)/* * Generic bandwidth allocation constants/support
Signature · 1 line
2.4.6
Greg KH
maintainerQuoted 7 lines · Tal Shorer
Quoted 1 line
From the usb 3.1 spec available at http://www.usb.org/developers/docs/
table 10-7 (Hub Class Requests) specifies the values for SetHubDepth and GetPortErrorCount as:
Request bmRequestType bRequest wValue wIndex wLength Data
SetHubDepth 00100000BSET_HUB_DEPTHHub Depth Zero Zero None
GetPortErrorCount 10100011BGET_PORT_ERR_COUNTZero Port Two Number of Link Errors on this port
Still does not look correct to me, how about you?
Quoted 11 lines · Greg KH
Quoted 7 lines · Tal Shorer
Quoted 1 line
From the usb 3.1 spec available at http://www.usb.org/developers/docs/
table 10-7 (Hub Class Requests) specifies the values for SetHubDepth and GetPortErrorCount as:
Request bmRequestType bRequest wValue wIndex wLength Data
SetHubDepth 00100000BSET_HUB_DEPTHHub Depth Zero Zero None
GetPortErrorCount 10100011BGET_PORT_ERR_COUNTZero Port Two Number of Link Errors on this portStill does not look correct to me, how about you?
Not sure what you mean. This is a simple copy-paste from the spec document. Do you want me to put quotation marks around the multi-word Data column?
Greg KH
maintainerQuoted 10 lines · Tal Shorer
Quoted 9 lines · Greg KH
Quoted 7 lines · Tal Shorer
Quoted 1 line
From the usb 3.1 spec available at http://www.usb.org/developers/docs/
table 10-7 (Hub Class Requests) specifies the values for SetHubDepth and GetPortErrorCount as:
Request bmRequestType bRequest wValue wIndex wLength Data
SetHubDepth 00100000BSET_HUB_DEPTHHub Depth Zero Zero None
GetPortErrorCount 10100011BGET_PORT_ERR_COUNTZero Port Two Number of Link Errors on this port
Quoted 5 lines
Quoted 2 lines
Still does not look correct to me, how about you?
Not sure what you mean. This is a simple copy-paste from the spec document. Do you want me to put quotation marks around the multi-word Data column?
I want the columns to line up so that they look sane and someone can understand what they mean :)
PATCH v4 1/1 usb: hcd.h: Fix the values of SetHubDepth and GetPortErrorCount to match USB 3.1 specification
Quoted 1 line
From the usb 3.1 spec available at http://www.usb.org/developers/docs/
table 10-7 (Hub Class Requests) specifies the values for SetHubDepth and GetPortErrorCount as:
Request bmRequestType bRequest wValue wIndex wLength Data
SetHubDepth 00100000B SET_HUB_DEPTH Hub Depth Zero Zero None
GetPortErrorCount 10100011B GET_PORT_ERR_COUNT Zero Port Two Number of Link Errors on this port
Fix these two values to match the spec.
--- include/linux/usb/hcd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/usb/hcd.h +3 -3
@@ -564,9 +564,9 @@ extern void usb_ep0_reinit(struct usb_device *);/*-------------------------------------------------------------------------*/ -/* class requests from USB 3.0 hub spec, table 10-5 */ -#define SetHubDepth (0x3000 | HUB_SET_DEPTH) -#define GetPortErrorCount (0x8000 | HUB_GET_PORT_ERR_COUNT) +/* class requests from USB 3.1 hub spec, table 10-7 */ +#define SetHubDepth (0x2000 | HUB_SET_DEPTH) +#define GetPortErrorCount (0xa300 | HUB_GET_PORT_ERR_COUNT)/* * Generic bandwidth allocation constants/support
Signature · 1 line
2.4.6