From e768086fcf23ced14ce149e7593c478f8cc91b93 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Mon, 26 Jan 2015 13:08:33 -0800 Subject: [PATCH] samus_pd: Increase pericom debounce time again Misidentifications are still occurring on slow plug insert, so double the debounce time. BUG=chrome-os-partner:35633 TEST=Manual on Samus. Plug 1A Apple charger and verify detection is correct. Test various plug speeds and verify detection is correct on all but intentional slow plugs (first contact to fully plugged > 1s). BRANCH=Samus Change-Id: I1c34a6b8cfd1550d1ae5d3f45d9709277e39c51d Signed-off-by: Shawn Nematbakhsh Reviewed-on: https://chromium-review.googlesource.com/243328 Reviewed-by: Alec Berg --- board/samus_pd/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/samus_pd/board.c b/board/samus_pd/board.c index b2c21cb5cf..b11a1d0c78 100644 --- a/board/samus_pd/board.c +++ b/board/samus_pd/board.c @@ -121,7 +121,7 @@ void set_usb_switches(int port, int open) } /* Wait after a charger is detected to debounce pin contact order */ -#define USB_CHG_DEBOUNCE_DELAY_MS 500 +#define USB_CHG_DEBOUNCE_DELAY_MS 1000 /* * Wait after reset, before re-enabling attach interrupt, so that the * spurious attach interrupt from certain ports is ignored.