All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Alexey Romanov <avromanov@salutedevices.com>
Cc: neil.armstrong@linaro.org, clabbe@baylibre.com,
	herbert@gondor.apana.org.au, davem@davemloft.net,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	khilman@baylibre.com, jbrunet@baylibre.com,
	martin.blumenstingl@googlemail.com, vadim.fedorenko@linux.dev,
	linux-crypto@vger.kernel.org, linux-amlogic@lists.infradead.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, kernel@salutedevices.com
Subject: Re: [PATCH v8 17/23] dt-bindings: crypto: meson: correct clk and remove second interrupt line
Date: Mon, 10 Jun 2024 16:28:27 -0600	[thread overview]
Message-ID: <20240610222827.GA3166929-robh@kernel.org> (raw)
In-Reply-To: <20240607141242.2616580-18-avromanov@salutedevices.com>

On Fri, Jun 07, 2024 at 05:12:36PM +0300, Alexey Romanov wrote:
> GXL and newer SoC's uses the DMA engine (not blkmv) for crypto HW.
> Crypto HW doesn't actually use the blkmv clk. At RTL level, crypto
> engine is hard weired to a clk81 (CLKID_CLK81).

typo.

> 
> Also, GXL crypto IP isn't to seconnd interrput line. So we must

2 more typos. Spell checkers exist. Use them instead of me please.

I think you forgot the word 'connected' too.

> remove it from dt-bindings.


So did this binding not work at all? Are there any users? You need a bit 
more justification for an ABI breaking change.

