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:50 -0400 |
commit | 4662e5ef54f01ff5333474a825f90ab74f95bc3d (patch) | |
tree | 0a196763e5110221d62a19947bf850d6a6929fed /drivers/usb/phy | |
parent | ec04996a080d825f8acdf0f8fbb2f3ebd5963cf3 (diff) |
usb: phy: Reordering of OTG FSM variables
Reorder variables in struct otg_fsm as they appear 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')
-rw-r--r-- | drivers/usb/phy/phy-fsm-usb.h | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/drivers/usb/phy/phy-fsm-usb.h b/drivers/usb/phy/phy-fsm-usb.h index 6ce3b3cfd7b5..7441b46a27f1 100644 --- a/drivers/usb/phy/phy-fsm-usb.h +++ b/drivers/usb/phy/phy-fsm-usb.h | |||
@@ -54,25 +54,34 @@ enum otg_fsm_timer { | |||
54 | /* OTG state machine according to the OTG spec */ | 54 | /* OTG state machine according to the OTG spec */ |
55 | struct otg_fsm { | 55 | struct otg_fsm { |
56 | /* Input */ | 56 | /* Input */ |
57 | int id; | ||
57 | int adp_change; | 58 | int adp_change; |
58 | int power_up; | 59 | int power_up; |
59 | int test_device; | 60 | int test_device; |
60 | int a_bus_drop; | 61 | int a_bus_drop; |
61 | int a_bus_req; | 62 | int a_bus_req; |
63 | int a_srp_det; | ||
64 | int a_vbus_vld; | ||
65 | int b_conn; | ||
62 | int a_bus_resume; | 66 | int a_bus_resume; |
63 | int a_bus_suspend; | 67 | int a_bus_suspend; |
64 | int a_conn; | 68 | int a_conn; |
65 | int b_bus_req; | 69 | int b_bus_req; |
66 | int a_sess_vld; | ||
67 | int a_srp_det; | ||
68 | int a_vbus_vld; | ||
69 | int b_bus_resume; | ||
70 | int b_bus_suspend; | ||
71 | int b_conn; | ||
72 | int b_se0_srp; | 70 | int b_se0_srp; |
73 | int b_ssend_srp; | 71 | int b_ssend_srp; |
74 | int b_sess_vld; | 72 | int b_sess_vld; |
75 | int id; | 73 | /* Auxilary inputs */ |
74 | int a_sess_vld; | ||
75 | int b_bus_resume; | ||
76 | int b_bus_suspend; | ||
77 | |||
78 | /* Output */ | ||
79 | int data_pulse; | ||
80 | int drv_vbus; | ||
81 | int loc_conn; | ||
82 | int loc_sof; | ||
83 | int adp_prb; | ||
84 | int adp_sns; | ||
76 | 85 | ||
77 | /* Internal variables */ | 86 | /* Internal variables */ |
78 | int a_set_b_hnp_en; | 87 | int a_set_b_hnp_en; |
@@ -80,6 +89,14 @@ struct otg_fsm { | |||
80 | int b_hnp_enable; | 89 | int b_hnp_enable; |
81 | int a_clr_err; | 90 | int a_clr_err; |
82 | 91 | ||
92 | /* Informative variables */ | ||
93 | int a_bus_drop_inf; | ||
94 | int a_bus_req_inf; | ||
95 | int a_clr_err_inf; | ||
96 | int b_bus_req_inf; | ||
97 | /* Auxilary informative variables */ | ||
98 | int a_suspend_req_inf; | ||
99 | |||
83 | /* Timeout indicator for timers */ | 100 | /* Timeout indicator for timers */ |
84 | int a_wait_vrise_tmout; | 101 | int a_wait_vrise_tmout; |
85 | int a_wait_vfall_tmout; | 102 | int a_wait_vfall_tmout; |
@@ -88,21 +105,6 @@ struct otg_fsm { | |||
88 | int b_ase0_brst_tmout; | 105 | int b_ase0_brst_tmout; |
89 | int a_bidl_adis_tmout; | 106 | int a_bidl_adis_tmout; |
90 | 107 | ||
91 | /* Informative variables */ | ||
92 | int a_bus_drop_inf; | ||
93 | int a_bus_req_inf; | ||
94 | int a_clr_err_inf; | ||
95 | int a_suspend_req_inf; | ||
96 | int b_bus_req_inf; | ||
97 | |||
98 | /* Output */ | ||
99 | int data_pulse; | ||
100 | int drv_vbus; | ||
101 | int loc_conn; | ||
102 | int loc_sof; | ||
103 | int adp_prb; | ||
104 | int adp_sns; | ||
105 | |||
106 | struct otg_fsm_ops *ops; | 108 | struct otg_fsm_ops *ops; |
107 | struct usb_otg *otg; | 109 | struct usb_otg *otg; |
108 | 110 | ||