diff options
author | Alec Berg <alecaberg@chromium.org> | 2014-06-10 11:16:01 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-06-11 00:13:54 +0000 |
commit | 93bbf29aad63dd18edbe4e683aa74a04ba690e20 (patch) | |
tree | 8909d0a3353155aa01bdbfd1f3f1408874a833c2 | |
parent | c388281b06e5716209596bff0d4bf4e07887b1af (diff) | |
download | chrome-ec-93bbf29aad63dd18edbe4e683aa74a04ba690e20.tar.gz |
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 <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/203206
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | common/usb_pd_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); */ |