diff options
author | Tomasz Michalec <tm@semihalf.com> | 2021-11-04 14:40:56 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-09 00:25:11 +0000 |
commit | 42e953b98ee5a9d148759b15fa23163114748645 (patch) | |
tree | b07d65cb748d1c7299742d18c1db2005fccb2acc | |
parent | 687b239833af6369141afeea2f25956184d70b09 (diff) | |
download | chrome-ec-42e953b98ee5a9d148759b15fa23163114748645.tar.gz |
ps8815: Limit Rp detect workaround to PS8815
This patch test if product ID is PS8815 in Rp detect workaround check.
Without this change it is possible that this workaround is activated for
PS8xxx different than PS8815.
BUG=none
BRANCH=none
TEST=make buildall
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Ied30749e3fad617780a40e138cb3bb74e949f6dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3259942
Tested-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | driver/tcpm/ps8xxx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/tcpm/ps8xxx.c b/driver/tcpm/ps8xxx.c index 11551b1a7c..426219f1fa 100644 --- a/driver/tcpm/ps8xxx.c +++ b/driver/tcpm/ps8xxx.c @@ -772,6 +772,9 @@ __maybe_unused static int ps8815_disable_rp_detect_workaround_check(int port) ps8815_disable_rp_detect[port] = false; ps8815_disconnected[port] = true; + if (product_id[port] != PS8815_PRODUCT_ID) + return EC_SUCCESS; + reg = get_reg_by_product(port, REG_FW_VER); rv = tcpc_read(port, reg, &val); if (rv != EC_SUCCESS) |