From 5ef895616919c1ab132463eeb86c9ea9d2bb6c87 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 21 Oct 2015 13:28:51 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/307932 Reviewed-by: Shawn N --- driver/usb_mux_ps8740.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);