From 0ee58e53ecb9417b7c264be0d3c199e1919fafd6 Mon Sep 17 00:00:00 2001 From: Sam Hurst Date: Thu, 21 Nov 2019 13:57:26 -0800 Subject: TCPMv2: Fixed PR swap request from charge manager The PR swap request from the charge manager was locking up the TC state machine. The pd_request_power_swap function was changed so that it sends the request to the policy engine instead of initiating it directly. BUG=chromium:1027247 BRANCH=none TEST=make -j buildall Tested with apple dongle "A2119 2019 HBR3" known to reproduce this problem. Change-Id: Ic59036056434ed525a839cd781cff93e3b5bfc53 Signed-off-by: Sam Hurst Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1928795 Reviewed-by: Denis Brockus Reviewed-by: Jett Rink --- test/usb_pe_drp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/usb_pe_drp.c') diff --git a/test/usb_pe_drp.c b/test/usb_pe_drp.c index c6a1dc0af7..e8167cc1ac 100644 --- a/test/usb_pe_drp.c +++ b/test/usb_pe_drp.c @@ -29,6 +29,10 @@ int board_vbus_source_enabled(int port) { return 0; } +void tc_request_power_swap(int port) +{ + /* Do nothing */ +} /** * Test section -- cgit v1.2.1