diff options
author | Li Jun <B47624@freescale.com> | 2014-09-24 14:05:30 +0800 |
---|---|---|
committer | Li Jun <jun.li@freescale.com> | 2015-06-01 17:02:01 +0800 |
commit | b854141cc5a7150751e7f7fd2dfb10a415cfea10 (patch) | |
tree | f13b169182a07af2232554f506abe79d030bedea /include | |
parent | 8c11515f82876e69aa14e1c31fcb5031cf4edfcc (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.h | 5 |
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; |