summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLi Jun <B47624@freescale.com>2014-09-24 14:05:30 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-09-17 09:23:16 -0500
commit7c50ac173b361a07afc4cb6c674666c82fe950ad (patch)
treeaf81daaf7c7e197438801c18ff0881882a3eed21 /include
parentb33739c5af748be6979ca5dc258c240c6e0996e4 (diff)
MLK-9606-2 usb: otg: test: start tst_maint timer and set otg_vbus_off flag
This patch adds 2 variables: tst_maint and otg_vbus_off, tst_maint is to check if current session for test device; otg_vbus_off is to notify if A device need turn off vbus immediately after B device disconnects. The otg test device handling is added into ehset driver, for that device, A-device should start a timer for maintain the session, and set otg_vbus_off flag according to its bcdDevice value. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> (cherry picked from commit 78a2c14bdea4b8e334c7e0afad074b61b71193cb)
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/otg-fsm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/usb/otg-fsm.h b/include/linux/usb/otg-fsm.h
index 19a338926242..7a9967faa519 100644
--- a/include/linux/usb/otg-fsm.h
+++ b/include/linux/usb/otg-fsm.h
@@ -64,6 +64,7 @@ enum otg_fsm_timer {
B_SSEND_SRP,
A_WAIT_ENUM,
A_DP_END,
+ A_TST_MAINT,
HNP_POLLING,
NUM_OTG_FSM_TIMERS,
@@ -107,6 +108,10 @@ struct otg_fsm {
int b_hnp_enable;
int a_clr_err;
+ /* OTG test device */
+ int tst_maint;
+ int otg_vbus_off;
+
/* Informative variables */
int a_bus_drop_inf;
int a_bus_req_inf;