usb: otg-fsm: add B_AIDL_BDIS timer
authorLi Jun <jun.li@nxp.com>
Fri, 19 Feb 2016 02:04:48 +0000 (10:04 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:37 +0000 (15:14 +0200)
Add A-idle to B-disconnect timer, B-device detects that bus is idle
for more than TB_AIDL_BDIS min and begins HNP by turning off pullup
on D+. This allows the bus to discharge to the SE0 state.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
include/linux/usb/otg-fsm.h

index 3059a9599f537cfc5be215d0aeea541c61809a3c..24198e16f8493f2994798ad1281810de9012c147 100644 (file)
@@ -60,6 +60,7 @@ enum otg_fsm_timer {
        A_AIDL_BDIS,
        B_ASE0_BRST,
        A_BIDL_ADIS,
+       B_AIDL_BDIS,
 
        /* Auxiliary timers */
        B_SE0_SRP,