summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps65912-i2c.c
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2018-05-30 23:23:43 -0700
committerLee Jones <lee.jones@linaro.org>2018-06-04 08:46:42 +0100
commitdf7c3bf24f546ab0e5a23b282d34850f2b8eb0d2 (patch)
tree192125f20a87641b62b06a7be33fc7e14115f78f /drivers/mfd/tps65912-i2c.c
parent3aa2177e47878f7e7616da8a2050c44f22301b6e (diff)
downloadblackbird-op-linux-df7c3bf24f546ab0e5a23b282d34850f2b8eb0d2.tar.gz
blackbird-op-linux-df7c3bf24f546ab0e5a23b282d34850f2b8eb0d2.zip
mfd: cros_ec_dev: Don't advertise junk features on failure
If the feature query fails during this driver's probe, we memset the features bits to 0, but then we continue to overwrite that with whatever junk we read back when the feature probing failed. In the case of a SPI device, it may be complete junk, causing the caller of this function to think certain features are present when they aren't. Don't copy over the bad message on failure so we can fail more gracefully. Fixes: e4244ebddae2 ("platform/chrome: Introduce a new function to check EC features.") Signed-off-by: Stephen Boyd <swboyd@chromium.org> Acked-by: Benson Leung <bleung@chromium.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/tps65912-i2c.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud