Skip to content

Commit

Permalink
i2c: octeon: Avoid printk after too long SMBUS message
Browse files Browse the repository at this point in the history
Remove the warning about a too long SMBUS message because
the ipmi_ssif driver triggers this warning too frequently so it
spams the message log.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
  • Loading branch information
Jan Glauber authored and Wolfram Sang committed Jun 9, 2016
1 parent 908cf12 commit 8913f8d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/i2c/busses/i2c-octeon.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,12 +957,8 @@ static int octeon_i2c_read(struct octeon_i2c *i2c, int target,

data[i] = octeon_i2c_data_read(i2c);
if (recv_len && i == 0) {
if (data[i] > I2C_SMBUS_BLOCK_MAX + 1) {
dev_err(i2c->dev,
"%s: read len > I2C_SMBUS_BLOCK_MAX %d\n",
__func__, data[i]);
if (data[i] > I2C_SMBUS_BLOCK_MAX + 1)
return -EPROTO;
}
length += data[i];
}

Expand Down

0 comments on commit 8913f8d

Please sign in to comment.