From: sashiko-bot@kernel.org
To: "Julian Braha" <julianbraha@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] firmware: qcom: scm: add missing IRQ_DOMAIN select to QCOM_SCM
Date: Thu, 02 Jul 2026 11:04:39 +0000 [thread overview]
Message-ID: <20260702110440.164E91F0155F@smtp.kernel.org> (raw)
In-Reply-To: <20260701110344.1999068-1-julianbraha@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] `qcom_scm_get_waitq_irq()` returns 0 on failure, but `qcom_scm_probe()` only checks `if (irq < 0)`. This causes the driver to skip the fallback `platform_get_irq_optional()` and incorrectly attempt to request IRQ 0, leading to a probe failure.
--
commit a810ba9e83e9707877b7e2fd4e5099068b665038
Author: Julian Braha <julianbraha@gmail.com>
firmware: qcom: scm: add missing IRQ_DOMAIN select to QCOM_SCM
This commit adds the missing select for IRQ_DOMAIN to the QCOM_SCM kconfig.
This ensures the driver will compile successfully since it relies on
irq_create_fwspec_mapping().
> diff --git a/drivers/firmware/qcom/Kconfig b/drivers/firmware/qcom/Kconfig
> index b477d54b495a6..9d137fa2aa232 100644
> --- a/drivers/firmware/qcom/Kconfig
> +++ b/drivers/firmware/qcom/Kconfig
> @@ -7,6 +7,7 @@
> menu "Qualcomm firmware drivers"
>
> config QCOM_SCM
> + select IRQ_DOMAIN
[Severity: High]
This is a pre-existing issue, but since this patch ensures the code
using irq_create_fwspec_mapping() is compiled, I noticed a potential
regression in how its return value is handled.
In drivers/firmware/qcom/qcom_scm.c:qcom_scm_get_waitq_irq():
return irq_create_fwspec_mapping(&fwspec);
If irq_create_fwspec_mapping() fails, it returns 0. However, when
checked in qcom_scm_probe():
irq = qcom_scm_get_waitq_irq(scm);
if (irq < 0)
irq = platform_get_irq_optional(pdev, 0);
Since 0 is not less than 0, the check misses the failure. Does this cause
the driver to skip the fallback path and incorrectly attempt to request
irq 0, resulting in a probe failure?
Should this check be updated to if (irq <= 0) to properly trigger the
fallback path?
> select QCOM_TZMEM
> tristate
>
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701110344.1999068-1-julianbraha@gmail.com?part=1
prev parent reply other threads:[~2026-07-02 11:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 11:03 [PATCH] firmware: qcom: scm: add missing IRQ_DOMAIN select to QCOM_SCM Julian Braha
2026-07-01 11:10 ` Konrad Dybcio
2026-07-02 11:04 ` sashiko-bot [this message]
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=20260702110440.164E91F0155F@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=julianbraha@gmail.com \
--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.