summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2018-01-23 10:08:53 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-01-30 14:54:23 -0800
commit9afcd8d602e3db10992866cbd52a303fbd77cc4b (patch)
treee7e484e6283b5ae68353eca6864e5d69290bb731 /common
parent1c90656d03a2d28392515e374681dce4698ca881 (diff)
downloadchrome-ec-9afcd8d602e3db10992866cbd52a303fbd77cc4b.tar.gz
cleanup: Remove CONFIG_USB_PD_TCPC_BOARD_INIT
It's no longer necessary to call board_tcpc_init() from PD tasks, since HOOK_INIT completion is guaranteed before the task starts. Also, calling board_tcpc_init() for each PD task without a port arg is a bad idea. BUG=b:72229154 BRANCH=none TEST=`make buildall -j` Change-Id: I6fba07771693b8343568041960a263e02775a8fc Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/881538 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/usb_pd_protocol.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c
index 9aec67cbb6..78578aaf9f 100644
--- a/common/usb_pd_protocol.c
+++ b/common/usb_pd_protocol.c
@@ -2042,11 +2042,6 @@ void pd_task(void *u)
/* Ensure the power supply is in the default state */
pd_power_supply_reset(port);
-#ifdef CONFIG_USB_PD_TCPC_BOARD_INIT
- /* Board specific TCPC init */
- board_tcpc_init();
-#endif
-
/* Initialize TCPM driver and wait for TCPC to be ready */
res = tcpm_init(port);