Skip to content

Commit 5895a86

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: ali15x3: remove printout on handled timeouts
I2C and SMBus timeouts are not something the user needs to be informed about on controller level. The client driver may know if that really is a problem and give more detailed information to the user. The controller should just pass this information upwards. Remove the printout. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Jean Delvare <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent d178a2f commit 5895a86

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/i2c/busses/i2c-ali15x3.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,8 @@ static int ali15x3_transaction(struct i2c_adapter *adap)
294294
&& (timeout++ < MAX_TIMEOUT));
295295

296296
/* If the SMBus is still busy, we give up */
297-
if (timeout > MAX_TIMEOUT) {
297+
if (timeout > MAX_TIMEOUT)
298298
result = -ETIMEDOUT;
299-
dev_err(&adap->dev, "SMBus Timeout!\n");
300-
}
301299

302300
if (temp & ALI15X3_STS_TERM) {
303301
result = -EIO;

0 commit comments

Comments
 (0)