Commit fce96f3e authored by Willy Tarreau's avatar Willy Tarreau Committed by Jean Delvare

i2c/scx200_acb: Provide more information on bus errors

Upon a bus error, it's rather hard to guess what happened. Dumping the
address, length and status provides a lot of value for troubleshooting
issues.
Signed-off-by: default avatarWilly Tarreau <wtarreau@exceliance.fr>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 2bb5095a
...@@ -217,8 +217,10 @@ static void scx200_acb_machine(struct scx200_acb_iface *iface, u8 status) ...@@ -217,8 +217,10 @@ static void scx200_acb_machine(struct scx200_acb_iface *iface, u8 status)
return; return;
error: error:
dev_err(&iface->adapter.dev, "%s in state %s\n", errmsg, dev_err(&iface->adapter.dev,
scx200_acb_state_name[iface->state]); "%s in state %s (addr=0x%02x, len=%d, status=0x%02x)\n", errmsg,
scx200_acb_state_name[iface->state], iface->address_byte,
iface->len, status);
iface->state = state_idle; iface->state = state_idle;
iface->result = -EIO; iface->result = -EIO;
......
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