Skip to content

Commit

Permalink
Merge branch 'i2c/for-current-fixed' of git://git.kernel.org/pub/scm/…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Linus Torvalds committed Mar 3, 2018
2 parents 20f1417 + 7c42467 commit 58bdf60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/eeprom/at24.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ Required properties:

"catalyst",
"microchip",
"nxp",
"ramtron",
"renesas",
"nxp",
"st",

Some vendors use different model names for chips which are just
Expand Down
1 change: 1 addition & 0 deletions drivers/i2c/busses/i2c-octeon-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ static int octeon_i2c_check_status(struct octeon_i2c *i2c, int final_read)
return -EOPNOTSUPP;

case STAT_TXDATA_NAK:
case STAT_BUS_ERROR:
return -EIO;
case STAT_TXADDR_NAK:
case STAT_RXADDR_NAK:
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-octeon-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#define TWSI_CTL_AAK 0x04 /* Assert ACK */

/* Status values */
#define STAT_ERROR 0x00
#define STAT_BUS_ERROR 0x00
#define STAT_START 0x08
#define STAT_REP_START 0x10
#define STAT_TXADDR_ACK 0x18
Expand Down

0 comments on commit 58bdf60

Please sign in to comment.