From 93bbf29aad63dd18edbe4e683aa74a04ba690e20 Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Tue, 10 Jun 2014 11:16:01 -0700 Subject: [PATCH] pd: increase delay after receiving good CRC to avoid starting new packet Increase the delay after receiving a good CRC in send_validate_message() to avoid catching the last edge as the start of a new packet. BUG=none BRANCH=none TEST=Tested with zinger and samus using the python script to flash zinger RW, and simply negotiating power and receiving pings. Change-Id: Iffdd73e02e5d292396d46a611d728f66402f2da4 Signed-off-by: Alec Berg Reviewed-on: https://chromium-review.googlesource.com/203206 Reviewed-by: Vincent Palatin --- 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 34a6183cd2..af38095cdd 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -314,7 +314,7 @@ static int send_validate_message(void *ctxt, uint16_t header, uint8_t cnt, /* got the GoodCRC we were expecting */ inc_id(); /* do not catch last edges as a new packet */ - udelay(10); + udelay(20); return bit_len; } else { /* CPRINTF("ERR ACK/%d %04x\n", id, head); */