summaryrefslogtreecommitdiff
path: root/drivers/reset/reset-uniphier-glue.c
diff options
context:
space:
mode:
authorChris Packham <chris.packham@alliedtelesis.co.nz>2020-07-02 10:39:11 +1200
committerWolfram Sang <wsa@kernel.org>2020-07-04 08:17:47 +0200
commitcd217f2300793a106b49c7dfcbfb26e348bc7593 (patch)
tree872df7f4b7abdf0c87998409d72de237f53165f4 /drivers/reset/reset-uniphier-glue.c
parent9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68 (diff)
i2c: algo-pca: Add 0x78 as SCL stuck low status for PCA9665
The PCA9665 datasheet says that I2CSTA = 78h indicates that SCL is stuck low, this differs to the PCA9564 which uses 90h for this indication. Treat either 0x78 or 0x90 as an indication that the SCL line is stuck. Based on looking through the PCA9564 and PCA9665 datasheets this should be safe for both chips. The PCA9564 should not return 0x78 for any valid state and the PCA9665 should not return 0x90. Fixes: eff9ec95efaa ("i2c-algo-pca: Add PCA9665 support") Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/reset/reset-uniphier-glue.c')
0 files changed, 0 insertions, 0 deletions