lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6bfc4c47-e29d-4141-8ba9-c5b0803ab756@kernel.org>
Date: Sat, 7 Sep 2024 15:12:54 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Frank Li <Frank.li@....com>
Cc: Rob Herring <robh@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
 Michael Walle <mwalle@...nel.org>, Shawn Guo <shawnguo@...nel.org>,
 "open list:MEMORY CONTROLLER DRIVERS" <linux-kernel@...r.kernel.org>,
 "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
 <devicetree@...r.kernel.org>, imx@...ts.linux.dev
Subject: Re: [PATCH v3 1/1] dt-bindings: memory-controllers: fsl,ifc: add
 compatible string fsl,ifc-nand

On 02/09/2024 19:57, Frank Li wrote:
> On Mon, Sep 02, 2024 at 09:11:05AM +0200, Krzysztof Kozlowski wrote:
>> On Fri, Aug 30, 2024 at 03:11:43PM -0400, Frank Li wrote:
>>> ifc can connect nor, nand and fpag. Add child node "nand@" under fsl,ifc
>>> and compatible string "fsl,ifc-nand" when ifc connect to nand flash.
>>>
>>> Fix below warning:
>>> arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dtb: /soc/memory-controller@...0000/nand@1,0:
>>> 	failed to match any schema with compatible: ['fsl,ifc-nand']
>>>
>>> Signed-off-by: Frank Li <Frank.Li@....com>
>>> ---
>>> Change from v2 to v3
>>> - add partition child node for nand
>>> - Only partition property is used at ppc
>>> Change from v1 to v2
>>> - add address-cells and size-cells
>>> ---
>>>  .../memory-controllers/fsl/fsl,ifc.yaml       | 26 +++++++++++++++++++
>>>  1 file changed, 26 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml b/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
>>> index d1c3421bee107..5a11224da8914 100644
>>> --- a/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
>>> +++ b/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
>>> @@ -58,6 +58,32 @@ properties:
>>>        access window as configured.
>>>
>>>  patternProperties:
>>> +  "^nand@[a-f0-9]+(,[a-f0-9]+)+$":
>>> +    type: object
>>> +    properties:
>>> +      compatible:
>>> +        const: fsl,ifc-nand
>>> +
>>> +      reg:
>>> +        maxItems: 1
>>> +
>>> +      "#address-cells":
>>> +        const: 1
>>> +
>>> +      "#size-cells":
>>> +        const: 1
>>> +
>>> +    patternProperties:
>>> +      "^partition@[0-9a-f]+":
>>> +        $ref: /schemas/mtd/partitions/partition.yaml#
>>> +        deprecated: true
>>> +
>>> +    required:
>>> +      - compatible
>>> +      - reg
>>> +
>>> +    additionalProperties: false
>>> +
>>>    "^.*@[a-f0-9]+(,[a-f0-9]+)+$":
>>
>> This pattern is for NAND already. I don't understand why you are
>> duplicating it. If this part does not work, fix it.
> 
> It is old binding. It did not require compatible string. It should split
> into nand\flash\fpga ...
> 
> The difference part require difference compatible string. NAND is only
> 1st step to improve it.

I understand. I would prefer to make it complete, which you are quite
close to it. Just change the remaining pattern for example:

(flash|fpga)......:
  type: object
  oneOf:
    - $ref: /schemas/board/fsl,fpga-qixis.yaml#
    - $ref: /schemas/mtd/mtd-physmap.yaml#
  unevaluatedProperties: false

or something similar.


Best regards,
Krzysztof


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