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

Subject: media: i2c: Defer probe if not endpoint found
Author:  Daniel Scally <[email protected]>
Date:    Tue Nov 23 01:00:05 2021 +0100

The ov8865 driver is one of those that can be connected to a CIO2
device by the cio2-bridge code. This means that the absence of an
endpoint for this device is not necessarily fatal, as one might be
built by the cio2-bridge when it probes. Return -EPROBE_DEFER if no
endpoint is found rather than a fatal error.

Signed-off-by: Daniel Scally <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/i2c/ov8865.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

---

diff --git a/drivers/media/i2c/ov8865.c b/drivers/media/i2c/ov8865.c
index a6372a0989e1..68fdb1ce1e94 100644
--- a/drivers/media/i2c/ov8865.c
+++ b/drivers/media/i2c/ov8865.c
@@ -2796,10 +2796,8 @@ static int ov8865_probe(struct i2c_client *client)
        /* Graph Endpoint */
 
        handle = fwnode_graph_get_next_endpoint(dev_fwnode(dev), NULL);
-       if (!handle) {
-               dev_err(dev, "unable to find endpoint node\n");
-               return -EINVAL;
-       }
+       if (!handle)
+               return -EPROBE_DEFER;
 
        sensor->endpoint.bus_type = V4L2_MBUS_CSI2_DPHY;
 

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to