diff options
author | Li Jun <B47624@freescale.com> | 2014-09-24 14:05:30 +0800 |
---|---|---|
committer | Li Jun <B47624@freescale.com> | 2014-09-30 10:12:45 +0800 |
commit | 78a2c14bdea4b8e334c7e0afad074b61b71193cb (patch) | |
tree | 249d1e659cf5c36d28b110feb6133da0a49db17d /include | |
parent | b88ee5e2cbf55aaed3b6c5dd0aff7f826f9e357d (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>
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 d4bf33b1ad6f..f12584dc7c4d 100644 --- a/include/linux/usb/otg-fsm.h +++ b/include/linux/usb/otg-fsm.h @@ -61,6 +61,7 @@ enum otg_fsm_timer { B_SE0_SRP, B_SRP_FAIL, A_WAIT_ENUM, + A_TST_MAINT, HNP_POLLING, NUM_OTG_FSM_TIMERS, @@ -104,6 +105,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; |