kernel: backport v5.8 i2c-pxa updates
[openwrt/staging/stintel.git] / target / linux / generic / backport-5.4 / 818-v5.8-i2c-pxa-remove-some-unnecessary-debug.patch
1 From: Russell King <rmk+kernel@armlinux.org.uk>
2 Bcc: linux@mail.armlinux.org.uk
3 Subject: [PATCH 4/7] i2c: pxa: remove some unnecessary debug
4 MIME-Version: 1.0
5 Content-Disposition: inline
6 Content-Transfer-Encoding: 8bit
7 Content-Type: text/plain; charset="utf-8"
8
9 Remove unnecessary show_state() in the loop inside
10 i2c_pxa_pio_set_master(), which can be unnecessarily verbose.
11
12 Remove the i2c_pxa_scream_blue_murder() in i2c_pxa_pio_xfer(), which
13 will trigger if we are probing the I2C bus and a slave does not
14 respond; this is a normal event, and not something to report.
15
16 Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
17 ---
18 drivers/i2c/busses/i2c-pxa.c | 4 +---
19 1 file changed, 1 insertion(+), 3 deletions(-)
20
21 diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
22 index 0becab239476..db739cce93ac 100644
23 --- a/drivers/i2c/busses/i2c-pxa.c
24 +++ b/drivers/i2c/busses/i2c-pxa.c
25 @@ -1161,10 +1161,8 @@ static int i2c_pxa_pio_set_master(struct pxa_i2c *i2c)
26 /*
27 * Wait for the bus to become free.
28 */
29 - while (timeout-- && readl(_ISR(i2c)) & (ISR_IBB | ISR_UB)) {
30 + while (timeout-- && readl(_ISR(i2c)) & (ISR_IBB | ISR_UB))
31 udelay(1000);
32 - show_state(i2c);
33 - }
34
35 if (timeout < 0) {
36 show_state(i2c);
37 --
38 2.20.1
39