Commit 58bdf601 authored by Linus Torvalds's avatar Linus Torvalds

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
parents 20f14172 7c424679
...@@ -38,9 +38,9 @@ Required properties: ...@@ -38,9 +38,9 @@ Required properties:
"catalyst", "catalyst",
"microchip", "microchip",
"nxp",
"ramtron", "ramtron",
"renesas", "renesas",
"nxp",
"st", "st",
Some vendors use different model names for chips which are just Some vendors use different model names for chips which are just
......
...@@ -233,6 +233,7 @@ static int octeon_i2c_check_status(struct octeon_i2c *i2c, int final_read) ...@@ -233,6 +233,7 @@ static int octeon_i2c_check_status(struct octeon_i2c *i2c, int final_read)
return -EOPNOTSUPP; return -EOPNOTSUPP;
case STAT_TXDATA_NAK: case STAT_TXDATA_NAK:
case STAT_BUS_ERROR:
return -EIO; return -EIO;
case STAT_TXADDR_NAK: case STAT_TXADDR_NAK:
case STAT_RXADDR_NAK: case STAT_RXADDR_NAK:
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#define TWSI_CTL_AAK 0x04 /* Assert ACK */ #define TWSI_CTL_AAK 0x04 /* Assert ACK */
/* Status values */ /* Status values */
#define STAT_ERROR 0x00 #define STAT_BUS_ERROR 0x00
#define STAT_START 0x08 #define STAT_START 0x08
#define STAT_REP_START 0x10 #define STAT_REP_START 0x10
#define STAT_TXADDR_ACK 0x18 #define STAT_TXADDR_ACK 0x18
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment