All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Atanas Filipov" <atanas.filipov@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
	media-ci@linuxtv.org
Subject: Re: [PATCH v2 05/10] media: qcom: cam-icc: add the SM8250 data
Date: Fri, 04 Dec 2026 08:16:50 +0000	[thread overview]
Message-ID: <sashiko-outbox-249379@kernel.org> (raw)
In-Reply-To: <20261204075339.4077387-6-atanas.filipov@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] media: qcom: cam-icc: clock refcount leak on unbind in
  qcom_cam_icc_remove()
--

commit 2779df1b820af93e9dbec7bf95d2121513670a95
Author: Atanas Filipov <atanas.filipov@oss.qualcomm.com>

media: qcom: cam-icc: add the SM8250 data

This commit adds the SM8250 camera NoC configuration (nodes, MMCX rail,
static QoS settings, and error interrupt sources) and wires it into
qcom_cam_icc_of_match[] so the qcom-cam-icc driver can bind on SM8250.

> diff --git a/drivers/media/platform/qcom/cam-icc/qcom-cam-icc-core.c b/drivers/media/platform/qcom/cam-icc/qcom-cam-icc-core.c
> index dbfccdb30da3e..05086221728f5 100644
> --- a/drivers/media/platform/qcom/cam-icc/qcom-cam-icc-core.c
> +++ b/drivers/media/platform/qcom/cam-icc/qcom-cam-icc-core.c
> @@ -534,6 +534,7 @@ static int qcom_cam_icc_opp_init(struct qcom_cam_icc *camnoc)
>  }
>  
>  static const struct of_device_id qcom_cam_icc_of_match[] = {
> +	{ .compatible = "qcom,sm8250-cam-icc", .data = &qcom_cam_icc_sm8250_data },
>  	{ }
>  };
>  MODULE_DEVICE_TABLE(of, qcom_cam_icc_of_match);

[Severity: Medium]
Can unbinding the driver leak prepare and enable refcounts on camnoc->clks?

qcom_cam_icc_runtime_resume() enables camnoc->clks, and only
qcom_cam_icc_runtime_suspend() disables them.  If the device is unbound while
runtime-active (for example, with power/control set to on),
qcom_cam_icc_remove() returns without suspending it.

devres then disables runtime PM without running the suspend callback, and
devm_clk_bulk_release_all() only puts the clock handles without disabling or
unpreparing them, leaving all six SM8250 clocks enabled until reboot.

Suspending the device in qcom_cam_icc_remove() when
!pm_runtime_status_suspended(&pdev->dev) and registering the devm IRQ after
devm_pm_runtime_enable() (so the IRQ is freed before runtime PM is disabled)
would avoid this.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204075339.4077387-1-atanas.filipov@oss.qualcomm.com?part=5

  reply	other threads:[~2026-12-04  8:16 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  7:53 [PATCH v2 00/10] Add the Qualcomm Titan camera NoC interconnect provider Atanas Filipov
2026-12-04  7:53 ` [PATCH v2 01/10] dt-bindings: interconnect: add the Qualcomm SM8250 Titan camera NoC Atanas Filipov
2026-12-04  8:01   ` sashiko-bot
2026-12-04  7:53 ` [PATCH v2 02/10] dt-bindings: interconnect: add the Qualcomm SC7280 " Atanas Filipov
2026-12-04  8:04   ` sashiko-bot
2026-12-04 11:10   ` Bryan O'Donoghue
2026-12-04  7:53 ` [PATCH v2 03/10] dt-bindings: interconnect: add the Qualcomm SA8775P " Atanas Filipov
2026-12-04  8:04   ` sashiko-bot
2026-12-04 11:14   ` Bryan O'Donoghue
2026-12-04  7:53 ` [PATCH v2 04/10] media: qcom: cam-icc: add the Titan camera NoC driver Atanas Filipov
2026-12-04  8:27   ` sashiko-bot
2026-12-04 11:33   ` Bryan O'Donoghue
2026-12-04 12:25   ` Georgi Djakov
2026-12-04  7:53 ` [PATCH v2 05/10] media: qcom: cam-icc: add the SM8250 data Atanas Filipov
2026-12-04  8:16   ` sashiko-bot [this message]
2026-12-04  7:53 ` [PATCH v2 06/10] media: qcom: cam-icc: add the SC7280 data Atanas Filipov
2026-12-04  7:53 ` [PATCH v2 07/10] media: qcom: cam-icc: add the SA8775P data Atanas Filipov
2026-12-04  8:19   ` sashiko-bot
2026-12-04  7:53 ` [PATCH v2 08/10] arm64: dts: qcom: sm8250: add the Titan camera NoC node Atanas Filipov
2026-12-04  8:25   ` sashiko-bot
2026-12-04  7:53 ` [PATCH v2 09/10] arm64: dts: qcom: sc7280: " Atanas Filipov
2026-12-04  8:30   ` sashiko-bot
2026-12-04  7:53 ` [PATCH v2 10/10] arm64: dts: qcom: sa8775p: " Atanas Filipov
2026-12-04  8:35   ` sashiko-bot

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=sashiko-outbox-249379@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=atanas.filipov@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=media-ci@linuxtv.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.