[PATCH 2/7] media: sun6i: Reduce the error level
Maxime Ripard
maxime.ripard at bootlin.com
Mon Mar 5 01:35:29 PST 2018
The is_format_support function can be called in the standard format
negociation path with a sensor, where it's expected to have not exactly the
same set of formats available.
Reduce the error logging level when we find a format not supported to not
have a lot of spurious messages.
Signed-off-by: Maxime Ripard <maxime.ripard at bootlin.com>
---
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
index 2ec33fb04632..b0ac8a188f92 100644
--- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
+++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
@@ -111,15 +111,14 @@ bool sun6i_csi_is_format_support(struct sun6i_csi *csi,
case MEDIA_BUS_FMT_YVYU8_1X16:
return true;
default:
- dev_warn(sdev->dev,
- "Unsupported mbus code: 0x%x\n",
- mbus_code);
+ dev_dbg(sdev->dev, "Unsupported mbus code: 0x%x\n",
+ mbus_code);
break;
}
break;
default:
- dev_warn(sdev->dev, "Unsupported pixformat: 0x%x\n",
- pixformat);
+ dev_dbg(sdev->dev, "Unsupported pixformat: 0x%x\n",
+ pixformat);
break;
}
return false;
@@ -175,13 +174,13 @@ bool sun6i_csi_is_format_support(struct sun6i_csi *csi,
case MEDIA_BUS_FMT_YVYU8_2X8:
return true;
default:
- dev_warn(sdev->dev, "Unsupported mbus code: 0x%x\n",
- mbus_code);
+ dev_dbg(sdev->dev, "Unsupported mbus code: 0x%x\n",
+ mbus_code);
break;
}
break;
default:
- dev_warn(sdev->dev, "Unsupported pixformat: 0x%x\n", pixformat);
+ dev_dbg(sdev->dev, "Unsupported pixformat: 0x%x\n", pixformat);
break;
}
--
2.14.3
More information about the linux-arm-kernel
mailing list