Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325941
b: refs/heads/master
c: a4c3dde
h: refs/heads/master
i:
  325939: fd050f1
v: v3
  • Loading branch information
Venu Byravarasu authored and Felipe Balbi committed Sep 6, 2012
1 parent 5651e65 commit e5af0d9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ba8216f0bc02af6ba70d1108d60eb1b064395e4
refs/heads/master: a4c3ddec5c5293953d8472eb151c48a3205b738b
24 changes: 0 additions & 24 deletions trunk/include/linux/usb/otg.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,6 @@

#include <linux/usb/phy.h>

/* OTG defines lots of enumeration states before device reset */
enum usb_otg_state {
OTG_STATE_UNDEFINED = 0,

/* single-role peripheral, and dual-role default-b */
OTG_STATE_B_IDLE,
OTG_STATE_B_SRP_INIT,
OTG_STATE_B_PERIPHERAL,

/* extra dual-role default-b states */
OTG_STATE_B_WAIT_ACON,
OTG_STATE_B_HOST,

/* dual-role default-a */
OTG_STATE_A_IDLE,
OTG_STATE_A_WAIT_VRISE,
OTG_STATE_A_WAIT_BCON,
OTG_STATE_A_HOST,
OTG_STATE_A_SUSPEND,
OTG_STATE_A_PERIPHERAL,
OTG_STATE_A_WAIT_VFALL,
OTG_STATE_A_VBUS_ERR,
};

struct usb_otg {
u8 default_a;

Expand Down
25 changes: 25 additions & 0 deletions trunk/include/linux/usb/phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,30 @@ enum usb_phy_type {
USB_PHY_TYPE_USB3,
};

/* OTG defines lots of enumeration states before device reset */
enum usb_otg_state {
OTG_STATE_UNDEFINED = 0,

/* single-role peripheral, and dual-role default-b */
OTG_STATE_B_IDLE,
OTG_STATE_B_SRP_INIT,
OTG_STATE_B_PERIPHERAL,

/* extra dual-role default-b states */
OTG_STATE_B_WAIT_ACON,
OTG_STATE_B_HOST,

/* dual-role default-a */
OTG_STATE_A_IDLE,
OTG_STATE_A_WAIT_VRISE,
OTG_STATE_A_WAIT_BCON,
OTG_STATE_A_HOST,
OTG_STATE_A_SUSPEND,
OTG_STATE_A_PERIPHERAL,
OTG_STATE_A_WAIT_VFALL,
OTG_STATE_A_VBUS_ERR,
};

struct usb_phy;
struct usb_otg;

Expand All @@ -43,6 +67,7 @@ struct usb_phy {
unsigned int flags;

enum usb_phy_type type;
enum usb_otg_state state;
enum usb_phy_events last_event;

struct usb_otg *otg;
Expand Down

0 comments on commit e5af0d9

Please sign in to comment.