media: qcom: camss: Two routing fixes
Subsystems (4)
[email protected]
maintainerv2 cover media: qcom: camss: Two routing fixes
v2:
I reviewed-by and then wasn't very happy with adding a new field to CSID resources hw_id because this means we would have two identifiers despite already using csid->id to mean index and hwid.
Bite the bullet and make the conversion.
This is the way - bod.
- Adds a precursor patch which provides a .id in place of CSID.
- Converts from using csid->id as both hardware identifier and index Instead helper functions make clear and explicit do you mean csid_index() or csid_hwid().
Several callsites need to be updated to make this happen, but that's life. I'm a big fan of patch granularity however the differentiation between index and hardware id must be done simultaneously.
Follows the precedent of csiphy.id - bod, Wengmeng
- Straight drop of CSID2 retained. This is the right thing to do, CSID2 is useless dead silicon, already RB by several community members.
- Link to v1: https://patch.msgid.link/[email protected]
- Applies to camss-next from
https://gitlab.freedesktop.org/linux-media/users/bodonoghue.git
v1:
This series lands late-enough in the kernel cycle and applies against the camss-next branch staging to linux-media/next.
First up a patch drops the declaration of CSID2 from x1e/Hamoa since this CSID doesn't have a corresponding VFE it is entirely useless and violates our 1:1 mapping between VFE and CSID. Since CSID2 routes nowhere there's no reason to keep it around.
Second is a fix for a longstanding error in CAMSS which as stemmed from the original development of post ISPIF devices. These devices have a 1:1 mapping between CSID and VFE so the mapping we have given to user-space which declares each CSID as connecting to each VFE is just plain wrong on these devices and has always been.
So the second patch addresses that longstanding issue but, I've been holding off on fixing this for a while since I believed it might require extensive surgery, but in the end its quite simple to do.
Finally the third patch is a tidy-up patch which inverts our current logic of continuously adding new elements to the src_pad_code switch for new SoCs filtering those SoCs down to a default: statement. In fact is is the old SoCs which are the exceptional case so, just do the switch for the old and the default for the new.
To: Bryan O'Donoghue <[email protected]>
To: Vladimir Zapolskiy <[email protected]>
To: Loic Poulain <[email protected]>
To: Mauro Carvalho Chehab <[email protected]>
To: Hans Verkuil <[email protected]>
---
Bryan O'Donoghue (3):
media: qcom: camss: csid: Add and enumerate an id field for CSID entries
media: qcom: camss: csid: Stop using csid->id as both index and identifier
media: qcom: camss: x1e80100: Fix CSID2 routing to nowhere
.../media/platform/qcom/camss/camss-csid-1080.c | 2 +- drivers/media/platform/qcom/camss/camss-csid-340.c | 6 +- drivers/media/platform/qcom/camss/camss-csid-680.c | 4 +- .../media/platform/qcom/camss/camss-csid-gen3.c | 4 +- drivers/media/platform/qcom/camss/camss-csid.c | 34 +++++--- drivers/media/platform/qcom/camss/camss-csid.h | 18 ++++ drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +- drivers/media/platform/qcom/camss/camss.c | 98 +++++++++++++++++----- 8 files changed, 126 insertions(+), 42 deletions(-)
---
base-commit: 91ff71dce5e770e7965cb3b09c87f6d334c6c4c5
change-id: 20261122-camss-routing-fixes-b178bdb84f20
Best regards,
Signature · 2 lines
--- bod
[email protected]
maintainerPATCH v2 1/3 media: qcom: camss: csid: Add and enumerate an id field for CSID entries
From: Bryan O'Donoghue <[email protected]>
We have a need to differentiate between CSI index and CSI hardware ID. Rather than have csid->id and res->csid->hw_id with the two values meaning different things - provide a .id field that struct resoruces enumerates.
Do this for every SoC we currently have.
--- drivers/media/platform/qcom/camss/camss-csid.h | 1 + drivers/media/platform/qcom/camss/camss.c | 75 ++++++++++++++++++++++++++ 2 files changed, 76 insertions(+)
drivers/media/platform/qcom/camss/camss-csid.h +1 -0
@@ -153,6 +153,7 @@ struct csid_subdev_resources {const struct csid_hw_ops *hw_ops;const struct parent_dev_ops *parent_dev_ops;const struct csid_formats *formats; +u8 id; };struct csid_device {
drivers/media/platform/qcom/camss/camss.c +75 -0
525 lines not on this page · raw message
Signature · 1 line
2.56.1
[email protected]
maintainerPATCH v2 2/3 media: qcom: camss: csid: Stop using csid->id as both index and identifier
In reply to [email protected]From: Bryan O'Donoghue <[email protected]>
We have thus far used csid->id as both a hardware identifier and as an index to the array of CSI devices.
This is obviously not correct, but has thus far not been obviously damaging. Removing a piece of dark silicon CSID2 on x1e80100 we see that the reliance of csid->id as both hardware id and index is a brittle happenstance.
A previous patch enumerated a .id field in the CSID resources structure. The purpose of the id field is to denote hardware identifier.
Instead of maintaining both an hw_id and index field in the CSI data-structure pass the struct resource field to csid->id.
Use helper functions from a previous commit to differentiate between CSID hardware-id and CSID index where appropriate.
A level of granularity doing csid_index() and csid_hwid() in separate patches wouldn't work as we need to change the subdev_init() index and the meaning of that index atomically.
--- .../media/platform/qcom/camss/camss-csid-1080.c | 2 +- drivers/media/platform/qcom/camss/camss-csid-340.c | 6 ++-- drivers/media/platform/qcom/camss/camss-csid-680.c | 4 +-- .../media/platform/qcom/camss/camss-csid-gen3.c | 4 +-- drivers/media/platform/qcom/camss/camss-csid.c | 34 +++++++++++++++------- drivers/media/platform/qcom/camss/camss-csid.h | 17 +++++++++++ drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +- drivers/media/platform/qcom/camss/camss.c | 3 +- 8 files changed, 51 insertions(+), 21 deletions(-)
drivers/media/platform/qcom/camss/camss-csid-1080.c +1 -1
@@ -329,7 +329,7 @@ static irqreturn_t csid_isr(int irq, void *dev) }if (buf_done_val &BIT (BUF_DONE_IRQ_STATUS_RDI_OFFSET + i)) -camss_buf_done (csid->camss, csid->id, i); +camss_buf_done (csid->camss,csid_index (csid), i); } }
drivers/media/platform/qcom/camss/camss-csid-340.c +3 -3
@@ -138,7 +138,7 @@ static void __csid_configure_stream(struct csid_device *csid, u8 enable, u8 port val |=CSID_CFG0_ENABLE ;dev_dbg (csid->camss->dev,"CSID%u: Stream %s (dt:0x%x df=0x%x port=%u vc=%u)\n" , - csid->id, enable ?"enable" :"disable" , format->data_type, +csid_hwid (csid), enable ?"enable" :"disable" , format->data_type, format->decode_format, port, vc);writel_relaxed (val, csid->base +CSID_CFG0 (iface));
@@ -175,11 +175,11 @@ static int csid_reset(struct csid_device *csid) time =wait_for_completion_timeout (&csid->reset_complete,msecs_to_jiffies (CSID_RESET_TIMEOUT_MS ));if (!time) { -dev_err (csid->camss->dev,"CSID%u: reset timeout\n" , csid->id); +dev_err (csid->camss->dev,"CSID%u: reset timeout\n" ,csid_hwid (csid));return -EIO ; } -dev_dbg (csid->camss->dev,"CSID%u: reset done\n" , csid->id); +dev_dbg (csid->camss->dev,"CSID%u: reset done\n" ,csid_hwid (csid));return 0 ; }
drivers/media/platform/qcom/camss/camss-csid-680.c +2 -2
@@ -228,7 +228,7 @@ static void __csid_configure_top(struct csid_device *csid) val =CSID_TOP_IO_PATH_CFG0_OUTPUT_IFE_EN |CSID_TOP_IO_PATH_CFG0_INTERNAL_CSID ;writel (val, csid->camss->csid_wrapper_base + -CSID_TOP_IO_PATH_CFG0 (csid->id)); +CSID_TOP_IO_PATH_CFG0 (csid_hwid (csid))); }static void __csid_configure_rdi_stream (struct csid_device *csid,u8 enable,u8 port,u8 vc)
@@ -417,7 +417,7 @@ static irqreturn_t csid_isr(int irq, void *dev)csid_rup_complete (csid, i);if (buf_done_val &BIT (BUF_DONE_IRQ_STATUS_RDI_OFFSET + i)) -camss_buf_done (csid->camss, csid->id, i); +camss_buf_done (csid->camss,csid_index (csid), i); }/* Issue clear command */
drivers/media/platform/qcom/camss/camss-csid-gen3.c +2 -2
@@ -158,7 +158,7 @@ static void __csid_configure_wrapper(struct csid_device *csid)return ; val =OUTPUT_IFE_EN |INTERNAL_CSID ; -writel (val, csid->camss->csid_wrapper_base +CSID_IO_PATH_CFG0 (csid->id)); +writel (val, csid->camss->csid_wrapper_base +CSID_IO_PATH_CFG0 (csid_hwid (csid))); }static void __csid_configure_rdi_stream (struct csid_device *csid,u8 enable,u8 port,u8 vc)
@@ -316,7 +316,7 @@ static irqreturn_t csid_isr(int irq, void *dev)* CSID from VFE. Once CSID received bus done, need notify * VFE of this event. Trigger VFE to handle bus done process. */ -camss_buf_done (csid->camss, csid->id, i); +camss_buf_done (csid->camss,csid_index (csid), i); } }
drivers/media/platform/qcom/camss/camss-csid.c +23 -11
@@ -616,7 +616,7 @@ u32 csid_hw_version(struct csid_device *csid) hw_rev = (hw_version >>HW_VERSION_REVISION ) &0xFFF ; hw_step = (hw_version >>HW_VERSION_STEPPING ) &0xFFFF ;dev_dbg (csid->camss->dev,"CSID:%d HW Version = %u.%u.%u\n" , - csid->id, hw_gen, hw_rev, hw_step); +csid_hwid (csid), hw_gen, hw_rev, hw_step);return hw_version; }
@@ -690,7 +690,7 @@ static int csid_set_power(struct v4l2_subdev *sd, int on)* switching on the CSID. Do so unconditionally, as there is no * drawback in following the same powering order on older SoCs. */ - ret = csid->res->parent_dev_ops->get (camss, csid->id); + ret = csid->res->parent_dev_ops->get (camss,csid_index (csid));if (ret <0 )return ret;
@@ -726,7 +726,7 @@ static int csid_set_power(struct v4l2_subdev *sd, int on)regulator_bulk_disable (csid->num_supplies, csid->supplies);pm_runtime_put_sync (dev); - csid->res->parent_dev_ops->put (camss, csid->id); + csid->res->parent_dev_ops->put (camss,csid_index (csid)); }return 0 ;
@@ -739,7 +739,7 @@ static int csid_set_power(struct v4l2_subdev *sd, int on) err_pm_put:pm_runtime_put_sync (dev); err_parent_put: - csid->res->parent_dev_ops->put (camss, csid->id); + csid->res->parent_dev_ops->put (camss,csid_index (csid));return ret; }
@@ -1101,9 +1101,11 @@ int msm_csid_subdev_init(struct camss *camss, struct csid_device *csid,struct platform_device *pdev =to_platform_device (dev);int i, j;int ret; +u8 idx; csid->camss = camss; csid->id = id; + idx =csid_index (csid); csid->res = &res->csid; if (dev_WARN_ONCE(dev, !csid->res->parent_dev_ops,
@@ -1120,11 +1122,11 @@ int msm_csid_subdev_init(struct camss *camss, struct csid_device *csid,* between the VFE "top" and "bus" registers. this requires * VFE to be initialized before CSID */ -if (id >=2 )/* VFE/CSID lite */ - csid->base = csid->res->parent_dev_ops->get_base_address (camss, id) +if (idx >=2 )/* VFE/CSID lite */ + csid->base = csid->res->parent_dev_ops->get_base_address (camss, idx) +VFE_480_LITE_CSID_OFFSET ;else - csid->base = csid->res->parent_dev_ops->get_base_address (camss, id) + csid->base = csid->res->parent_dev_ops->get_base_address (camss, idx) +VFE_480_CSID_OFFSET ; }else { csid->base =devm_platform_ioremap_resource_byname (pdev, res->reg[0 ]);
@@ -1140,7 +1142,7 @@ int msm_csid_subdev_init(struct camss *camss, struct csid_device *csid, csid->irq = ret;snprintf (csid->irq_name,sizeof (csid->irq_name),"%s_%s%d" , -dev_name (dev),MSM_CSID_NAME , csid->id); +dev_name (dev),MSM_CSID_NAME ,csid_hwid (csid)); ret =devm_request_irq (dev, csid->irq, csid->res->hw_ops->isr,IRQF_TRIGGER_RISING |IRQF_NO_AUTOEN , csid->irq_name, csid);
@@ -1215,7 +1217,7 @@ void msm_csid_get_csid_id(struct media_entity *entity, u8 *id)struct v4l2_subdev *sd =media_entity_to_v4l2_subdev (entity);struct csid_device *csid =v4l2_get_subdevdata (sd); - *id = csid->id; + *id =csid_hwid (csid); }/*
@@ -1378,6 +1380,16 @@ void csid_sof_event(struct csid_device *csid, unsigned int id)v4l2_event_queue (csid->subdev.devnode, &event); } +unsigned int csid_index (struct csid_device *csid) +{ +return csid - csid->camss->csid; +} + +u8 csid_hwid (struct csid_device *csid) +{ +return csid->id; +} +static const struct v4l2_subdev_core_ops csid_core_ops = { .s_power = csid_set_power, .subscribe_event = csid_subscribe_event,
@@ -1431,7 +1443,7 @@ int msm_csid_register_entity(struct csid_device *csid, sd->flags |=V4L2_SUBDEV_FL_HAS_DEVNODE |V4L2_SUBDEV_FL_HAS_EVENTS ;snprintf (sd->name,ARRAY_SIZE (sd->name),"%s%d" , -MSM_CSID_NAME , csid->id); +MSM_CSID_NAME ,csid_hwid (csid));v4l2_set_subdevdata (sd, csid);if (csid->testgen.nmodes !=CSID_PAYLOAD_MODE_DISABLED ) {
@@ -1505,5 +1517,5 @@ void msm_csid_unregister_entity(struct csid_device *csid)inline bool csid_is_lite (struct csid_device *csid) { -return csid->camss->res->csid_res[csid->id].csid.is_lite; +return csid->res->is_lite; }
drivers/media/platform/qcom/camss/camss-csid.h +17 -0
@@ -280,4 +280,21 @@ void csid_sof_event(struct csid_device *csid, unsigned int id);*/ atomic_t *csid_get_sof_seq (struct media_pad *pad); +/* +* csid_index - Get the index of a CSI decoder +* @csid: CSID device +* +* Return the index of the CSI device. +*/ +unsigned int csid_index (struct csid_device *csid); + +/* +* csid_hwid - Return the hardware id of the CSI device +* +* @csid: CSID device +* +* @Return CSI hw id +*/ +u8 csid_hwid (struct csid_device *csid); +#endif /* QC_MSM_CAMSS_CSID_H */
drivers/media/platform/qcom/camss/camss-csiphy.c +1 -1
@@ -883,7 +883,7 @@ static int csiphy_link_setup(struct media_entity *entity, sd =media_entity_to_v4l2_subdev (remote->entity); csid =v4l2_get_subdevdata (sd); - csiphy->cfg.csid_id = csid->id; + csiphy->cfg.csid_id =csid_hwid (csid); }return 0 ;
drivers/media/platform/qcom/camss/camss.c +2 -1
@@ -5328,7 +5328,8 @@ static int camss_init_subdevices(struct camss *camss)for (i =0 ; i < camss->res->csid_num; i++) { ret =msm_csid_subdev_init (camss, &camss->csid[i], - &res->csid_res[i], i); + &res->csid_res[i], + res->csid_res[i].csid.id);if (ret <0 ) { dev_err(camss->dev, "Failed to init csid%d sub-device: %d\n",
Signature · 1 line
2.56.1
Re: [PATCH v2 2/3] media: qcom: camss: csid: Stop using csid->id as both index and identifier
Quoted 16 lines · On 27-11-2026 09:45, [email protected] wrote:
From: Bryan O'Donoghue <[email protected]>
We have thus far used
csid->idas both a hardware identifier and as an index to the array of CSI devices.This is obviously not correct, but has thus far not been obviously damaging. Removing a piece of dark silicon CSID2 on x1e80100 we see that the reliance of
csid->idas both hardware id and index is a brittle happenstance.A previous patch enumerated a .id field in the CSID resources structure. The purpose of the id field is to denote hardware identifier.
Instead of maintaining both an
hw_idand index field in the CSI data-structure pass the struct resource field tocsid->id.
Quoted 8 lines
Use helper functions from a previous commit to differentiate between CSID hardware-id and CSID index where appropriate.
A level of granularity doing
csid_index()andcsid_hwid()in separate patches wouldn't work as we need to change thesubdev_init()index and the meaning of that index atomically.Signed-off-by Bryan O'Donoghue <[email protected]>
Quoted 11 lines
--- .../media/platform/qcom/camss/camss-csid-1080.c | 2 +- drivers/media/platform/qcom/camss/camss-csid-340.c | 6 ++-- drivers/media/platform/qcom/camss/camss-csid-680.c | 4 +-- .../media/platform/qcom/camss/camss-csid-gen3.c | 4 +-- drivers/media/platform/qcom/camss/camss-csid.c | 34 +++++++++++++++------- drivers/media/platform/qcom/camss/camss-csid.h | 17 +++++++++++ drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +- drivers/media/platform/qcom/camss/camss.c | 3 +- 8 files changed, 51 insertions(+), 21 deletions(-)
...
Signature · 2 lines
Regards, Nihal Kumar Gupta
[email protected]
maintainerPATCH v2 3/3 media: qcom: camss: x1e80100: Fix CSID2 routing to nowhere
In reply to [email protected]From: Bryan O'Donoghue <[email protected]>
CSID2 doesn't actually have a corresponding VFE it can receive CSIPHY input and raise an interrupt but it can't drive any VFE write-master. This is basically useless and not worth coding around in the upstream driver. If we find a real use for this we can turn this back on. In the meantime drop the definition, it only confuses things.
--- drivers/media/platform/qcom/camss/camss.c | 22 ---------------------- 1 file changed, 22 deletions(-)
drivers/media/platform/qcom/camss/camss.c +0 -22
@@ -4686,28 +4686,6 @@ static const struct camss_subdev_resources csid_res_x1e80100[] = { .formats = &csid_formats_gen2 }, }, -/* CSID2 */ - { - .regulators = {}, - .clock = { "gcc_axi_hf", "gcc_axi_sf", "cpas_ahb", - "cpas_fast_ahb", "csid", "csid_csiphy_rx" }, - .clock_rate = { { 0 }, - { 0 }, - { 64000000, 80000000 }, - { 80000000, 100000000, 200000000, - 300000000, 400000000 }, - { 300000000, 400000000, 480000000 }, - { 300000000, 400000000, 480000000 }, }, - .reg = { "csid2" }, - .interrupt = { "csid2" }, - .csid = { - .id =2 , - .frame_sync_en = true, - .hw_ops = &csid_ops_680, - .parent_dev_ops = &vfe_parent_dev_ops, - .formats = &csid_formats_gen2 - }, - },/* CSID_LITE0 */ { .regulators = {},
Signature · 1 line
2.56.1
Quoted 83 lines · On 11/27/2026 12:15 PM, [email protected] wrote:
v2:
I reviewed-by and then wasn't very happy with adding a new field to CSID resources
hw_idbecause this means we would have two identifiers despite already usingcsid->idto mean index and hwid.Bite the bullet and make the conversion.
This is the way - bod.
- Adds a precursor patch which provides a .id in place of CSID.
- Converts from using
csid->idas both hardware identifier and index Instead helper functions make clear and explicit do you meancsid_index()orcsid_hwid().Several callsites need to be updated to make this happen, but that's life. I'm a big fan of patch granularity however the differentiation between index and hardware id must be done simultaneously.
Follows the precedent of csiphy.id - bod, Wengmeng
- Straight drop of CSID2 retained. This is the right thing to do, CSID2 is useless dead silicon, already RB by several community members.
- Link to v1: https://patch.msgid.link/[email protected]
- Applies to camss-next from
https://gitlab.freedesktop.org/linux-media/users/bodonoghue.gitv1:
This series lands late-enough in the kernel cycle and applies against the camss-next branch staging to linux-media/next.
First up a patch drops the declaration of CSID2 from x1e/Hamoa since this CSID doesn't have a corresponding VFE it is entirely useless and violates our 1:1 mapping between VFE and CSID. Since CSID2 routes nowhere there's no reason to keep it around.
Second is a fix for a longstanding error in CAMSS which as stemmed from the original development of post ISPIF devices. These devices have a 1:1 mapping between CSID and VFE so the mapping we have given to user-space which declares each CSID as connecting to each VFE is just plain wrong on these devices and has always been.
So the second patch addresses that longstanding issue but, I've been holding off on fixing this for a while since I believed it might require extensive surgery, but in the end its quite simple to do.
Finally the third patch is a tidy-up patch which inverts our current logic of continuously adding new elements to the
src_pad_codeswitch for new SoCs filtering those SoCs down to a default: statement. In fact is is the old SoCs which are the exceptional case so, just do the switch for the old and the default for the new.To: Bryan O'Donoghue <[email protected]>
To: Vladimir Zapolskiy <[email protected]>
To: Loic Poulain <[email protected]>
To: Mauro Carvalho Chehab <[email protected]>
To: Hans Verkuil <[email protected]>Signed-off-by Bryan O'Donoghue <[email protected]>---
Bryan O'Donoghue (3):
media: qcom: camss: csid: Add and enumerate an id field for CSID entries
media: qcom: camss: csid: Stop usingcsid->idas both index and identifier
media: qcom: camss: x1e80100: Fix CSID2 routing to nowhere.../media/platform/qcom/camss/camss-csid-1080.c | 2 +- drivers/media/platform/qcom/camss/camss-csid-340.c | 6 +- drivers/media/platform/qcom/camss/camss-csid-680.c | 4 +- .../media/platform/qcom/camss/camss-csid-gen3.c | 4 +- drivers/media/platform/qcom/camss/camss-csid.c | 34 +++++--- drivers/media/platform/qcom/camss/camss-csid.h | 18 ++++ drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +- drivers/media/platform/qcom/camss/camss.c | 98 +++++++++++++++++----- 8 files changed, 126 insertions(+), 42 deletions(-)
Quoted 8 lines
---
base-commit:91ff71dce5e770e7965cb3b09c87f6d334c6c4c5
change-id: 20261122-camss-routing-fixes-b178bdb84f20Best regards,
--
---
bod
Tested CSID0 and CSID_LITE0/1 RDI capture with the OG0VA1B sensor.
Thanks,
Wenmeng
Quoted 83 lines · On 11/27/2026 12:15 PM, [email protected] wrote:
v2:
I reviewed-by and then wasn't very happy with adding a new field to CSID resources
hw_idbecause this means we would have two identifiers despite already usingcsid->idto mean index and hwid.Bite the bullet and make the conversion.
This is the way - bod.
- Adds a precursor patch which provides a .id in place of CSID.
- Converts from using
csid->idas both hardware identifier and index Instead helper functions make clear and explicit do you meancsid_index()orcsid_hwid().Several callsites need to be updated to make this happen, but that's life. I'm a big fan of patch granularity however the differentiation between index and hardware id must be done simultaneously.
Follows the precedent of csiphy.id - bod, Wengmeng
- Straight drop of CSID2 retained. This is the right thing to do, CSID2 is useless dead silicon, already RB by several community members.
- Link to v1: https://patch.msgid.link/[email protected]
- Applies to camss-next from
https://gitlab.freedesktop.org/linux-media/users/bodonoghue.gitv1:
This series lands late-enough in the kernel cycle and applies against the camss-next branch staging to linux-media/next.
First up a patch drops the declaration of CSID2 from x1e/Hamoa since this CSID doesn't have a corresponding VFE it is entirely useless and violates our 1:1 mapping between VFE and CSID. Since CSID2 routes nowhere there's no reason to keep it around.
Second is a fix for a longstanding error in CAMSS which as stemmed from the original development of post ISPIF devices. These devices have a 1:1 mapping between CSID and VFE so the mapping we have given to user-space which declares each CSID as connecting to each VFE is just plain wrong on these devices and has always been.
So the second patch addresses that longstanding issue but, I've been holding off on fixing this for a while since I believed it might require extensive surgery, but in the end its quite simple to do.
Finally the third patch is a tidy-up patch which inverts our current logic of continuously adding new elements to the
src_pad_codeswitch for new SoCs filtering those SoCs down to a default: statement. In fact is is the old SoCs which are the exceptional case so, just do the switch for the old and the default for the new.To: Bryan O'Donoghue <[email protected]>
To: Vladimir Zapolskiy <[email protected]>
To: Loic Poulain <[email protected]>
To: Mauro Carvalho Chehab <[email protected]>
To: Hans Verkuil <[email protected]>Signed-off-by Bryan O'Donoghue <[email protected]>---
Bryan O'Donoghue (3):
media: qcom: camss: csid: Add and enumerate an id field for CSID entries
media: qcom: camss: csid: Stop usingcsid->idas both index and identifier
media: qcom: camss: x1e80100: Fix CSID2 routing to nowhere.../media/platform/qcom/camss/camss-csid-1080.c | 2 +- drivers/media/platform/qcom/camss/camss-csid-340.c | 6 +- drivers/media/platform/qcom/camss/camss-csid-680.c | 4 +- .../media/platform/qcom/camss/camss-csid-gen3.c | 4 +- drivers/media/platform/qcom/camss/camss-csid.c | 34 +++++--- drivers/media/platform/qcom/camss/camss-csid.h | 18 ++++ drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +- drivers/media/platform/qcom/camss/camss.c | 98 +++++++++++++++++----- 8 files changed, 126 insertions(+), 42 deletions(-)
Quoted 8 lines
---
base-commit:91ff71dce5e770e7965cb3b09c87f6d334c6c4c5
change-id: 20261122-camss-routing-fixes-b178bdb84f20Best regards,
--
---
bod
Thanks,
Wenmeng