]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
i2c: fsi: Fix the port number field in status register
authorEddie James <eajames@linux.ibm.com>
Tue, 9 Jun 2020 20:15:54 +0000 (15:15 -0500)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:37:02 +0000 (15:37 -0400)
[ Upstream commit 502035e284cc7e9efef22b01771d822d49698ab9 ]

The port number field in the status register was not correct, so fix it.

Fixes: d6ffb6300116 ("i2c: Add FSI-attached I2C master algorithm")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-fsi.c

index e0c256922d4f177b30c4d7aafe39d9ff9f617ff9..977d6f524649cdf5f626290900957b4207487349 100644 (file)
@@ -98,7 +98,7 @@
 #define I2C_STAT_DAT_REQ       BIT(25)
 #define I2C_STAT_CMD_COMP      BIT(24)
 #define I2C_STAT_STOP_ERR      BIT(23)
-#define I2C_STAT_MAX_PORT      GENMASK(19, 16)
+#define I2C_STAT_MAX_PORT      GENMASK(22, 16)
 #define I2C_STAT_ANY_INT       BIT(15)
 #define I2C_STAT_SCL_IN                BIT(11)
 #define I2C_STAT_SDA_IN                BIT(10)