diff options
author | Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com> | 2018-05-24 12:40:17 +0200 |
---|---|---|
committer | Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com> | 2018-05-24 12:44:05 +0200 |
commit | e9d035900a04f68738f189909c20519a4d7b8a37 (patch) | |
tree | 1fa397d5345c1317e19d46fc511c29d45e0b4f3e | |
parent | ed7939c68aa330595fe96701be0689cd6bf9127c (diff) |
rockchip isp1: ratelimit "MIPI mis error" messages
On a flakey MIPI connection, these messages will flood and
kill the box.
Ratelimit in action:
[ 108.317808] rkisp1_mipi_isr: 296442 callbacks suppressed
-rw-r--r-- | drivers/media/platform/rockchip/isp1/rkisp1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/rockchip/isp1/rkisp1.c b/drivers/media/platform/rockchip/isp1/rkisp1.c index 0438d6ddba91..74b5905f0e86 100644 --- a/drivers/media/platform/rockchip/isp1/rkisp1.c +++ b/drivers/media/platform/rockchip/isp1/rkisp1.c @@ -1137,6 +1137,8 @@ void rkisp1_mipi_isr(unsigned int mis, struct rkisp1_device *dev) dev->isp_sdev.dphy_errctrl_disabled = false; } } else { + printk_ratelimited("%s:%d: MIPI mis error: 0x%08x\n", __func__, __LINE__, mis); + return; v4l2_warn(v4l2_dev, "MIPI mis error: 0x%08x\n", mis); } } |