MEI CSI fixes
Subsystems (2)
Sakari Ailus
maintainercover MEI CSI fixes
Hi folks,
These patches address issues in MEI CSI and IPU bridge integration.
I intend to submit them as fixes soon.
Sakari Ailus (2):
media: mei: csi: Put the IPU device reference
media: mei: csi: Warn less verbosely of a missing device fwnode
drivers/media/pci/intel/ivsc/mei_csi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.39.2
Sakari Ailus
maintainerPATCH 1/2 media: mei: csi: Put the IPU device reference
The mei csi's probe function obtains a reference to the IPU device but never puts that reference. Do that now.
Fixes 33116eb12c6b ("media: ivsc: csi: Use IPU bridge")
Signed-off-by Sakari Ailus <[email protected]>
--- drivers/media/pci/intel/ivsc/mei_csi.c | 1 + 1 file changed, 1 insertion(+)
drivers/media/pci/intel/ivsc/mei_csi.c +1 -0
@@ -677,6 +677,7 @@ static int mei_csi_probe(struct mei_cl_device *cldev,return -ENODEV ; ret =ipu_bridge_init (&ipu->dev, ipu_bridge_parse_ssdb); +put_device (&ipu->dev);if (ret <0 )return ret;if (WARN_ON (!dev_fwnode (dev)))
Signature · 1 line
2.39.2
Sakari Ailus
maintainerPATCH 2/2 media: mei: csi: Warn less verbosely of a missing device fwnode
In reply to Sakari AilusThe check for having device fwnode was meant to be a sanity check but this also happens if the ACPI DSDT has graph port nodes on sensor device(s) but not on the IVSC device. Use a more meaningful warning message to tell about this.
Fixes 33116eb12c6b ("media: ivsc: csi: Use IPU bridge")
Signed-off-by Sakari Ailus <[email protected]>
--- drivers/media/pci/intel/ivsc/mei_csi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/media/pci/intel/ivsc/mei_csi.c +3 -1
@@ -680,8 +680,10 @@ static int mei_csi_probe(struct mei_cl_device *cldev,put_device (&ipu->dev);if (ret <0 )return ret; -if (WARN_ON (!dev_fwnode (dev))) +if (!dev_fwnode (dev)) { +dev_err (dev,"mei-csi probed without device fwnode!\n" );return -ENXIO ; + } csi =devm_kzalloc (dev,sizeof (struct mei_csi ),GFP_KERNEL );if (!csi)
Signature · 1 line
2.39.2