From: sashiko-bot@kernel.org
To: "Vincent Jardin" <vjardin@free.fr>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/3] dt-bindings: crypto: fsl,sec-v4.0: add fsl,qi2-crypto-priority
Date: Mon, 28 Sep 2026 14:07:16 +0000 [thread overview]
Message-ID: <20260928140717.365B81F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260928-for-upstream-caam-qi2-priority-v1-2-e4a8e5f01dbc@free.fr>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: crypto: OS-specific software policy encoded in device tree
--
commit 16c27ce3ed51863cb681908accfda1674f3516d1
Author: Vincent Jardin <vjardin@free.fr>
dt-bindings: crypto: fsl,sec-v4.0: add fsl,qi2-crypto-priority
This commit adds a new property, fsl,qi2-crypto-priority, to the
fsl,sec-v4.0 device tree binding. The property is intended to allow boards
to specify the default in-kernel crypto API priority for the SEC device
relative to CPU implementations.
> diff --git a/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml b/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
> --- a/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
> +++ b/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
> @@ -86,6 +86,15 @@ properties:
> description: Defines the 'ERA' of the SEC device.
> $ref: /schemas/types.yaml#/definitions/uint32
>
> + fsl,qi2-crypto-priority:
> + description:
> + Crypto API priority of the algorithms the DPAA2 (QI2) front end
> + registers. Below the CPU's own implementations, the SEC is used only
> + when asked for by driver name. The dpaa2_caam.priority module
> + parameter overrides it.
[Severity: Medium]
Does this property encode an OS-specific software policy directly into the
device tree?
The device tree is intended to describe hardware topology rather than Linux
internal software routing policies like Crypto API priority or module
parameters. Because device tree properties become long-term ABI, exposing
Linux-specific module parameter equivalents via DT pollutes the OS-agnostic
design.
Would it be better to handle this fallback algorithm ordering exclusively
within the driver or module configuration?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260928-for-upstream-caam-qi2-priority-v1-0-e4a8e5f01dbc@free.fr?part=2
next prev parent reply other threads:[~2026-09-28 14:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-28 14:01 [PATCH 0/3] crypto: caam/qi2 - algorithm priority configurable Vincent Jardin via B4 Relay
2026-09-28 14:01 ` [PATCH 1/3] crypto: caam/qi2 - algorithm priority be a parameter Vincent Jardin via B4 Relay
2026-09-29 12:29 ` Herbert Xu
2026-09-29 12:57 ` Vincent Jardin
2026-09-28 14:01 ` [PATCH 2/3] dt-bindings: crypto: fsl,sec-v4.0: add fsl,qi2-crypto-priority Vincent Jardin via B4 Relay
2026-09-28 14:07 ` sashiko-bot [this message]
2026-09-29 9:08 ` Krzysztof Kozlowski
2026-09-29 12:58 ` Vincent Jardin
2026-09-28 14:01 ` [PATCH 3/3] crypto: caam/qi2 - priority from the DTS Vincent Jardin via B4 Relay
2026-09-28 22:41 ` [PATCH 0/3] crypto: caam/qi2 - algorithm priority configurable Eric Biggers
2026-09-29 16:45 ` Vincent Jardin
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=20260928140717.365B81F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vjardin@free.fr \
/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