summaryrefslogtreecommitdiff
path: root/board/vell
diff options
context:
space:
mode:
authorDevin Lu <Devin.Lu@quantatw.com>2022-04-01 12:42:36 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-01 06:58:47 +0000
commit77b76d949b8c40e1eca17ac9febc5a8795d89a4f (patch)
tree4b386934d01a8cc1c5f2aaeea932cbaf42832171 /board/vell
parentca0038e39e5e70bf22c090aeaf981205853aee72 (diff)
downloadchrome-ec-77b76d949b8c40e1eca17ac9febc5a8795d89a4f.tar.gz
vell: Fix tcpc get alert status
BUG=b:226475792 BRANCH=none TEST=On Vell, Fill all of the USBC ports with the device. Run stress reboot ec. Make sure USBC ports all work. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I9004ef6edbf34f91548205497b0689b6658998c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3565221 Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'board/vell')
-rw-r--r--board/vell/usbc_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/vell/usbc_config.c b/board/vell/usbc_config.c
index eca6782ba4..ee61614361 100644
--- a/board/vell/usbc_config.c
+++ b/board/vell/usbc_config.c
@@ -359,10 +359,10 @@ uint16_t tcpc_get_alert_status(void)
uint16_t status = 0;
if (gpio_get_level(GPIO_USB_C0_C1_TCPC_INT_ODL) == 0)
- status = PD_STATUS_TCPC_ALERT_0 | PD_STATUS_TCPC_ALERT_1;
+ status |= PD_STATUS_TCPC_ALERT_0 | PD_STATUS_TCPC_ALERT_1;
if (gpio_get_level(GPIO_USB_C2_C3_TCPC_INT_ODL) == 0)
- status = PD_STATUS_TCPC_ALERT_2 | PD_STATUS_TCPC_ALERT_3;
+ status |= PD_STATUS_TCPC_ALERT_2 | PD_STATUS_TCPC_ALERT_3;
return status;
}