From 463060d6ff3471e5c6b08c06250cf882b5069489 Mon Sep 17 00:00:00 2001 From: Tomasz Michalec Date: Tue, 2 Aug 2022 16:02:22 +0200 Subject: zephyr: test: tcpci: Reset TCPC mux flags after test Reset USB_MUX_FLAG_NOT_TCPC flag in usb mux associated with TCPC after TCPCI test. With this flag set, TCPC init function is changed and all alerts are masked. This may result in failing USB integration tests. BUG=None TEST=zmake -D test test-drivers BRANCH=None Signed-off-by: Tomasz Michalec Change-Id: I4d819300d9474b989776bf41419d22e91fac4a3b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3805201 Reviewed-by: Al Semjonovs Tested-by: Tomasz Michalec Commit-Queue: Tomasz Michalec --- zephyr/test/drivers/default/src/tcpci.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zephyr/test/drivers/default/src/tcpci.c b/zephyr/test/drivers/default/src/tcpci.c index 010ad44e76..243838dea3 100644 --- a/zephyr/test/drivers/default/src/tcpci.c +++ b/zephyr/test/drivers/default/src/tcpci.c @@ -505,4 +505,10 @@ static void *tcpci_setup(void) return NULL; } -ZTEST_SUITE(tcpci, drivers_predicate_pre_main, tcpci_setup, NULL, NULL, NULL); +static void tcpci_after(void *state) +{ + set_usb_mux_tcpc(); +} + +ZTEST_SUITE(tcpci, drivers_predicate_pre_main, tcpci_setup, NULL, tcpci_after, + NULL); -- cgit v1.2.1