Skip to content

Commit 346dbc6

Browse files
Junlisuzhoufelipebalbi
authored andcommitted
usb: add OTG status selector definition for HNP polling
A host is required to use the GetStatus command, with wIndex set to the OTG status selector(F000H) to request the Host request flag from the peripheral. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <jun.li@nxp.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
1 parent 75a9c82 commit 346dbc6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • include/uapi/linux/usb

‎include/uapi/linux/usb/ch9.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ struct usb_otg20_descriptor {
708708
#define USB_OTG_HNP (1 << 1) /* swap host/device roles */
709709
#define USB_OTG_ADP (1 << 2) /* support ADP */
710710

711+
#define OTG_STS_SELECTOR 0xF000 /* OTG status selector */
711712
/*-------------------------------------------------------------------------*/
712713

713714
/* USB_DT_DEBUG: for special highspeed devices, replacing serial console */

0 commit comments

Comments
 (0)