[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3fdc7db4-0df3-f922-3dbf-9f9250c271aa@arinc9.com>
Date: Sat, 25 Mar 2023 02:15:16 +0300
From: Arınç ÜNAL <arinc.unal@...nc9.com>
To: Rob Herring <robh@...nel.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Sergio Paracuellos <sergio.paracuellos@...il.com>,
linux-clk@...r.kernel.org, linux-mips@...r.kernel.org,
tsbogend@...ha.franken.de, john@...ozen.org,
linux-kernel@...r.kernel.org, p.zabel@...gutronix.de,
mturquette@...libre.com, sboyd@...nel.org,
krzysztof.kozlowski+dt@...aro.org, matthias.bgg@...il.com,
devicetree@...r.kernel.org
Subject: Re: [PATCH 01/10] dt: bindings: clock: add mtmips SoCs clock device
tree binding documentation
On 25.03.2023 01:10, Rob Herring wrote:
> On Tue, Mar 21, 2023 at 12:02:47PM +0300, Arınç ÜNAL wrote:
>> On 21.03.2023 12:01, Krzysztof Kozlowski wrote:
>>> On 21/03/2023 09:53, Arınç ÜNAL wrote:
>>>>>
>>>>> I do not see how choosing one variant for compatibles having two
>>>>> variants of prefixes, complicates things. Following this argument
>>>>> choosing "ralink" also complicates!
>>>>
>>>> The idea is to make every compatible string of MTMIPS to have the ralink
>>>> prefix so it's not mediatek on some schemas and ralink on others. Simpler.
>>>
>>> Which is an ABI break, so you cannot do it.
>>
>> No, both strings stay on the driver, it's the schemas that will only keep
>> ralink.
>
> But you are adding one of the strings to the driver, right? Still an ABI
> break, but only if you have an old kernel and new DT. That can be
> somewhat mitigated with a stable backport of the new id, but still an
> ABI break.
Ah, that makes sense. Yes, I'd be adding new strings to the driver.
> Whatever is in the driver should be in the schema too. 'make
> dt_compatible_check' will check this. And some day, I'd like that list
> to get to 0.
I'll keep this in mind for the schemas I maintain. I will add
ralink,rt2880-pinmux as deprecated on the pinctrl schemas so it would
disappear from 'make dt_compatible check'. I believe I'm supposed to do
it like this?
properties:
compatible:
enum:
- ralink,rt2880-pinctrl
- ralink,rt2880-pinmux
deprecated:
items:
- const: ralink,rt2880-pinmux
deprecated: true
Arınç
Powered by blists - more mailing lists