[PATCH 53/74] media: qcom: camss: csid-gen3: Define the IPP reg update port in the header

From: bod

Date: Mon Oct 05 2026 - 13:48:43 EST


From: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>

The VFE names the port it reg-updates through camss_reg_update(). Move
CSID_780_CUSTOM_PORT_ID_IPP0 from csid-gen3.c to camss-csid-gen3.h so the
pixel path can name the IPP.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
---
drivers/media/platform/qcom/camss/camss-csid-gen3.c | 1 -
drivers/media/platform/qcom/camss/camss-csid-gen3.h | 3 +++
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/media/platform/qcom/camss/camss-csid-gen3.c b/drivers/media/platform/qcom/camss/camss-csid-gen3.c
index f8406c1fa45a5..83f19ed0b31aa 100644
--- a/drivers/media/platform/qcom/camss/camss-csid-gen3.c
+++ b/drivers/media/platform/qcom/camss/camss-csid-gen3.c
@@ -301,7 +301,6 @@ static int csid_configure_testgen_pattern(struct csid_device *csid, s32 val)
return 0;
}

-#define CSID_780_CUSTOM_PORT_ID_IPP0 0x100 /* TODO: bod don't like this too much */

static void csid_subdev_reg_update(struct csid_device *csid, int port_id, bool clear)
{
diff --git a/drivers/media/platform/qcom/camss/camss-csid-gen3.h b/drivers/media/platform/qcom/camss/camss-csid-gen3.h
index 6ee62da770c17..a82dfb16df5dd 100644
--- a/drivers/media/platform/qcom/camss/camss-csid-gen3.h
+++ b/drivers/media/platform/qcom/camss/camss-csid-gen3.h
@@ -22,4 +22,7 @@
#define PLAIN_FORMAT_PLAIN16 0x1 /* supports DPCM, UNCOMPRESSED_10/16_BIT */
#define PLAIN_FORMAT_PLAIN32 0x2 /* supports UNCOMPRESSED_20_BIT */

+/* port_id passed to camss_reg_update() for the IPP, outside the RDI range */
+#define CSID_780_CUSTOM_PORT_ID_IPP0 0x100
+
#endif /* __QC_MSM_CAMSS_CSID_GEN3_H__ */

--
2.55.0