From: Robert Ijtsma via B4 Relay <devnull+robertijtsma.gmail.com@kernel.org>
To: Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>,
Loic Poulain <loic.poulain@oss.qualcomm.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
Robert Ijtsma <robertijtsma@gmail.com>
Subject: [PATCH v2 0/5] media: qcom: camss: fix VFE/CSID/video error handling and register bugs
Date: Tue, 24 Nov 2026 00:43:52 +0100 [thread overview]
Message-ID: <20261124-camss-fixes-v2-0-231a5523cd59@gmail.com> (raw)
This series fixes five bugs in the Qualcomm CAMSS driver found during
Titan 175 (SC8180X) camera bring-up and code review:
1. vfe-17x: Check VFE_IRQ_STATUS_1 (status1) rather than
VFE_IRQ_STATUS_0 (status0) against STATUS_1_RDI_SOF(i) in vfe_isr().
2. csid-gen2: Change `enable` to bool and use BIT(RDI_CFG0_ENABLE) to
explicitly set or clear bit 31 in __csid_configure_rdi_stream().
3. csid: Release the parent device reference via parent_dev_ops->put()
on all csid_set_power() power-on failure paths.
4. vfe: Destroy power_lock and stream_lock after unregistering VFE
subdevices and video nodes in msm_vfe_unregister_entities().
5. video: Factor subdevice stream start/stop into a shared helper using
v4l2_subdev_enable_streams()/v4l2_subdev_disable_streams(), unwinding
partial start failures and continuing teardown on stop errors.
Signed-off-by: Robert Ijtsma <robertijtsma@gmail.com>
---
Changes in v2:
- Patch 1/5: Drop Fixes tag since vfe_isr_sof() is currently a no-op on
vfe-17x (Loic); collect Reviewed-by tags from Loic and Bryan.
- Patch 2/5: Change `enable` parameter to `bool` (Loic), drop irrelevant
sign-bit remark from commit message, and add Bryan's Reviewed-by (Bryan).
- Patch 3/5: Collect Reviewed-by tags from Loic and Bryan.
- Patch 4/5: Collect Reviewed-by tags from Loic and Bryan.
- Patch 5/5: Rework into a shared camss_subdev_pipeline_set_stream() helper
using v4l2_subdev_enable_streams()/v4l2_subdev_disable_streams() and
iterating entity sink pads rather than media_entity_remote_source_pad_unique()
so entities with multiple active sink links (e.g. VFE with CSID + params)
are handled cleanly (Loic). Dropped Bryan's v1 Reviewed-by due to rework.
- Link to v1: https://patch.msgid.link/20261122-camss-fixes-v1-0-9df4deb87ea2@gmail.com
---
Robert Ijtsma (5):
media: qcom: camss: vfe-17x: check status1 for RDI SOF interrupts
media: qcom: camss: csid-gen2: fix RDI enable bit manipulation
media: qcom: camss: csid: release parent device on power-on failure
media: qcom: camss: vfe: destroy mutexes after unregistering entities
media: qcom: camss: video: factor pipeline stream start/stop into helper
.../media/platform/qcom/camss/camss-csid-gen2.c | 8 +-
drivers/media/platform/qcom/camss/camss-csid.c | 48 ++++-----
drivers/media/platform/qcom/camss/camss-vfe-17x.c | 2 +-
drivers/media/platform/qcom/camss/camss-vfe.c | 6 +-
drivers/media/platform/qcom/camss/camss-video.c | 116 +++++++++++++--------
5 files changed, 104 insertions(+), 76 deletions(-)
---
base-commit: 4843f6873f7c4835e62f2c73ba0fd538e57a2f22
change-id: 20261122-camss-fixes-4a671ce21042
Best regards,
--
Robert Ijtsma <robertijtsma@gmail.com>
next reply other threads:[~2026-11-23 23:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 23:43 Robert Ijtsma via B4 Relay [this message]
2026-11-23 23:43 ` [PATCH v2 1/5] media: qcom: camss: vfe-17x: check status1 for RDI SOF interrupts Robert Ijtsma via B4 Relay
2026-11-23 23:43 ` [PATCH v2 2/5] media: qcom: camss: csid-gen2: fix RDI enable bit manipulation Robert Ijtsma via B4 Relay
2026-11-23 23:43 ` [PATCH v2 3/5] media: qcom: camss: csid: release parent device on power-on failure Robert Ijtsma via B4 Relay
2026-11-23 23:43 ` [PATCH v2 4/5] media: qcom: camss: vfe: destroy mutexes after unregistering entities Robert Ijtsma via B4 Relay
2026-11-23 23:43 ` [PATCH v2 5/5] media: qcom: camss: video: factor pipeline stream start/stop into helper Robert Ijtsma via B4 Relay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124-camss-fixes-v2-0-231a5523cd59@gmail.com \
--to=devnull+robertijtsma.gmail.com@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=loic.poulain@oss.qualcomm.com \
--cc=mchehab@kernel.org \
--cc=robertijtsma@gmail.com \
--cc=vladimir.zapolskiy@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox