Skip to contentSkip to conversation

media: ipu6: Fix CSI-2 port count for IPU7.5 and IPU8

PATCH In review Yew, Chang Ching 2 participants 2 messages Dec 2 – Dec 4

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: ipu6: Fix CSI-2 port count for IPU7.5 and IPU8

Set the CSI-2 port count to three for IPU7.5 and IPU8 instead of four, so the driver registers only the available CSI-2 ports.

---
 drivers/media/pci/intel/ipu6/ipu6.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/media/pci/intel/ipu6/ipu6.c +4 -1
index 09e6d2a4e2a0..2e0b78fe6220 100644
@@ -399,10 +399,13 @@ static void ipu6_internal_pdata_init(struct ipu6_device *isp)
 		isys_ipdata.csi2.nports = 4;
 	}
 
+	if (IS_IPU7P5(isp))
+		isys_ipdata.csi2.nports = 3;
+
 	if (IS_IPU8(isp)) {
 		isys_ipdata.csi2.gpreg = IPU8_IS_IO_CSI2_GPREGS_BASE;
 		isys_ipdata.csi2.gpreg_stride = IPU8_IS_IO_CSI2_GPREGS_STRIDE;
-		isys_ipdata.csi2.nports = 4;
+		isys_ipdata.csi2.nports = 3;
 	}
 }
 
Signature · 1 line
2.54.0
maintainer
#1 lore raw

Hi Chang Ching,

Quoted 4 lines · Chang Ching

Set the CSI-2 port count to three for IPU7.5 and IPU8 instead of four, so the driver registers only the available CSI-2 ports.

I'll add Fixes: and Cc: stable here, too.

Can you either add quotes around your name or remove the comma in the future? At least b4 in Debian leaves just the tag there, removing everything after semicolon.

Quoted 23 lines
---
 drivers/media/pci/intel/ipu6/ipu6.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/media/pci/intel/ipu6/ipu6.c +4 -1
index 09e6d2a4e2a0..2e0b78fe6220 100644
@@ -399,10 +399,13 @@ static void ipu6_internal_pdata_init(struct ipu6_device *isp)
 		isys_ipdata.csi2.nports = 4;
 	}
 
+	if (IS_IPU7P5(isp))
+		isys_ipdata.csi2.nports = 3;
+
 	if (IS_IPU8(isp)) {
 		isys_ipdata.csi2.gpreg = IPU8_IS_IO_CSI2_GPREGS_BASE;
 		isys_ipdata.csi2.gpreg_stride = IPU8_IS_IO_CSI2_GPREGS_STRIDE;
-		isys_ipdata.csi2.nports = 4;
+		isys_ipdata.csi2.nports = 3;
 	}
 }
 
Signature · 3 lines
Regards,

Sakari Ailus