summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorLi Jun <B47624@freescale.com>2014-09-24 14:05:30 +0800
committerNitin Garg <nitin.garg@nxp.com>2016-01-14 10:59:13 -0600
commit9b4e35196798dd926ee9c94b90a2aba298897199 (patch)
treed66790530c9f845658e365b971b486e888167481 /include/linux/usb
parent31063b39242d7a099c9cb08f689f930de5ee1838 (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) (cherry picked from commit b854141cc5a7150751e7f7fd2dfb10a415cfea10)
Diffstat (limited to 'include/linux/usb')
-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 5743f44584fa..00f542609c06 100644
--- a/include/linux/usb/otg-fsm.h
+++ b/include/linux/usb/otg-fsm.h
@@ -64,6 +64,7 @@ enum otg_fsm_timer {
B_DATA_PLS,
B_SSEND_SRP,
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;