History

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.

Li Jun committed 10 years ago

Commit 346dbc61 parent 75a9c821 file · +1 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/usb/ch9.h+1−0
@@ -708,6 +708,7 @@ struct usb_otg20_descriptor { · 707 unmodified lines
708#define USB_OTG_HNP (1 << 1) /* swap host/device roles */708#define USB_OTG_HNP (1 << 1) /* swap host/device roles */
709#define USB_OTG_ADP (1 << 2) /* support ADP */709#define USB_OTG_ADP (1 << 2) /* support ADP */
710 710
711#define OTG_STS_SELECTOR 0xF000 /* OTG status selector */
711/*-------------------------------------------------------------------------*/712/*-------------------------------------------------------------------------*/
712 713
713/* USB_DT_DEBUG: for special highspeed devices, replacing serial console */714/* USB_DT_DEBUG: for special highspeed devices, replacing serial console */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t