From: sashiko-bot@kernel.org
To: "Abhinaba Rakshit" <abhinaba.rakshit@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2] arm64: dts: qcom: lemans: Enable the Inline Crypto Engine for SDHC
Date: Tue, 24 Nov 2026 09:22:37 +0000 [thread overview]
Message-ID: <sashiko-outbox-230826@kernel.org> (raw)
In-Reply-To: <20261124-enable-ice-sdhc-for-lemans-v2-1-0bfa9ed6b4bb@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] arm64: dts: qcom: lemans: sdhc missing cqhci reg and
supports-cqe for ICE
--
commit a0ea4743f5f8f7228cdfec72ff2a38085407ac93
Author: Abhinaba Rakshit <abhinaba.rakshit@oss.qualcomm.com>
arm64: dts: qcom: lemans: Enable the Inline Crypto Engine for SDHC
This commit adds the sdhc_ice node to lemans-embedded.dtsi and links it to
the SDHC controller via qcom,ice.
> diff --git a/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi b/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi
> index 0be39bb9de1e1..4cb3af416a3fc 100644
> --- a/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi
> +++ b/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi
> @@ -1651,6 +1651,8 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
> power-domains = <&rpmhpd SA8775P_CX>;
> resets = <&gcc GCC_SDCC1_BCR>;
>
> + qcom,ice = <&sdhc_ice>;
> +
[Severity: High]
Does &sdhc also need supports-cqe and the cqhci register range in
lemans.dtsi for sdhc_ice to be initialized?
sdhci_msm_probe() only calls sdhci_msm_cqe_add_host() ->
sdhci_msm_ice_init() when supports-cqe is present, and
sdhci_msm_cqe_add_host() calls cqhci_pltfm_init(), which requires a memory
resource named "cqhci" to map the CQHCI crypto registers:
drivers/mmc/host/sdhci-msm.c:sdhci_msm_probe() {
...
if (of_property_read_bool(node, "supports-cqe"))
ret = sdhci_msm_cqe_add_host(host, pdev);
else
ret = sdhci_add_host(host);
...
}
Because sdhc: mmc@87c4000 in arch/arm64/boot/dts/qcom/lemans.dtsi only
defines the hc register range (<0x0 0x087c4000 0x0 0x1000>) without the
cqhci range (<0x0 0x087c5000 0x0 0x1000>), reg-names = "hc", "cqhci", or
supports-cqe, sdhci_msm_ice_init() is never reached and inline encryption is
never enabled. Meanwhile, qcom_ice_probe() enables GCC_SDCC1_ICE_CORE_CLK and
GCC_SDCC1_AHB_CLK and sdhci_msm_ice_suspend() never gates them because
MMC_CAP2_CRYPTO is not set, and enabling supports-cqe on a board DT or
overlay will make cqhci_pltfm_init() fail with -EINVAL.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-enable-ice-sdhc-for-lemans-v2-1-0bfa9ed6b4bb@oss.qualcomm.com?part=1
prev parent reply other threads:[~2026-11-24 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 9:13 [PATCH v2] arm64: dts: qcom: lemans: Enable the Inline Crypto Engine for SDHC Abhinaba Rakshit
2026-11-24 9:22 ` 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=sashiko-outbox-230826@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=abhinaba.rakshit@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox