mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
pd: Remove redundant console output for received VDMs.
This output while useful at times: 1. takes ~100 bytes 2. can be replicated by 'pd dump 1' 3. can be viewed with twinkie either graphically or with 'tw console' Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=samus BUG=chrome-os-partner:34498 TEST=compiles saves 91 bytes Change-Id: I3529f383ef8a9dec5c9acf7e95ecb0545e7f2246 Reviewed-on: https://chromium-review.googlesource.com/241090 Reviewed-by: Alec Berg <alecaberg@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Todd Broch <tbroch@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
0747b700fa
commit
74fd6f96eb
@@ -764,17 +764,10 @@ static void queue_vdm(int port, uint32_t *header, const uint32_t *data,
|
||||
|
||||
static void handle_vdm_request(int port, int cnt, uint32_t *payload)
|
||||
{
|
||||
int rlen = 0, i;
|
||||
int rlen = 0;
|
||||
uint32_t *rdata;
|
||||
|
||||
if (pd[port].vdm_state == VDM_STATE_BUSY) {
|
||||
CPRINTF("VDM%d/%d [%02d] %08x", port, cnt,
|
||||
PD_VDO_CMD(payload[0]), payload[0]);
|
||||
if (PD_VDO_SVDM(payload[0]))
|
||||
for (i = 1; i < cnt; i++)
|
||||
CPRINTF(" %08x", payload[i]);
|
||||
CPRINTF("\n");
|
||||
|
||||
/* If UFP responded busy retry after timeout */
|
||||
if (PD_VDO_CMDT(payload[0]) == CMDT_RSP_BUSY) {
|
||||
pd[port].vdm_timeout.val = get_time().val +
|
||||
|
||||
Reference in New Issue
Block a user