From a019bf585393ba02ba24949b1ca4d99253a42d13 Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Thu, 23 Oct 2014 16:08:23 -0700 Subject: [PATCH] pd: make transition out of hard reset shorter Shorten the hard reset timeout so that we transition out of hard reset state faster. BUG=none BRANCH=samus TEST=test on third-party product that sends source cap very soon after we send hard reset. without this patch we weren't responding to the first few source caps, with this change we respond right away. Change-Id: I285aaf0296604da22438e31bc962629701694b7b Signed-off-by: Alec Berg Reviewed-on: https://chromium-review.googlesource.com/225247 Reviewed-by: Vincent Palatin --- common/usb_pd_protocol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index fa85ac5643..aac2945a30 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -1567,6 +1567,7 @@ void pd_task(void) send_hard_reset(port); /* reset our own state machine */ execute_hard_reset(port); + timeout = 10*MSEC; break; case PD_STATE_BIST: send_bist_cmd(port);