blob: 37a77b6c5c55a0e4f855d21aaebc9bd0cb399204 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From: Russell King <rmk+kernel@armlinux.org.uk>
2Bcc: linux@mail.armlinux.org.uk
3Subject: [PATCH 3/7] i2c: pxa: ensure timeout messages are unique
4MIME-Version: 1.0
5Content-Disposition: inline
6Content-Transfer-Encoding: 8bit
7Content-Type: text/plain; charset="utf-8"
8
9Ensure that the various timeout messages can identify where in the code
10they were produced from to aid debugging.
11
12Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
13---
14 drivers/i2c/busses/i2c-pxa.c | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
16
17--- a/drivers/i2c/busses/i2c-pxa.c
18+++ b/drivers/i2c/busses/i2c-pxa.c
19@@ -1052,7 +1052,7 @@ static int i2c_pxa_do_xfer(struct pxa_i2
20 ret = i2c->msg_idx;
21
22 if (!timeout && i2c->msg_num) {
23- i2c_pxa_scream_blue_murder(i2c, "timeout");
24+ i2c_pxa_scream_blue_murder(i2c, "timeout with active message");
25 ret = I2C_RETRY;
26 }
27
28@@ -1122,7 +1122,7 @@ static int i2c_pxa_pio_set_master(struct
29 if (timeout < 0) {
30 show_state(i2c);
31 dev_err(&i2c->adap.dev,
32- "i2c_pxa: timeout waiting for bus free\n");
33+ "i2c_pxa: timeout waiting for bus free (set_master)\n");
34 return I2C_RETRY;
35 }
36
37@@ -1166,7 +1166,7 @@ static int i2c_pxa_do_pio_xfer(struct px
38
39 out:
40 if (timeout == 0) {
41- i2c_pxa_scream_blue_murder(i2c, "timeout");
42+ i2c_pxa_scream_blue_murder(i2c, "timeout (do_pio_xfer)");
43 ret = I2C_RETRY;
44 }
45