All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: "Álvaro Fernández Rojas" <noltari@gmail.com>
Cc: richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, masonccyang@mxic.com.tw,
	linux-mtd@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: mtd: nand: Macronix: document new binding
Date: Fri, 24 Mar 2023 10:40:20 +0100	[thread overview]
Message-ID: <20230324104020.54754079@xps-13> (raw)
In-Reply-To: <20230323124510.2484808-2-noltari@gmail.com>

Hi Álvaro,

noltari@gmail.com wrote on Thu, 23 Mar 2023 13:45:09 +0100:

> Add new "mxic,disable-block-protection" binding documentation.
> This binding allows disabling block protection support for those devices not
> supporting it.
> 
> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
> ---
>  Documentation/devicetree/bindings/mtd/nand-macronix.txt | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/mtd/nand-macronix.txt b/Documentation/devicetree/bindings/mtd/nand-macronix.txt
> index ffab28a2c4d1..03f65ca32cd3 100644
> --- a/Documentation/devicetree/bindings/mtd/nand-macronix.txt
> +++ b/Documentation/devicetree/bindings/mtd/nand-macronix.txt
> @@ -16,6 +16,9 @@ in children nodes.
>  Required NAND chip properties in children mode:
>  - randomizer enable: should be "mxic,enable-randomizer-otp"
>  
> +Optional NAND chip properties in children mode:
> +- block protection disable: should be "mxic,disable-block-protection"
> +

Besides the fact that nowadays we prefer to see binding conversions to
yaml before adding anything, I don't think this will fly.

I'm not sure exactly what "disable block protection" means, we
already have similar properties like "lock" and "secure-regions", not
sure they will fit but I think it's worth checking.

Otherwise, why would you disable the block protection? What does it
mean exactly? I'm not in favor of a Macronix-specific property here.

Thanks,
Miquèl

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

WARNING: multiple messages have this Message-ID (diff)
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: "Álvaro Fernández Rojas" <noltari@gmail.com>
Cc: richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, masonccyang@mxic.com.tw,
	linux-mtd@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: mtd: nand: Macronix: document new binding
Date: Fri, 24 Mar 2023 10:40:20 +0100	[thread overview]
Message-ID: <20230324104020.54754079@xps-13> (raw)
In-Reply-To: <20230323124510.2484808-2-noltari@gmail.com>

Hi Álvaro,

noltari@gmail.com wrote on Thu, 23 Mar 2023 13:45:09 +0100:

> Add new "mxic,disable-block-protection" binding documentation.
> This binding allows disabling block protection support for those devices not
> supporting it.
> 
> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
> ---
>  Documentation/devicetree/bindings/mtd/nand-macronix.txt | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/mtd/nand-macronix.txt b/Documentation/devicetree/bindings/mtd/nand-macronix.txt
> index ffab28a2c4d1..03f65ca32cd3 100644
> --- a/Documentation/devicetree/bindings/mtd/nand-macronix.txt
> +++ b/Documentation/devicetree/bindings/mtd/nand-macronix.txt
> @@ -16,6 +16,9 @@ in children nodes.
>  Required NAND chip properties in children mode:
>  - randomizer enable: should be "mxic,enable-randomizer-otp"
>  
> +Optional NAND chip properties in children mode:
> +- block protection disable: should be "mxic,disable-block-protection"
> +

Besides the fact that nowadays we prefer to see binding conversions to
yaml before adding anything, I don't think this will fly.

I'm not sure exactly what "disable block protection" means, we
already have similar properties like "lock" and "secure-regions", not
sure they will fit but I think it's worth checking.

Otherwise, why would you disable the block protection? What does it
mean exactly? I'm not in favor of a Macronix-specific property here.

Thanks,
Miquèl

  reply	other threads:[~2023-03-24  9:40 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-23 12:45 [PATCH 0/2] mtd: nand: raw: macronix: allow disabling block protection Álvaro Fernández Rojas
2023-03-23 12:45 ` Álvaro Fernández Rojas
2023-03-23 12:45 ` [PATCH 1/2] dt-bindings: mtd: nand: Macronix: document new binding Álvaro Fernández Rojas
2023-03-23 12:45   ` Álvaro Fernández Rojas
2023-03-24  9:40   ` Miquel Raynal [this message]
2023-03-24  9:40     ` Miquel Raynal
2023-03-24 10:31     ` Álvaro Fernández Rojas
2023-03-24 10:31       ` Álvaro Fernández Rojas
2023-03-24 10:49       ` Miquel Raynal
2023-03-24 10:49         ` Miquel Raynal
2023-03-24 11:21         ` Álvaro Fernández Rojas
2023-03-24 11:21           ` Álvaro Fernández Rojas
2023-03-24 13:45           ` Miquel Raynal
2023-03-24 13:45             ` Miquel Raynal
2023-03-24 14:15             ` Álvaro Fernández Rojas
2023-03-24 14:15               ` Álvaro Fernández Rojas
2023-03-24 14:36               ` Miquel Raynal
2023-03-24 14:36                 ` Miquel Raynal
2023-03-24 17:04                 ` Álvaro Fernández Rojas
2023-03-24 17:04                   ` Álvaro Fernández Rojas
2023-03-27  8:21                   ` Miquel Raynal
2023-03-27  8:21                     ` Miquel Raynal
2023-04-22  9:28                   ` Álvaro Fernández Rojas
2023-04-22  9:28                     ` Álvaro Fernández Rojas
2023-03-23 12:45 ` [PATCH 2/2] mtd: nand: raw: macronix: allow disabling block protection Álvaro Fernández Rojas
2023-03-23 12:45   ` Álvaro Fernández Rojas
2023-03-23 12:47   ` Tudor Ambarus
2023-03-23 12:47     ` Tudor Ambarus
2023-03-23 12:55     ` Álvaro Fernández Rojas
2023-03-23 12:55       ` Álvaro Fernández Rojas
     [not found] <CAAQoYRm3766SG7+VuwVzu_xH8aWihoKWMEp8xQGNgJ6oOtC9+g@mail.gmail.com>
2023-04-26  7:24 ` [PATCH 1/2] dt-bindings: mtd: nand: Macronix: document new binding liao jaime
2023-04-26  7:24   ` liao jaime
2023-05-16 18:55   ` Álvaro Fernández Rojas
2023-05-16 18:55     ` Álvaro Fernández Rojas
2023-05-16 18:58     ` Florian Fainelli
2023-05-16 18:58       ` Florian Fainelli
2023-05-16 19:02       ` Álvaro Fernández Rojas
2023-05-16 19:02         ` Álvaro Fernández Rojas
2023-05-17  5:30         ` William Zhang
2023-05-17  5:30           ` William Zhang
2023-05-17 15:20           ` Álvaro Fernández Rojas
2023-05-17 15:20             ` Álvaro Fernández Rojas
2023-05-22  8:15             ` Miquel Raynal
2023-05-22  8:15               ` Miquel Raynal
2023-05-22  9:21               ` liao jaime
2023-05-22  9:21                 ` liao jaime
2023-05-23  0:59             ` William Zhang
2023-05-23  0:59               ` William Zhang
2023-05-24  5:30               ` liao jaime
2023-05-24  5:30                 ` liao jaime

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=20230324104020.54754079@xps-13 \
    --to=miquel.raynal@bootlin.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=masonccyang@mxic.com.tw \
    --cc=noltari@gmail.com \
    --cc=richard@nod.at \
    --cc=robh+dt@kernel.org \
    --cc=vigneshr@ti.com \
    /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.