This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: i2c: imx335: Improve configuration error reporting
Author:  Kieran Bingham <kieran.bing...@ideasonboard.com>
Date:    Mon Dec 11 18:29:45 2023 +0530

The existing imx335_parse_hw_config function has two paths
that can be taken without reporting to the user the reason
for failing to accept the hardware configuration.

Extend the error reporting paths to identify failures when
probing the device.

Reviewed-by: Umang Jain <umang.j...@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bing...@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 drivers/media/i2c/imx335.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

---

diff --git a/drivers/media/i2c/imx335.c b/drivers/media/i2c/imx335.c
index af5262aa0a50..26aaa5048a8b 100644
--- a/drivers/media/i2c/imx335.c
+++ b/drivers/media/i2c/imx335.c
@@ -795,8 +795,10 @@ static int imx335_parse_hw_config(struct imx335 *imx335)
        }
 
        ep = fwnode_graph_get_next_endpoint(fwnode, NULL);
-       if (!ep)
+       if (!ep) {
+               dev_err(imx335->dev, "Failed to get next endpoint\n");
                return -ENXIO;
+       }
 
        ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg);
        fwnode_handle_put(ep);
@@ -821,6 +823,8 @@ static int imx335_parse_hw_config(struct imx335 *imx335)
                if (bus_cfg.link_frequencies[i] == IMX335_LINK_FREQ)
                        goto done_endpoint_free;
 
+       dev_err(imx335->dev, "no compatible link frequencies found\n");
+
        ret = -EINVAL;
 
 done_endpoint_free:

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to