usb: add OTG status selector definition for HNP polling
authorLi Jun <jun.li@nxp.com>
Fri, 19 Feb 2016 02:04:41 +0000 (10:04 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:35 +0000 (15:14 +0200)
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>
include/uapi/linux/usb/ch9.h

index 28bee8d4473513748f65fed1893e92fe3c783d29..06d6c6228a7a75cfbbd0426d376a441b69597459 100644 (file)
@@ -708,6 +708,7 @@ struct usb_otg20_descriptor {
 #define USB_OTG_HNP            (1 << 1)        /* swap host/device roles */
 #define USB_OTG_ADP            (1 << 2)        /* support ADP */
 
+#define OTG_STS_SELECTOR       0xF000          /* OTG status selector */
 /*-------------------------------------------------------------------------*/
 
 /* USB_DT_DEBUG:  for special highspeed devices, replacing serial console */