From: sashiko-bot@kernel.org
To: "Harshal Dev" <harshal.dev@oss.qualcomm.com>,
"Eric Biggers" <ebiggers@kernel.org>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
"Abel Vesa" <abelvesa@kernel.org>,
"Kuldeep Singh" <kuldeep.singh@oss.qualcomm.com>,
"Neeraj Soni" <neeraj.soni@oss.qualcomm.com>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@oss.qualcomm.com>,
"Sumit Garg" <sumit.garg@oss.qualcomm.com>,
"Selvam Sathappan Periakaruppan"
<selvam.periakaruppan@oss.qualcomm.com>
Cc: "Basant Kumar" <basantk@qti.qualcomm.com>, linux-crypto@vger.kernel.org
Subject: Re: [PATCH v2 6/6] firmware: qcom: scm: Drop exported ICE wrapper functions
Date: Wed, 11 Nov 2026 15:54:50 +0000 [thread overview]
Message-ID: <sashiko-outbox-209233@kernel.org> (raw)
In-Reply-To: <20261111-ice-migrate-tee-svc-v2-6-29d19f6c92ab@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] firmware: qcom: scm: missing @dev in ICE helper kernel-doc
comments
--
commit 7bfa90e5e53a6765c06df911105e2ee2369b3560
Author: Harshal Dev <harshal.dev@oss.qualcomm.com>
firmware: qcom: scm: Drop exported ICE wrapper functions
This commit removes the exported ICE wrapper functions from the SCM driver
and renames the internal static helpers now that the ICE driver uses the TZ
agnostic ICE APIs.
> diff --git a/drivers/firmware/qcom/qcom_scm.c b/drivers/firmware/qcom/qcom_scm.c
> index 6b66bcedc84fd..277334f71178d 100644
> --- a/drivers/firmware/qcom/qcom_scm.c
> +++ b/drivers/firmware/qcom/qcom_scm.c
> @@ -1399,25 +1399,20 @@ int qcom_scm_ocmem_unlock(enum qcom_scm_ocmem_client id, u32 offset, u32 size)
> }
> EXPORT_SYMBOL_GPL(qcom_scm_ocmem_unlock);
>
> -bool __qcom_scm_ice_available(struct device *dev)
> -{
> - return __qcom_scm_is_call_available(dev, QCOM_SCM_SVC_ES,
> - QCOM_SCM_ES_INVALIDATE_ICE_KEY) &&
> - __qcom_scm_is_call_available(dev, QCOM_SCM_SVC_ES,
> - QCOM_SCM_ES_CONFIG_SET_ICE_KEY);
> -}
> -
> /**
> * qcom_scm_ice_available() - Is the ICE key programming interface available?
> + * @dev: The SCM device
> *
> * Return: true iff the SCM calls wrapped by qcom_scm_ice_invalidate_key() and
> * qcom_scm_ice_set_key() are available.
> */
> -bool qcom_scm_ice_available(void)
> +static bool qcom_scm_ice_available(struct device *dev)
> {
> - return __qcom_scm_ice_available(__scm->dev);
> + return __qcom_scm_is_call_available(dev, QCOM_SCM_SVC_ES,
> + QCOM_SCM_ES_INVALIDATE_ICE_KEY) &&
> + __qcom_scm_is_call_available(dev, QCOM_SCM_SVC_ES,
> + QCOM_SCM_ES_CONFIG_SET_ICE_KEY);
> }
> -EXPORT_SYMBOL_GPL(qcom_scm_ice_available);
>
> /**
> * qcom_scm_ice_invalidate_key() - Invalidate an inline encryption key
> @@ -1431,7 +1426,7 @@ EXPORT_SYMBOL_GPL(qcom_scm_ice_available);
> *
> * Return: 0 on success; -errno on failure.
> */
> -static int __qcom_scm_ice_invalidate_key(struct device *dev, u32 index)
> +static int qcom_scm_ice_invalidate_key(struct device *dev, u32 index)
[Severity: Low]
Should the kernel-doc comments for qcom_scm_ice_invalidate_key(),
qcom_scm_ice_set_key(), qcom_scm_derive_sw_secret(),
qcom_scm_generate_ice_key(), qcom_scm_prepare_ice_key(), and
qcom_scm_import_ice_key() also document @dev like qcom_scm_ice_available()
above? Renaming these static helpers to match the preceding kernel-doc
blocks without documenting @dev causes W=1 kernel-doc warnings.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261111-ice-migrate-tee-svc-v2-0-29d19f6c92ab@oss.qualcomm.com?part=6
next prev parent reply other threads:[~2026-11-11 15:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 14:17 [PATCH v2 0/6] Add support for a TEE agnostic Inline Crypto Engine service Harshal Dev
2026-11-11 14:17 ` [PATCH v2 1/6] soc: qcom: ice: Add TZ agnostic re-direction functions Harshal Dev
2026-11-11 14:37 ` sashiko-bot
2026-11-11 14:17 ` [PATCH v2 2/6] firmware: qcom_scm: Transition to ICE TZ agnostic operations Harshal Dev
2026-11-11 14:55 ` sashiko-bot
2026-11-11 14:17 ` [PATCH v2 3/6] firmware: qcom: Add a TEE bus based ICE back-end Harshal Dev
2026-11-11 15:07 ` sashiko-bot
2026-11-11 14:17 ` [PATCH v2 4/6] tee: optee: Register TEE devices on the platform bus Harshal Dev
2026-11-11 14:57 ` Harshal Dev
2026-11-11 15:30 ` sashiko-bot
2026-11-11 14:17 ` [PATCH v2 5/6] soc: qcom: ice: Migrate to the TZ agnostic ICE APIs Harshal Dev
2026-11-11 15:47 ` sashiko-bot
2026-11-11 14:17 ` [PATCH v2 6/6] firmware: qcom: scm: Drop exported ICE wrapper functions Harshal Dev
2026-11-11 15:54 ` sashiko-bot [this message]
2026-11-11 14:21 ` [PATCH v2 0/6] Add support for a TEE agnostic Inline Crypto Engine service Harshal Dev
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-209233@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=basantk@qti.qualcomm.com \
--cc=ebiggers@kernel.org \
--cc=harshal.dev@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=kuldeep.singh@oss.qualcomm.com \
--cc=linux-crypto@vger.kernel.org \
--cc=manivannan.sadhasivam@oss.qualcomm.com \
--cc=neeraj.soni@oss.qualcomm.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=selvam.periakaruppan@oss.qualcomm.com \
--cc=sumit.garg@oss.qualcomm.com \
/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