mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
i2c: rk3x: Use the dev_warn_ratelimited to print
This patch to limit the print: [ 653.751436][ T1] rk3x-i2c fec80000.i2c: unexpected irq in STOP: 0x80 [ 653.752035][ T1] rk3x-i2c fec80000.i2c: unexpected irq in STOP: 0x80 [ 653.752634][ T1] rk3x-i2c fec80000.i2c: unexpected irq in STOP: 0x80 [ 653.753232][ T1] rk3x-i2c fec80000.i2c: unexpected irq in STOP: 0x80 [ 653.753832][ T1] rk3x-i2c fec80000.i2c: unexpected irq in STOP: 0x80 [ 653.754431][ T1] rk3x-i2c fec80000.i2c: unexpected irq in STOP: 0x80 Signed-off-by: David Wu <david.wu@rock-chips.com> Change-Id: I9e67edf1c780ff1cd05070113d6b58df6144d0fd
This commit is contained in:
parent
d7a8d7bb1a
commit
fba09b4ecb
|
|
@ -476,7 +476,7 @@ static void rk3x_i2c_handle_write(struct rk3x_i2c *i2c, unsigned int ipd)
|
|||
{
|
||||
if (!(ipd & REG_INT_MBTF)) {
|
||||
rk3x_i2c_stop(i2c, -EIO);
|
||||
dev_err(i2c->dev, "unexpected irq in WRITE: 0x%x\n", ipd);
|
||||
dev_warn_ratelimited(i2c->dev, "unexpected irq in WRITE: 0x%x\n", ipd);
|
||||
rk3x_i2c_clean_ipd(i2c);
|
||||
return;
|
||||
}
|
||||
|
|
@ -539,7 +539,7 @@ static void rk3x_i2c_handle_stop(struct rk3x_i2c *i2c, unsigned int ipd)
|
|||
|
||||
if (!(ipd & REG_INT_STOP)) {
|
||||
rk3x_i2c_stop(i2c, -EIO);
|
||||
dev_err(i2c->dev, "unexpected irq in STOP: 0x%x\n", ipd);
|
||||
dev_warn_ratelimited(i2c->dev, "unexpected irq in STOP: 0x%x\n", ipd);
|
||||
rk3x_i2c_clean_ipd(i2c);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user