* [PATCH 0/2] media: ov5675/ov8856: suppress probe deferral errors
@ 2025-04-25 12:52 Johan Hovold
2025-04-25 12:52 ` [PATCH 1/2] media: ov5675: " Johan Hovold
2025-04-25 12:52 ` [PATCH 2/2] media: ov8856: " Johan Hovold
0 siblings, 2 replies; 3+ messages in thread
From: Johan Hovold @ 2025-04-25 12:52 UTC (permalink / raw)
To: Sakari Ailus
Cc: Mauro Carvalho Chehab, linux-media, linux-kernel, Johan Hovold
Probe of the camera sensor on the Lenovo ThinkPad X13s is sometimes
deferred when its supplies are not yet ready and this is incorrectly
logged as an error:
ov5675 24-0010: failed to get HW configuration: -517
This series suppress the bogus error in the ov5675 and ov8856 drivers.
Johan
Johan Hovold (2):
media: ov5675: suppress probe deferral errors
media: ov8856: suppress probe deferral errors
drivers/media/i2c/ov5675.c | 5 +----
drivers/media/i2c/ov8856.c | 9 +++------
2 files changed, 4 insertions(+), 10 deletions(-)
--
2.49.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] media: ov5675: suppress probe deferral errors
2025-04-25 12:52 [PATCH 0/2] media: ov5675/ov8856: suppress probe deferral errors Johan Hovold
@ 2025-04-25 12:52 ` Johan Hovold
2025-04-25 12:52 ` [PATCH 2/2] media: ov8856: " Johan Hovold
1 sibling, 0 replies; 3+ messages in thread
From: Johan Hovold @ 2025-04-25 12:52 UTC (permalink / raw)
To: Sakari Ailus
Cc: Mauro Carvalho Chehab, linux-media, linux-kernel, Johan Hovold
Probe deferral should not be logged as an error:
ov5675 24-0010: failed to get HW configuration: -517
Drop the (mostly) redundant dev_err() from sensor probe() to suppress
it.
Note that errors during clock and regulator lookup are already correctly
logged using dev_err_probe().
Fixes: 49d9ad719e89 ("media: ov5675: add device-tree support and support runtime PM")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/media/i2c/ov5675.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/media/i2c/ov5675.c b/drivers/media/i2c/ov5675.c
index c1081deffc2f..e7aec281e9a4 100644
--- a/drivers/media/i2c/ov5675.c
+++ b/drivers/media/i2c/ov5675.c
@@ -1295,11 +1295,8 @@ static int ov5675_probe(struct i2c_client *client)
return -ENOMEM;
ret = ov5675_get_hwcfg(ov5675, &client->dev);
- if (ret) {
- dev_err(&client->dev, "failed to get HW configuration: %d",
- ret);
+ if (ret)
return ret;
- }
v4l2_i2c_subdev_init(&ov5675->sd, client, &ov5675_subdev_ops);
--
2.49.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] media: ov8856: suppress probe deferral errors
2025-04-25 12:52 [PATCH 0/2] media: ov5675/ov8856: suppress probe deferral errors Johan Hovold
2025-04-25 12:52 ` [PATCH 1/2] media: ov5675: " Johan Hovold
@ 2025-04-25 12:52 ` Johan Hovold
1 sibling, 0 replies; 3+ messages in thread
From: Johan Hovold @ 2025-04-25 12:52 UTC (permalink / raw)
To: Sakari Ailus
Cc: Mauro Carvalho Chehab, linux-media, linux-kernel, Johan Hovold
Probe deferral should not be logged as an error:
ov8856 24-0010: failed to get HW configuration: -517
Use dev_err_probe() for the clock lookup and drop the (mostly) redundant
dev_err() from sensor probe() to suppress it.
Note that errors during regulator lookup is already correctly logged
using dev_err_probe().
Fixes: 0c2c7a1e0d69 ("media: ov8856: Add devicetree support")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/media/i2c/ov8856.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/media/i2c/ov8856.c b/drivers/media/i2c/ov8856.c
index e6704d018248..4b6874d2a104 100644
--- a/drivers/media/i2c/ov8856.c
+++ b/drivers/media/i2c/ov8856.c
@@ -2276,8 +2276,8 @@ static int ov8856_get_hwcfg(struct ov8856 *ov8856, struct device *dev)
if (!is_acpi_node(fwnode)) {
ov8856->xvclk = devm_clk_get(dev, "xvclk");
if (IS_ERR(ov8856->xvclk)) {
- dev_err(dev, "could not get xvclk clock (%pe)\n",
- ov8856->xvclk);
+ dev_err_probe(dev, PTR_ERR(ov8856->xvclk),
+ "could not get xvclk clock\n");
return PTR_ERR(ov8856->xvclk);
}
@@ -2382,11 +2382,8 @@ static int ov8856_probe(struct i2c_client *client)
return -ENOMEM;
ret = ov8856_get_hwcfg(ov8856, &client->dev);
- if (ret) {
- dev_err(&client->dev, "failed to get HW configuration: %d",
- ret);
+ if (ret)
return ret;
- }
v4l2_i2c_subdev_init(&ov8856->sd, client, &ov8856_subdev_ops);
--
2.49.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-25 12:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-25 12:52 [PATCH 0/2] media: ov5675/ov8856: suppress probe deferral errors Johan Hovold
2025-04-25 12:52 ` [PATCH 1/2] media: ov5675: " Johan Hovold
2025-04-25 12:52 ` [PATCH 2/2] media: ov8856: " Johan Hovold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®