diff options
author | Anton Tikhomirov <av.tikhomirov@samsung.com> | 2013-10-02 23:42:04 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-10-04 10:44:47 -0400 |
commit | 3294908bc0f178bfd67971fdb4432f3d4e50921e (patch) | |
tree | 7f62bad6292a19e459d214857933188a8053b8e8 /drivers/usb/phy/phy-fsm-usb.h | |
parent | f6de27eed372f41646b7bd95d6903923f5308517 (diff) |
usb: phy: Add and use missed OTG FSM timers
a_bidl_adis_tmr and a_wait_vfall_tmr OTG timers missed in
current FSM implementation. This patch adds and makes use
of the timers as speicfied in OTG and EH supplement to USB2.0.
Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/phy-fsm-usb.h')
-rw-r--r-- | drivers/usb/phy/phy-fsm-usb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-fsm-usb.h b/drivers/usb/phy/phy-fsm-usb.h index b47b32c6ed1f..a74e14aaa839 100644 --- a/drivers/usb/phy/phy-fsm-usb.h +++ b/drivers/usb/phy/phy-fsm-usb.h | |||
@@ -35,13 +35,19 @@ | |||
35 | #define PROTO_GADGET (2) | 35 | #define PROTO_GADGET (2) |
36 | 36 | ||
37 | enum otg_fsm_timer { | 37 | enum otg_fsm_timer { |
38 | /* Standard OTG timers */ | ||
38 | A_WAIT_VRISE, | 39 | A_WAIT_VRISE, |
40 | A_WAIT_VFALL, | ||
39 | A_WAIT_BCON, | 41 | A_WAIT_BCON, |
40 | A_AIDL_BDIS, | 42 | A_AIDL_BDIS, |
41 | B_ASE0_BRST, | 43 | B_ASE0_BRST, |
44 | A_BIDL_ADIS, | ||
45 | |||
46 | /* Auxiliary timers */ | ||
42 | B_SE0_SRP, | 47 | B_SE0_SRP, |
43 | B_SRP_FAIL, | 48 | B_SRP_FAIL, |
44 | A_WAIT_ENUM, | 49 | A_WAIT_ENUM, |
50 | |||
45 | NUM_OTG_FSM_TIMERS, | 51 | NUM_OTG_FSM_TIMERS, |
46 | }; | 52 | }; |
47 | 53 | ||
@@ -69,9 +75,11 @@ struct otg_fsm { | |||
69 | 75 | ||
70 | /* Timeout indicator for timers */ | 76 | /* Timeout indicator for timers */ |
71 | int a_wait_vrise_tmout; | 77 | int a_wait_vrise_tmout; |
78 | int a_wait_vfall_tmout; | ||
72 | int a_wait_bcon_tmout; | 79 | int a_wait_bcon_tmout; |
73 | int a_aidl_bdis_tmout; | 80 | int a_aidl_bdis_tmout; |
74 | int b_ase0_brst_tmout; | 81 | int b_ase0_brst_tmout; |
82 | int a_bidl_adis_tmout; | ||
75 | 83 | ||
76 | /* Informative variables */ | 84 | /* Informative variables */ |
77 | int a_bus_drop; | 85 | int a_bus_drop; |