devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Damien Le Moal <dlemoal@kernel.org>
To: Frank Li <Frank.li@nxp.com>, Krzysztof Kozlowski <krzk@kernel.org>
Cc: Niklas Cassel <cassel@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	"open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)"
	<linux-ide@vger.kernel.org>,
	"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
	<devicetree@vger.kernel.org>,
	open list <linux-kernel@vger.kernel.org>,
	imx@lists.linux.dev
Subject: Re: [PATCH 1/1] dt-bindings: ata: ahci-fsl-qoriq: add fsl,ls1046a-ahci and fsl,ls1012a-ahci
Date: Fri, 5 Jul 2024 09:20:52 +0900	[thread overview]
Message-ID: <cce2627f-c02f-4699-81a2-3cd9a1f2d74b@kernel.org> (raw)
In-Reply-To: <ZoRm/Lwqb4KGCeUx@lizhi-Precision-Tower-5810>

On 7/3/24 05:45, Frank Li wrote:
> On Wed, Jun 26, 2024 at 10:17:55AM +0200, Krzysztof Kozlowski wrote:
>> On 25/06/2024 22:57, Frank Li wrote:
>>> Add compatible string 'fsl,ls1046a-ahci' and 'fsl,ls1012a-ahci' compatible
>>> string. Allow 'fsl,ls1012a-ahci' fallback to 'fsl,ls1043a-ahci'.
>>>
>>> ls1046a ahci ecc disable bit is difference with other chips.
>>>
>>> Signed-off-by: Frank Li <Frank.Li@nxp.com>
>>> ---
>>>  .../devicetree/bindings/ata/fsl,ahci.yaml     | 19 ++++++++++++-------
>>>  1 file changed, 12 insertions(+), 7 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/ata/fsl,ahci.yaml b/Documentation/devicetree/bindings/ata/fsl,ahci.yaml
>>> index 162b3bb5427ed..a244bc603549d 100644
>>> --- a/Documentation/devicetree/bindings/ata/fsl,ahci.yaml
>>> +++ b/Documentation/devicetree/bindings/ata/fsl,ahci.yaml
>>> @@ -11,13 +11,18 @@ maintainers:
>>>  
>>>  properties:
>>>    compatible:
>>> -    enum:
>>> -      - fsl,ls1021a-ahci
>>> -      - fsl,ls1043a-ahci
>>> -      - fsl,ls1028a-ahci
>>> -      - fsl,ls1088a-ahci
>>> -      - fsl,ls2080a-ahci
>>> -      - fsl,lx2160a-ahci
>>> +    oneOf:
>>> +      - items:
>>> +          - const: fsl,ls1012a-ahci
>>> +          - const: fsl,ls1043a-ahci
>>> +      - enum:
>>> +          - fsl,ls1021a-ahci
>>> +          - fsl,ls1043a-ahci
>>> +          - fsl,ls1046a-ahci
>>
>> Where is the driver change for this?
>>
>> Your commit does not explain why you are doing it and without driver
>> change adding new support it is not obvious. This probably applies to
>> all your patches.
> 
> I think I missed ls1012a and ls1021a.  Commit message is wrong. This is
> for legancy platorm. 
> 
> Basic try to eliminate the CHECK_DTBS warning. ls1012a use
> 
> "fsl,ls1012a-ahci", "fsl,ls1043a-ahci". There are two methods, 
> 1. change binding doc to allow "fsl,ls1012a-ahci", "fsl,ls1043a-ahci"

But then shouldn't you also change the drivers/ata/ahci_qoriq.c to add ls1012a
as a compatible ?

> 2. remove "fsl,ls1012a-ahci".

I am not sure if that is acceptable since there is one device tree using it out
there already.

I am no DT expert, but I think (1) with the driver change is the right approach.
Krzysztof ?

-- 
Damien Le Moal
Western Digital Research


  reply	other threads:[~2024-07-05  0:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-25 20:57 [PATCH 1/1] dt-bindings: ata: ahci-fsl-qoriq: add fsl,ls1046a-ahci and fsl,ls1012a-ahci Frank Li
2024-06-26  8:17 ` Krzysztof Kozlowski
2024-07-02 20:45   ` Frank Li
2024-07-05  0:20     ` Damien Le Moal [this message]
2024-07-05  6:06       ` Krzysztof Kozlowski
2024-07-12 10:17 ` Niklas Cassel

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=cce2627f-c02f-4699-81a2-3cd9a1f2d74b@kernel.org \
    --to=dlemoal@kernel.org \
    --cc=Frank.li@nxp.com \
    --cc=cassel@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).