[PATCH v12 2/4] soc: qcom: add core driver for the Qualcomm Crypto Engine

Bartosz Golaszewski brgl at kernel.org
Mon Nov 23 07:33:14 PST 2026


On Sat, Nov 21, 2026 at 12:32:34PM +0100, Krzysztof Kozlowski wrote:
> On 20/11/2026 20:34, Bartosz Golaszewski wrote:
> > Add the core driver for the Qualcomm crypto engine. Its task is to bind
> > to the qce DT node, set up runtime PM for interconnect down-scaling and
> > register the auxiliary device using the crypto offloader driver.
> 
> I dislike the "core driver" in the commit msg and subject. It suggests
> there is some core feature or core stuff, but that's not true. You are
> adding STUB driver only to handle Linux RPM things (which have impact on
> interconnects, of course).
> 
> The Kconfig has it nicely explained, but here I see it as confusing.
> 

It's not really a stub. It's more like an MFD core driver. Currently it
only spawns a single aux device but we'll introduce a second sub-driver
with Sumit soonish. I think naming it "core" actually makes sense.

> > 
> > Tested-by: Kuldeep Singh <kuldeep.singh at oss.qualcomm.com>
> > Tested-by: Pankaj Patil <pankaj.patil at oss.qualcomm.com>
> > Reviewed-by: Abel Vesa <abel.vesa at oss.qualcomm.com>
> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>
> > ---
> >  drivers/soc/qcom/Kconfig    | 11 ++++++
> >  drivers/soc/qcom/Makefile   |  1 +
> >  drivers/soc/qcom/qce-core.c | 92 +++++++++++++++++++++++++++++++++++++++++++++
> >  3 files changed, 104 insertions(+)
> > 
> > diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
> > index 535c8619197b3e889e536da072ab89d3bb729804..67d54d5211ff21bae77cd8408fa47af630060949 100644
> > --- a/drivers/soc/qcom/Kconfig
> > +++ b/drivers/soc/qcom/Kconfig
> > @@ -121,6 +121,17 @@ config QCOM_PMIC_GLINK
> >  	  Say yes here to support USB-C and battery status on modern Qualcomm
> >  	  platforms.
> >  
> 
> ...
> 
> > +
> > +MODULE_LICENSE("GPL");
> > +MODULE_DESCRIPTION("Qualcomm crypto engine core driver");
> > +MODULE_ALIAS("platform:" KBUILD_MODNAME);
> 
> You should not need MODULE_ALIAS() in normal cases. If you need it,
> usually it means your device ID table is wrong (e.g. misses either
> entries or MODULE_DEVICE_TABLE()). MODULE_ALIAS() is not a substitute
> for incomplete ID table.
>

Sure, thanks.

Bartosz



More information about the linux-arm-kernel mailing list