From e3dc95984501e49a9718fb207a17a30ec7945ef4 Mon Sep 17 00:00:00 2001 From: Ting Shen Date: Wed, 1 Dec 2021 18:27:16 +0800 Subject: cherry: disable PD log We found that disabling *all* console outputs makes PD response time 30% faster. Since we can't disable all outputs, try to remove a few redundant things first. BUG=b:193753475 TEST=Measure the delay between Source_Cap and Request message. 15ms after this patch. BRANCH=none Signed-off-by: Ting Shen Change-Id: I59047e9fb83eefe0f5d1c587401309dc2ffb7ef3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3310298 Reviewed-by: Eric Yilun Lin Reviewed-by: Rong Chang Commit-Queue: Ting Shen Tested-by: Ting Shen --- baseboard/cherry/baseboard.h | 1 - board/cherry/board.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/baseboard/cherry/baseboard.h b/baseboard/cherry/baseboard.h index 6f5a98b786..ceee508680 100644 --- a/baseboard/cherry/baseboard.h +++ b/baseboard/cherry/baseboard.h @@ -109,7 +109,6 @@ #define CONFIG_LED_COMMON /* PD / USB-C / PPC */ -#define CONFIG_USB_PD_DEBUG_LEVEL 3 #define CONFIG_CMD_PPC_DUMP #define CONFIG_HOSTCMD_PD_CONTROL #define CONFIG_IT83XX_TUNE_CC_PHY diff --git a/board/cherry/board.h b/board/cherry/board.h index cafe99da3f..1c52eac8ba 100644 --- a/board/cherry/board.h +++ b/board/cherry/board.h @@ -30,7 +30,7 @@ #define CONFIG_LED_ONOFF_STATES_BAT_LOW 10 /* PD / USB-C / PPC */ -#define CONFIG_USB_PD_DEBUG_LEVEL 3 +#define CONFIG_USB_PD_DEBUG_LEVEL 0 /* Optional console commands */ #define CONFIG_CMD_FLASH -- cgit v1.2.1