Skip to content

Commit 93f526f

Browse files
ozbenhgregkh
authored andcommitted
usb: Fix typo in the definition of Endpoint[out]Request
commit 7cf916bd639bd26db7214f2205bccdb4b9306256 upstream. The current definition is wrong. This breaks my upcoming Aspeed virtual hub driver. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c6bf62a commit 93f526f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/linux/usb/hcd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,9 @@ extern void usb_ep0_reinit(struct usb_device *);
560560
((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_INTERFACE)<<8)
561561

562562
#define EndpointRequest \
563-
((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_INTERFACE)<<8)
563+
((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT)<<8)
564564
#define EndpointOutRequest \
565-
((USB_DIR_OUT|USB_TYPE_STANDARD|USB_RECIP_INTERFACE)<<8)
565+
((USB_DIR_OUT|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT)<<8)
566566

567567
/* class requests from the USB 2.0 hub spec, table 11-15 */
568568
/* GetBusState and SetHubDescriptor are optional, omitted */

0 commit comments

Comments
 (0)