summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-fsm-usb.h
diff options
context:
space:
mode:
authorAnton Tikhomirov <av.tikhomirov@samsung.com>2013-10-03 05:42:04 +0200
committerFelipe Balbi <balbi@ti.com>2013-10-04 16:44:50 +0200
commit4662e5ef54f01ff5333474a825f90ab74f95bc3d (patch)
tree0a196763e5110221d62a19947bf850d6a6929fed /drivers/usb/phy/phy-fsm-usb.h
parentusb: phy: Add and use missed OTG FSM inputs/outputs (diff)
downloadlinux-4662e5ef54f01ff5333474a825f90ab74f95bc3d.tar.xz
linux-4662e5ef54f01ff5333474a825f90ab74f95bc3d.zip
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/phy-fsm-usb.h')
-rw-r--r--drivers/usb/phy/phy-fsm-usb.h46
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 {
/* OTG state machine according to the OTG spec */
struct otg_fsm {
/* Input */
+ int id;
int adp_change;
int power_up;
int test_device;
int a_bus_drop;
int a_bus_req;
+ int a_srp_det;
+ int a_vbus_vld;
+ int b_conn;
int a_bus_resume;
int a_bus_suspend;
int a_conn;
int b_bus_req;
- int a_sess_vld;
- int a_srp_det;
- int a_vbus_vld;
- int b_bus_resume;
- int b_bus_suspend;
- int b_conn;
int b_se0_srp;
int b_ssend_srp;
int b_sess_vld;
- int id;
+ /* Auxilary inputs */
+ int a_sess_vld;
+ int b_bus_resume;
+ int b_bus_suspend;
+
+ /* Output */
+ int data_pulse;
+ int drv_vbus;
+ int loc_conn;
+ int loc_sof;
+ int adp_prb;
+ int adp_sns;
/* Internal variables */
int a_set_b_hnp_en;
@@ -80,6 +89,14 @@ struct otg_fsm {
int b_hnp_enable;
int a_clr_err;
+ /* Informative variables */
+ int a_bus_drop_inf;
+ int a_bus_req_inf;
+ int a_clr_err_inf;
+ int b_bus_req_inf;
+ /* Auxilary informative variables */
+ int a_suspend_req_inf;
+
/* Timeout indicator for timers */
int a_wait_vrise_tmout;
int a_wait_vfall_tmout;
@@ -88,21 +105,6 @@ struct otg_fsm {
int b_ase0_brst_tmout;
int a_bidl_adis_tmout;
- /* Informative variables */
- int a_bus_drop_inf;
- int a_bus_req_inf;
- int a_clr_err_inf;
- int a_suspend_req_inf;
- int b_bus_req_inf;
-
- /* Output */
- int data_pulse;
- int drv_vbus;
- int loc_conn;
- int loc_sof;
- int adp_prb;
- int adp_sns;
-
struct otg_fsm_ops *ops;
struct usb_otg *otg;