mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
pd: Fix reverse of log size & port params
BRANCH=samus BUG=chrome-os-partner:35935 TEST=manual, port & size params are no longer reversed when running ectool --name cros_pd pdlog Change-Id: I83e5ad92c260ff71330b7b5c69b30cf3b7e81a98 Signed-off-by: Todd Broch <tbroch@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/243373 Reviewed-by: Alec Berg <alecaberg@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
17f68998fb
commit
db3f86ed0b
@@ -146,7 +146,7 @@ void pd_log_recv_vdm(int port, int cnt, uint32_t *payload)
|
||||
struct ec_response_pd_log *r = (void *)&payload[1];
|
||||
/* update port number from MCU point of view */
|
||||
size_t size = PD_LOG_SIZE(r->size_port);
|
||||
uint8_t size_port = PD_LOG_PORT_SIZE(size, port);
|
||||
uint8_t size_port = PD_LOG_PORT_SIZE(port, size);
|
||||
uint32_t timestamp;
|
||||
|
||||
if ((cnt < 2 + DIV_ROUND_UP(size, sizeof(uint32_t))) ||
|
||||
|
||||
Reference in New Issue
Block a user