[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5235260c-8fd6-2b2a-58b9-703191fff526@linaro.org>
Date: Mon, 21 Aug 2023 14:10:39 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Tudor Ambarus <tudor.ambarus@...aro.org>,
Nicolas Ferre <nicolas.ferre@...rochip.com>,
Varshini.Rajendran@...rochip.com, herbert@...dor.apana.org.au,
davem@...emloft.net, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, conor+dt@...nel.org,
alexandre.belloni@...tlin.com, claudiu.beznea@...rochip.com,
linux-crypto@...r.kernel.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 11/50] dt-bindings: crypto: add sam9x7 in Atmel TDES
On 21/08/2023 11:54, Tudor Ambarus wrote:
>>>>> I am aware that there is no change in the crypto IP used. This patch is
>>
>> Actually, recent history showed us that it's not only the IP itself but
>> its integration into final product that could have an influence on the
>> behavior.
>>
>>>>> to add a SoC specific compatible as expected by writing-bindings
>>>>> guideline. Maybe a bit more explanation in the commit description might
>>>>> do the trick.
>>>>>
>>>>
>>>> So you add a compatible that will never be used just to comply with
>>>> the writing bindings guideline?
>>>
>>> How do you know that it is never going to be used? The guideline asks
>
> See
> https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux.git/tree/drivers/crypto/atmel-tdes.c?h=at91-dt#n1120
What's there? One compatible? How does it prove that it will not be
used? It only proves that currently it is not used... And anyway this is
just one implementation in one system. How can you possibly know all
other possible implementations (other bootloaders/firmwares/systems)?
One cannot. The guideline is there for specific reason.
>
>>> for this on purpose, so any future quirks or incompatibilities can be
>>> easily addressed.
>>
>> In this recent case, having a an adapted compatibility string is an
>> added value.
>>
>> And yes, I changed my mind and would like to be systematic now with
>> at91/microchip DT compatibility strings. Our long history and big legacy
>> in arm-soc is sometimes difficult to handle, but we're moving little by
>> little to comply with guidelines.
>>
>> My conclusion is that Varshini's addition is the way to go.
>
> Ok, fine by me. Then it would be good if one adds compatibles for the
> previous SoCs as well and add a comment in the drivers that inform
> readers that the atmel_*_get_cap() methods are used as backup where
> "atmel,at91sam9g46-" compatibles are used. You'll then have all the
> previous SoCs have their own dedicated compatibles which will have
> "atmel,at91sam9g46-" compatible as backup, and "sam9x7" will be the
> first that will not need the "atmel,at91sam9g46-" backup compatible.
> In the drivers you'll have 2 flavors of identifying the IP caps, the
> first one that backups to atmel_*_get_cap(), and a second one where
> of_device_id data will suffice.
>
> If the commit message described how the driver will handle the new
> compatible, Varshini would have spared us of all these emails exchanged.
The driver does not have to handle the new compatible, because it is
independent question. Although if you meant to explicitly say that
device is compatible in commit msg, although it is obvious from the
patch, then sure.
> Varshini, please update the commit message in the next iteration and
> describe how the driver will handle the new compatible.
Best regards,
Krzysztof
Powered by blists - more mailing lists