> 
> Fixes: 7f7d115dfb51 ("dt-bindings: crypto: Add DT bindings
> documentation for amlogic-crypto")

This line should not be wrapped.
> 

Drop the blank line.

> Signed-off-by: Alexey Romanov <avromanov@salutedevices.com>
> ---
>  .../bindings/crypto/amlogic,gxl-crypto.yaml          | 12 +++++++-----
>  1 file changed, 7 insertions(+), 5 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml b/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> index 948e11ebe4ee..aff6f3234dc9 100644
> --- a/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> +++ b/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> @@ -20,13 +20,15 @@ properties:
>    interrupts:
>      items:
>        - description: Interrupt for flow 0
> -      - description: Interrupt for flow 1
>  
>    clocks:
>      maxItems: 1
>  
>    clock-names:
> -    const: blkmv
> +    const: clk81

Clocks are supposed be named local to the block like what function or 
part of the block they clock. This sounds like something global. 

With only 1 clock, I'd just drop the name altogether.

> +
> +  power-domains:
> +    maxItems: 1
>  
>  required:
>    - compatible
> @@ -46,7 +48,7 @@ examples:
>      crypto: crypto-engine@c883e000 {
>          compatible = "amlogic,gxl-crypto";
>          reg = <0xc883e000 0x36>;
> -        interrupts = <GIC_SPI 188 IRQ_TYPE_EDGE_RISING>, <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
> -        clocks = <&clkc CLKID_BLKMV>;
> -        clock-names = "blkmv";
> +        interrupts = <GIC_SPI 188 IRQ_TYPE_EDGE_RISING>;
> +        clocks = <&clkc CLKID_CLK81>;
> +        clock-names = "clk81";
>      };
> -- 
> 2.34.1
> 

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Alexey Romanov <avromanov@salutedevices.com>
Cc: neil.armstrong@linaro.org, clabbe@baylibre.com,
	herbert@gondor.apana.org.au, davem@davemloft.net,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	khilman@baylibre.com, jbrunet@baylibre.com,
	martin.blumenstingl@googlemail.com, vadim.fedorenko@linux.dev,
	linux-crypto@vger.kernel.org, linux-amlogic@lists.infradead.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, kernel@salutedevices.com
Subject: Re: [PATCH v8 17/23] dt-bindings: crypto: meson: correct clk and remove second interrupt line
Date: Mon, 10 Jun 2024 16:28:27 -0600	[thread overview]
Message-ID: <20240610222827.GA3166929-robh@kernel.org> (raw)
In-Reply-To: <20240607141242.2616580-18-avromanov@salutedevices.com>

On Fri, Jun 07, 2024 at 05:12:36PM +0300, Alexey Romanov wrote:
> GXL and newer SoC's uses the DMA engine (not blkmv) for crypto HW.
> Crypto HW doesn't actually use the blkmv clk. At RTL level, crypto
> engine is hard weired to a clk81 (CLKID_CLK81).

typo.

> 
> Also, GXL crypto IP isn't to seconnd interrput line. So we must

2 more typos. Spell checkers exist. Use them instead of me please.

I think you forgot the word 'connected' too.

> remove it from dt-bindings.


So did this binding not work at all? Are there any users? You need a bit 
more justification for an ABI breaking change.

> 
> Fixes: 7f7d115dfb51 ("dt-bindings: crypto: Add DT bindings
> documentation for amlogic-crypto")

This line should not be wrapped.
> 

Drop the blank line.

> Signed-off-by: Alexey Romanov <avromanov@salutedevices.com>
> ---
>  .../bindings/crypto/amlogic,gxl-crypto.yaml          | 12 +++++++-----
>  1 file changed, 7 insertions(+), 5 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml b/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> index 948e11ebe4ee..aff6f3234dc9 100644
> --- a/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> +++ b/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> @@ -20,13 +20,15 @@ properties:
>    interrupts:
>      items:
>        - description: Interrupt for flow 0
> -      - description: Interrupt for flow 1
>  
>    clocks:
>      maxItems: 1
>  
>    clock-names:
> -    const: blkmv
> +    const: clk81

Clocks are supposed be named local to the block like what function or 
part of the block they clock. This sounds like something global. 

With only 1 clock, I'd just drop the name altogether.

> +
> +  power-domains:
> +    maxItems: 1
>  
>  required:
>    - compatible
> @@ -46,7 +48,7 @@ examples:
>      crypto: crypto-engine@c883e000 {
>          compatible = "amlogic,gxl-crypto";
>          reg = <0xc883e000 0x36>;
> -        interrupts = <GIC_SPI 188 IRQ_TYPE_EDGE_RISING>, <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
> -        clocks = <&clkc CLKID_BLKMV>;
> -        clock-names = "blkmv";
> +        interrupts = <GIC_SPI 188 IRQ_TYPE_EDGE_RISING>;
> +        clocks = <&clkc CLKID_CLK81>;
> +        clock-names = "clk81";
>      };
> -- 
> 2.34.1
> 

WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Alexey Romanov <avromanov@salutedevices.com>
Cc: neil.armstrong@linaro.org, clabbe@baylibre.com,
	herbert@gondor.apana.org.au, davem@davemloft.net,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	khilman@baylibre.com, jbrunet@baylibre.com,
	martin.blumenstingl@googlemail.com, vadim.fedorenko@linux.dev,
	linux-crypto@vger.kernel.org, linux-amlogic@lists.infradead.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, kernel@salutedevices.com
Subject: Re: [PATCH v8 17/23] dt-bindings: crypto: meson: correct clk and remove second interrupt line
Date: Mon, 10 Jun 2024 16:28:27 -0600	[thread overview]
Message-ID: <20240610222827.GA3166929-robh@kernel.org> (raw)
In-Reply-To: <20240607141242.2616580-18-avromanov@salutedevices.com>

On Fri, Jun 07, 2024 at 05:12:36PM +0300, Alexey Romanov wrote:
> GXL and newer SoC's uses the DMA engine (not blkmv) for crypto HW.
> Crypto HW doesn't actually use the blkmv clk. At RTL level, crypto
> engine is hard weired to a clk81 (CLKID_CLK81).

typo.

> 
> Also, GXL crypto IP isn't to seconnd interrput line. So we must

2 more typos. Spell checkers exist. Use them instead of me please.

I think you forgot the word 'connected' too.

> remove it from dt-bindings.


So did this binding not work at all? Are there any users? You need a bit 
more justification for an ABI breaking change.

> 
> Fixes: 7f7d115dfb51 ("dt-bindings: crypto: Add DT bindings
> documentation for amlogic-crypto")

This line should not be wrapped.
> 

Drop the blank line.

> Signed-off-by: Alexey Romanov <avromanov@salutedevices.com>
> ---
>  .../bindings/crypto/amlogic,gxl-crypto.yaml          | 12 +++++++-----
>  1 file changed, 7 insertions(+), 5 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml b/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> index 948e11ebe4ee..aff6f3234dc9 100644
> --- a/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> +++ b/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> @@ -20,13 +20,15 @@ properties:
>    interrupts:
>      items:
>        - description: Interrupt for flow 0
> -      - description: Interrupt for flow 1
>  
>    clocks:
>      maxItems: 1
>  
>    clock-names:
> -    const: blkmv
> +    const: clk81

Clocks are supposed be named local to the block like what function or 
part of the block they clock. This sounds like something global. 

With only 1 clock, I'd just drop the name altogether.

> +
> +  power-domains:
> +    maxItems: 1
>  
>  required:
>    - compatible
> @@ -46,7 +48,7 @@ examples:
>      crypto: crypto-engine@c883e000 {
>          compatible = "amlogic,gxl-crypto";
>          reg = <0xc883e000 0x36>;
> -        interrupts = <GIC_SPI 188 IRQ_TYPE_EDGE_RISING>, <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
> -        clocks = <&clkc CLKID_BLKMV>;
> -        clock-names = "blkmv";
> +        interrupts = <GIC_SPI 188 IRQ_TYPE_EDGE_RISING>;
> +        clocks = <&clkc CLKID_CLK81>;
> +        clock-names = "clk81";
>      };
> -- 
> 2.34.1
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2024-06-10 22:28 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-07 14:12 [PATCH v8 00/23] Support more Amlogic SoC families in crypto driver Alexey Romanov
2024-06-07 14:12 ` Alexey Romanov
2024-06-07 14:12 ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 01/23] drivers: crypto: meson: don't hardcode IRQ count Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 02/23] drviers: crypto: meson: add platform data Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 03/23] drivers: crypto: meson: remove clock input Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 04/23] drivers: crypto: meson: add MMIO helpers Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 05/23] drivers: crypto: meson: move get_engine_number() Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 06/23] drivers: crypto: meson: drop status field from meson_flow Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 07/23] drivers: crypto: meson: move algs definition and cipher API to cipher.c Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 08/23] drivers: crypto: meson: cleanup defines Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 09/23] drivers: crypto: meson: process more than MAXDESCS descriptors Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 10/23] drivers: crypto: meson: avoid kzalloc in engine thread Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 11/23] drivers: crypto: meson: introduce hasher Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 12/23] drivers: crypto: meson: add support for AES-CTR Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 13/23] drivers: crypto: meson: use fallback for 192-bit keys Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 14/23] drivers: crypto: meson: add support for G12-series Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 15/23] drivers: crypto: meson: add support for AXG-series Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 16/23] drivers: crypto: meson: add support for A1-series Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 17/23] dt-bindings: crypto: meson: correct clk and remove second interrupt line Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-10 22:28   ` Rob Herring [this message]
2024-06-10 22:28     ` Rob Herring
2024-06-10 22:28     ` Rob Herring
2024-07-08 10:33     ` Alexey Romanov
2024-07-08 10:33       ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 18/23] arch: arm64: dts: meson: gxl: correct crypto node definition Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 19/23] dt-bindings: crypto: meson: support new SoC's Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-10 22:32   ` Rob Herring
2024-06-10 22:32     ` Rob Herring
2024-06-10 22:32     ` Rob Herring
2024-07-08 10:36     ` Alexey Romanov
2024-07-08 10:36       ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 20/23] arch: arm64: dts: meson: a1: add crypto node Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 21/23] arch: arm64: dts: meson: s4: " Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 22/23] arch: arm64: dts: meson: g12: " Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 23/23] arch: arm64: dts: meson: axg: " Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-06-07 14:12   ` Alexey Romanov
2024-07-08 10:37 ` [PATCH v8 00/23] Support more Amlogic SoC families in crypto driver Alexey Romanov
2024-07-08 10:37   ` Alexey Romanov
2024-07-08 10:41   ` Krzysztof Kozlowski
2024-07-08 10:41     ` Krzysztof Kozlowski

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=20240610222827.GA3166929-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=avromanov@salutedevices.com \
    --cc=clabbe@baylibre.com \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=jbrunet@baylibre.com \
    --cc=kernel@salutedevices.com \
    --cc=khilman@baylibre.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=vadim.fedorenko@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.