diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-05-12 00:10:42 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-05-12 13:32:52 +0300 |
commit | 18d30c0946f912cdb86ab0417661eccda6342375 (patch) | |
tree | c6c6bc1409dc9c21419adae8248bbc64da473fbc | |
parent | ae1c3b73945cadb59af1cbf31bc8105d2014ef90 (diff) | |
download | linux-18d30c0946f912cdb86ab0417661eccda6342375.tar.xz |
i2c: pxa: remove some unnecessary debug
Remove unnecessary show_state() in the loop inside
i2c_pxa_pio_set_master(), which can be unnecessarily verbose.
Remove the i2c_pxa_scream_blue_murder() in i2c_pxa_pio_xfer(), which
will trigger if we are probing the I2C bus and a slave does not
respond; this is a normal event, and not something to report.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
-rw-r--r-- | drivers/i2c/busses/i2c-pxa.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index 0becab239476..db739cce93ac 100644 --- a/drivers/i2c/busses/i2c-pxa.c +++ b/drivers/i2c/busses/i2c-pxa.c @@ -1161,10 +1161,8 @@ static int i2c_pxa_pio_set_master(struct pxa_i2c *i2c) /* * Wait for the bus to become free. */ - while (timeout-- && readl(_ISR(i2c)) & (ISR_IBB | ISR_UB)) { + while (timeout-- && readl(_ISR(i2c)) & (ISR_IBB | ISR_UB)) udelay(1000); - show_state(i2c); - } if (timeout < 0) { show_state(i2c); |