summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/otg_fsm.h
diff options
context:
space:
mode:
authorLi Jun2015-03-20 09:28:05 +0100
committerGreg Kroah-Hartman2015-03-26 10:54:39 +0100
commit2f8a467a11aeec61f5077cd337b4efe74847e1d3 (patch)
tree3fe6e54a4d9427d54f65e0416916cbc98df6a396 /drivers/usb/chipidea/otg_fsm.h
parentusb: chipidea: otg: remove unnecessary B_SESS_VLD timer (diff)
downloadkernel-qcow2-linux-2f8a467a11aeec61f5077cd337b4efe74847e1d3.tar.gz
kernel-qcow2-linux-2f8a467a11aeec61f5077cd337b4efe74847e1d3.tar.xz
kernel-qcow2-linux-2f8a467a11aeec61f5077cd337b4efe74847e1d3.zip
usb: otg-fsm: move 2 otg fsm timers definition to otg_fsm_timer
B_DATA_PLS(data-line pulse time) and B_SSEND_SRP(session end to SRP init) are also from OTG&EH 2.0 Specification and they are not chipidea specific. Signed-off-by: Li Jun <jun.li@freescale.com> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/otg_fsm.h')
-rw-r--r--drivers/usb/chipidea/otg_fsm.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/chipidea/otg_fsm.h b/drivers/usb/chipidea/otg_fsm.h
index d0ad4f9ef950..9e0fc4c83f13 100644
--- a/drivers/usb/chipidea/otg_fsm.h
+++ b/drivers/usb/chipidea/otg_fsm.h
@@ -62,17 +62,6 @@
/* SSEND time before SRP */
#define TB_SSEND_SRP (1500) /* minimum 1.5 sec, section:5.1.2 */
-enum ci_otg_fsm_timer_index {
- /*
- * CI specific timers, start from the end
- * of standard and auxiliary OTG timers
- */
- B_DATA_PLS = NUM_OTG_FSM_TIMERS,
- B_SSEND_SRP,
-
- NUM_CI_OTG_FSM_TIMERS,
-};
-
struct ci_otg_fsm_timer {
unsigned long expires; /* Number of count increase to timeout */
unsigned long count; /* Tick counter */
@@ -82,7 +71,7 @@ struct ci_otg_fsm_timer {
};
struct ci_otg_fsm_timer_list {
- struct ci_otg_fsm_timer *timer_list[NUM_CI_OTG_FSM_TIMERS];
+ struct ci_otg_fsm_timer *timer_list[NUM_OTG_FSM_TIMERS];
struct list_head active_timers;
};