summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/otg_fsm.h
diff options
context:
space:
mode:
authorLi Jun2016-02-19 03:04:49 +0100
committerFelipe Balbi2016-03-04 14:14:38 +0100
commit4a75754751a02cd12cd598e02ded226c3ea2fc23 (patch)
tree959bbcad625befb91233326b172156f05451c741 /drivers/usb/chipidea/otg_fsm.h
parentusb: otg-fsm: add B_AIDL_BDIS timer (diff)
downloadkernel-qcow2-linux-4a75754751a02cd12cd598e02ded226c3ea2fc23.tar.gz
kernel-qcow2-linux-4a75754751a02cd12cd598e02ded226c3ea2fc23.tar.xz
kernel-qcow2-linux-4a75754751a02cd12cd598e02ded226c3ea2fc23.zip
usb: chipidea: otg: 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 DP, this allows the bus to discharge to the SE0 state. This timer was missed and failed with PET test: 6.8.5 B-UUT HNP of USB OTG and EH automated compliance plan v1.2, this patch is to fix this timing issue. 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>
Diffstat (limited to 'drivers/usb/chipidea/otg_fsm.h')
-rw-r--r--drivers/usb/chipidea/otg_fsm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/otg_fsm.h b/drivers/usb/chipidea/otg_fsm.h
index 262d6ef8df7c..6366fe398ba6 100644
--- a/drivers/usb/chipidea/otg_fsm.h
+++ b/drivers/usb/chipidea/otg_fsm.h
@@ -62,6 +62,8 @@
/* SSEND time before SRP */
#define TB_SSEND_SRP (1500) /* minimum 1.5 sec, section:5.1.2 */
+#define TB_AIDL_BDIS (20) /* 4ms ~ 150ms, section 5.2.1 */
+
#if IS_ENABLED(CONFIG_USB_OTG_FSM)
int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci);