Commit bf5d95c8 authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare

i2c-viapro: Don't log nacks

Transactions not acked can happen every now and then, in particular
during device detection, and various transaction types can be used for
this purpose. So stop logging this event, except when debugging is
enabled. This is what other similar drivers (e.g. i2c-i801 or
i2c-piix4) do.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent db79f2a1
...@@ -185,14 +185,8 @@ static int vt596_transaction(u8 size) ...@@ -185,14 +185,8 @@ static int vt596_transaction(u8 size)
} }
if (temp & 0x04) { if (temp & 0x04) {
int read = inb_p(SMBHSTADD) & 0x01;
result = -ENXIO; result = -ENXIO;
/* The quick and receive byte commands are used to probe dev_dbg(&vt596_adapter.dev, "No response\n");
for chips, so errors are expected, and we don't want
to frighten the user. */
if (!((size == VT596_QUICK && !read) ||
(size == VT596_BYTE && read)))
dev_err(&vt596_adapter.dev, "Transaction error!\n");
} }
/* Resetting status register */ /* Resetting status register */
......
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