diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-08-02 16:02:22 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-03 09:09:10 +0000 |
commit | 463060d6ff3471e5c6b08c06250cf882b5069489 (patch) | |
tree | 946fdfaed6bac2286a4008e71f629e2b03225e2e | |
parent | 362843923e3f244d6397a4c7f2134bbad3b725a6 (diff) | |
download | chrome-ec-463060d6ff3471e5c6b08c06250cf882b5069489.tar.gz |
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 <tm@semihalf.com>
Change-Id: I4d819300d9474b989776bf41419d22e91fac4a3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3805201
Reviewed-by: Al Semjonovs <asemjonovs@google.com>
Tested-by: Tomasz Michalec <tmichalec@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
-rw-r--r-- | zephyr/test/drivers/default/src/tcpci.c | 8 |
1 files changed, 7 insertions, 1 deletions
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); |