Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: ov5693: Improve error logging when fwnode is not found

The ov5693 driver waits for the endpoint fwnode to show up in case this
fwnode is created by a bridge-driver.

It does this by returning -EPROBE_DEFER, but it does not use
dev_err_probe() so no reason for deferring gets registered.

After 30 seconds the kernel logs a warning that the probe is still
deferred, which looks like this:

[ 33.951709] i2c i2c-INT33BE:00: deferred probe pending: (reason unknown)

Use dev_err_probe() when returning -EPROBE_DEFER to register the probe
deferral reason changing the error to:

deferred probe pending: waiting for fwnode graph endpoint

Also update the comment to not refer to the no longer existing cio2-bridge
code.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>

authored by

Hans de Goede and committed by
Hans Verkuil
76f0c824 23715176

+6 -1
+6 -1
drivers/media/i2c/ov5693.c
··· 1222 1222 unsigned int i; 1223 1223 int ret; 1224 1224 1225 + /* 1226 + * Sometimes the fwnode graph is initialized by the bridge driver 1227 + * Bridge drivers doing this may also add GPIO mappings, wait for this. 1228 + */ 1225 1229 endpoint = fwnode_graph_get_next_endpoint(fwnode, NULL); 1226 1230 if (!endpoint) 1227 - return -EPROBE_DEFER; /* Could be provided by cio2-bridge */ 1231 + return dev_err_probe(ov5693->dev, -EPROBE_DEFER, 1232 + "waiting for fwnode graph endpoint\n"); 1228 1233 1229 1234 ret = v4l2_fwnode_endpoint_alloc_parse(endpoint, &bus_cfg); 1230 1235 fwnode_handle_put(endpoint);