diff options
author | Andrew McRae <amcrae@google.com> | 2020-05-26 14:43:47 +1000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-27 05:18:18 +0000 |
commit | 51c31e05765111caac26d316544d2b6b74fcd1e0 (patch) | |
tree | 8250fb11e6a757e1f54fc1ab254e89cd14b6f3f5 | |
parent | a3881b5632d2371374a69bcea64688d64c231e58 (diff) | |
download | chrome-ec-51c31e05765111caac26d316544d2b6b74fcd1e0.tar.gz |
TCPM: Increase queue size for PD messages
Connecting a P2419HC Type-C monitor fails to power Puff
because the PD message queue overruns and the PD connection
is reset.
Messages are displayed:
C0 RX EC Buffer full!
BUG=b:157519816
TEST=P2419HC now works on Puff
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I34c4f5d5fe8331975e928f47dcbd798823561ea7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2215388
Tested-by: Andrew McRae <amcrae@chromium.org>
Commit-Queue: Andrew McRae <amcrae@chromium.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
-rw-r--r-- | driver/tcpm/tcpci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/driver/tcpm/tcpci.c b/driver/tcpm/tcpci.c index 90a51ed971..bbb5ead185 100644 --- a/driver/tcpm/tcpci.c +++ b/driver/tcpm/tcpci.c @@ -783,7 +783,8 @@ int tcpci_tcpm_get_message_raw(int port, uint32_t *payload, int *head) } /* Cache depth needs to be power of 2 */ -#define CACHE_DEPTH BIT(2) +/* TODO: Keep track of the high water mark */ +#define CACHE_DEPTH BIT(3) #define CACHE_DEPTH_MASK (CACHE_DEPTH - 1) struct queue { |