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.c...@freescale.com>
Signed-off-by: Li Jun <jun...@freescale.com>
---
 include/uapi/linux/usb/ch9.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/ch9.h
index aa33fd1..a50ec5f 100644
--- a/include/uapi/linux/usb/ch9.h
+++ b/include/uapi/linux/usb/ch9.h
@@ -678,6 +678,8 @@ struct usb_otg_descriptor {
 #define USB_OTG_SRP            (1 << 0)
 #define USB_OTG_HNP            (1 << 1)        /* swap host/device roles */
 
+#define OTG_STS_SELECTOR       0xF000          /* OTG status selector */
+
 /*-------------------------------------------------------------------------*/
 
 /* USB_DT_DEBUG:  for special highspeed devices, replacing serial console */
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to