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

media: ivsc: ace: probe ace device after IPU bridge is initialized.

During probe ivsc ace device, acpi_dev_clear_dependencies() will be
called to clear the consumer and supplier relationship between camera
sensor device and ivsc device. But IPU bridge will setup the connection
swnodes for ivsc device and camera sensor device based on this consumer
and supplier relationship. This patch defers ivsc ace's probe to make
sure IPU bridge is initialized before this consumer and supplier
relationship between camera sensor device and IVSC device is cleared.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Wentong Wu and committed by
Hans Verkuil
6966f2f7 6b6f4179

+3
+3
drivers/media/pci/intel/ivsc/mei_ace.c
··· 406 406 if (!csi_dev) { 407 407 ret = -EPROBE_DEFER; 408 408 goto err; 409 + } else if (!dev_fwnode(csi_dev)) { 410 + ret = -EPROBE_DEFER; 411 + goto err_put; 409 412 } 410 413 411 414 /* setup link between mei_ace and mei_csi */