From 4ddce257da60f952f40653dc40c17b4e2356f47f Mon Sep 17 00:00:00 2001 From: Ben Lok Date: Wed, 9 Sep 2015 20:30:17 +0800 Subject: [PATCH] pd: increasing the waiting time after pd soft reset. The original waiting time is 5 mesc, but it isn't enough for Oak during sysjump from RO to RW, so, increase to 8 msec. BUG=chrome-os-partner:44584, chrome-os-partner:44952 BRANCH=none TEST=tested on Oak with a battery, with zinger attached, Issue EC console commands: > reboot > sysjump RW (EC_SYNC isn't enabled in bootloader) And check the PD status: > pd 0 state or > pd 1 state Change-Id: I846866a95d7730eef679ea9090883b33313d5007 Signed-off-by: Ben Lok Reviewed-on: https://chromium-review.googlesource.com/298420 Reviewed-by: Alec Berg --- common/usb_pd_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 37cc4a2d60..8ece6fd092 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -577,7 +577,7 @@ void pd_prepare_reset(void) pd_soft_reset(); /* Give time for soft reset to be sent */ - usleep(5*MSEC); + usleep(8*MSEC); } #ifdef CONFIG_USB_PD_DUAL_ROLE