| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | From: Russell King <rmk+kernel@armlinux.org.uk> |
| 2 | Bcc: linux@mail.armlinux.org.uk |
| 3 | Subject: [PATCH 3/7] i2c: pxa: ensure timeout messages are unique |
| 4 | MIME-Version: 1.0 |
| 5 | Content-Disposition: inline |
| 6 | Content-Transfer-Encoding: 8bit |
| 7 | Content-Type: text/plain; charset="utf-8" |
| 8 | |
| 9 | Ensure that the various timeout messages can identify where in the code |
| 10 | they were produced from to aid debugging. |
| 11 | |
| 12 | Signed-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 | |