diff options
author | Karthikeyan Ramasubramanian <kramasub@chromium.org> | 2019-06-12 12:08:29 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-07-20 00:49:27 +0000 |
commit | c3aa5d72a4a74245589c749d97cb1cca39e6380d (patch) | |
tree | 83a4209461f484e6e8e738f1e63b1dd712d043e6 /driver | |
parent | 5936367096413abf294aa4584df53ec80bf8ef4c (diff) | |
download | chrome-ec-c3aa5d72a4a74245589c749d97cb1cca39e6380d.tar.gz |
drivers/tcpm/ps8xxx: Return hardcoded vendor and product id
When the requester does not expect the chip information from the live
target, return the hardcoded vendor and product id.
BUG=b:128820536,b:119046668
BRANCH=None
TEST=Boot to ChromeOS
Change-Id: I74affb00951411a3483258a8db165038e7eb683f
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1617894
Tested-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Auto-Submit: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/tcpm/ps8xxx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/tcpm/ps8xxx.c b/driver/tcpm/ps8xxx.c index 590e642ab0..db243621b8 100644 --- a/driver/tcpm/ps8xxx.c +++ b/driver/tcpm/ps8xxx.c @@ -140,6 +140,11 @@ static int ps8xxx_get_chip_info(int port, int live, if (rv) return rv; + if (!live) { + (*chip_info)->vendor_id = PS8XXX_VENDOR_ID; + (*chip_info)->product_id = PS8XXX_PRODUCT_ID; + } + if ((*chip_info)->fw_version_number == 0 || (*chip_info)->fw_version_number == -1 || live) { rv = tcpc_read(port, FW_VER_REG, &val); |