@@ -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;
}
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@bootlin.com> --- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)