summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2015-10-21 13:28:51 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-21 17:31:24 -0700
commit5ef895616919c1ab132463eeb86c9ea9d2bb6c87 (patch)
tree3b2a4ac420a9500aa33bf64d32d46ca82446f4d4
parent695026da7ac59f0bd29ce9b584cb572c109855a6 (diff)
downloadchrome-ec-5ef895616919c1ab132463eeb86c9ea9d2bb6c87.tar.gz
ps8740: Make revision check a minimum instead of explicit value
With a new PS8740 chip revision 0xb the explicit check for 0xa is failing. Change this to allow revisions >= 0xa to pass. BUG=chrome-os-partner:46728 BRANCH=none TEST=boot on chell and confirm lack of mux init errors Change-Id: I0847bb9953920569922183ed4c83da2370ef40e4 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/307932 Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--driver/usb_mux_ps8740.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/usb_mux_ps8740.c b/driver/usb_mux_ps8740.c
index 2023c2dea4..dfe111bf31 100644
--- a/driver/usb_mux_ps8740.c
+++ b/driver/usb_mux_ps8740.c
@@ -53,7 +53,7 @@ static int ps8740_init(int i2c_addr)
res = ps8740_read(i2c_addr, PS8740_REG_REVISION_ID2, &val);
if (res)
return res;
- if (val != PS8740_REVISION_ID2)
+ if (val < PS8740_REVISION_ID2)
return EC_ERROR_UNKNOWN;
res = ps8740_read(i2c_addr, PS8740_REG_CHIP_ID1, &val);