diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-03-03 17:55:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-03-03 17:55:20 -0500 |
commit | 58bdf601c2de6071d0386a7a6fa707bd04761c47 (patch) | |
tree | 68ea7e26bca786b88f023d0adce030c767875af1 | |
parent | 20f14172cbb8d711a47d336355fa947631444f60 (diff) | |
parent | 7c4246797b84e55e2dfaaf8a18033de9df7c18c1 (diff) |
Merge branch 'i2c/for-current-fixed' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c fixes from Wolfram Sang:
"A driver fix and a documentation fix (which makes dependency handling
for the next cycle easier)"
* 'i2c/for-current-fixed' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
i2c: octeon: Prevent error message on bus error
dt-bindings: at24: sort manufacturers alphabetically
-rw-r--r-- | Documentation/devicetree/bindings/eeprom/at24.txt | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-octeon-core.c | 1 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-octeon-core.h | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/eeprom/at24.txt b/Documentation/devicetree/bindings/eeprom/at24.txt index 1812c848e369..abfae1beca2b 100644 --- a/Documentation/devicetree/bindings/eeprom/at24.txt +++ b/Documentation/devicetree/bindings/eeprom/at24.txt | |||
@@ -38,9 +38,9 @@ Required properties: | |||
38 | 38 | ||
39 | "catalyst", | 39 | "catalyst", |
40 | "microchip", | 40 | "microchip", |
41 | "nxp", | ||
41 | "ramtron", | 42 | "ramtron", |
42 | "renesas", | 43 | "renesas", |
43 | "nxp", | ||
44 | "st", | 44 | "st", |
45 | 45 | ||
46 | Some vendors use different model names for chips which are just | 46 | Some vendors use different model names for chips which are just |
diff --git a/drivers/i2c/busses/i2c-octeon-core.c b/drivers/i2c/busses/i2c-octeon-core.c index 1d8775799056..d9607905dc2f 100644 --- a/drivers/i2c/busses/i2c-octeon-core.c +++ b/drivers/i2c/busses/i2c-octeon-core.c | |||
@@ -233,6 +233,7 @@ static int octeon_i2c_check_status(struct octeon_i2c *i2c, int final_read) | |||
233 | return -EOPNOTSUPP; | 233 | return -EOPNOTSUPP; |
234 | 234 | ||
235 | case STAT_TXDATA_NAK: | 235 | case STAT_TXDATA_NAK: |
236 | case STAT_BUS_ERROR: | ||
236 | return -EIO; | 237 | return -EIO; |
237 | case STAT_TXADDR_NAK: | 238 | case STAT_TXADDR_NAK: |
238 | case STAT_RXADDR_NAK: | 239 | case STAT_RXADDR_NAK: |
diff --git a/drivers/i2c/busses/i2c-octeon-core.h b/drivers/i2c/busses/i2c-octeon-core.h index a7ef19855bb8..9bb9f64fdda0 100644 --- a/drivers/i2c/busses/i2c-octeon-core.h +++ b/drivers/i2c/busses/i2c-octeon-core.h | |||
@@ -43,7 +43,7 @@ | |||
43 | #define TWSI_CTL_AAK 0x04 /* Assert ACK */ | 43 | #define TWSI_CTL_AAK 0x04 /* Assert ACK */ |
44 | 44 | ||
45 | /* Status values */ | 45 | /* Status values */ |
46 | #define STAT_ERROR 0x00 | 46 | #define STAT_BUS_ERROR 0x00 |
47 | #define STAT_START 0x08 | 47 | #define STAT_START 0x08 |
48 | #define STAT_REP_START 0x10 | 48 | #define STAT_REP_START 0x10 |
49 | #define STAT_TXADDR_ACK 0x18 | 49 | #define STAT_TXADDR_ACK 0x18 |