* [PATCH 0/2] Add support for "on-die" ECC on Davinci.
@ 2024-10-01 10:42 Marcus Folkesson
2024-10-01 10:42 ` [PATCH 1/2] mtd: nand: davinci: add support for on-die ECC engine type Marcus Folkesson
2024-10-01 10:42 ` [PATCH 2/2] dt-bindings: mtd: " Marcus Folkesson
0 siblings, 2 replies; 5+ messages in thread
From: Marcus Folkesson @ 2024-10-01 10:42 UTC (permalink / raw)
To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-mtd, linux-kernel, devicetree, Marcus Folkesson
Some chips, e.g. Micron MT29F1G08ABBFAH4, has a mandatory on-die ECC.
Add "on-die" as ECC engine type in order to be compatible with those.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
Marcus Folkesson (2):
mtd: nand: davinci: add support for on-die ECC engine type
dt-bindings: mtd: davinci: add support for on-die ECC engine type
Documentation/devicetree/bindings/mtd/davinci-nand.txt | 1 +
drivers/mtd/nand/raw/davinci_nand.c | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
---
base-commit: 200289db261f0c8131a5756133e9d30966289c3b
change-id: 20241001-ondie-a0edcf28f846
Best regards,
--
Marcus Folkesson <marcus.folkesson@gmail.com>
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/2] mtd: nand: davinci: add support for on-die ECC engine type 2024-10-01 10:42 [PATCH 0/2] Add support for "on-die" ECC on Davinci Marcus Folkesson @ 2024-10-01 10:42 ` Marcus Folkesson 2024-10-01 10:42 ` [PATCH 2/2] dt-bindings: mtd: " Marcus Folkesson 1 sibling, 0 replies; 5+ messages in thread From: Marcus Folkesson @ 2024-10-01 10:42 UTC (permalink / raw) To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-mtd, linux-kernel, devicetree, Marcus Folkesson Some chips, e.g. Micron MT29F1G08ABBFAH4, has a mandatory on-die ECC. Add "on-die" as ECC engine type in order to be compatible with those. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> --- drivers/mtd/nand/raw/davinci_nand.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/davinci_nand.c b/drivers/mtd/nand/raw/davinci_nand.c index 392678143a36b20b42c1827eee8203dc2e41889a..79e768d337ae12f6e8d7f21f1acd4e259f4f3020 100644 --- a/drivers/mtd/nand/raw/davinci_nand.c +++ b/drivers/mtd/nand/raw/davinci_nand.c @@ -66,6 +66,7 @@ struct davinci_nand_pdata { /* none == NAND_ECC_ENGINE_TYPE_NONE (strongly *not* advised!!) * soft == NAND_ECC_ENGINE_TYPE_SOFT + * on-die == NAND_ECC_ENGINE_TYPE_ON_DIE * else == NAND_ECC_ENGINE_TYPE_ON_HOST, according to ecc_bits * * All DaVinci-family chips support 1-bit hardware ECC. @@ -524,6 +525,8 @@ static struct davinci_nand_pdata pdata->engine_type = NAND_ECC_ENGINE_TYPE_SOFT; if (!strncmp("hw", mode, 2)) pdata->engine_type = NAND_ECC_ENGINE_TYPE_ON_HOST; + if (!strncmp("on-die", mode, 6)) + pdata->engine_type = NAND_ECC_ENGINE_TYPE_ON_DIE; } if (!of_property_read_u32(pdev->dev.of_node, "ti,davinci-ecc-bits", &prop)) @@ -580,6 +583,7 @@ static int davinci_nand_attach_chip(struct nand_chip *chip) switch (chip->ecc.engine_type) { case NAND_ECC_ENGINE_TYPE_NONE: + case NAND_ECC_ENGINE_TYPE_ON_DIE: pdata->ecc_bits = 0; break; case NAND_ECC_ENGINE_TYPE_SOFT: @@ -914,4 +918,3 @@ module_platform_driver(nand_davinci_driver); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Texas Instruments"); MODULE_DESCRIPTION("Davinci NAND flash driver"); - -- 2.46.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] dt-bindings: mtd: davinci: add support for on-die ECC engine type 2024-10-01 10:42 [PATCH 0/2] Add support for "on-die" ECC on Davinci Marcus Folkesson 2024-10-01 10:42 ` [PATCH 1/2] mtd: nand: davinci: add support for on-die ECC engine type Marcus Folkesson @ 2024-10-01 10:42 ` Marcus Folkesson 2024-10-01 20:10 ` Miquel Raynal 1 sibling, 1 reply; 5+ messages in thread From: Marcus Folkesson @ 2024-10-01 10:42 UTC (permalink / raw) To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-mtd, linux-kernel, devicetree, Marcus Folkesson Some chips, e.g. Micron MT29F1G08ABBFAH4, has a mandatory on-die ECC. Add "on-die" as ECC engine type in order to be compatible with those. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> --- Documentation/devicetree/bindings/mtd/davinci-nand.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mtd/davinci-nand.txt b/Documentation/devicetree/bindings/mtd/davinci-nand.txt index eb8e2ff4dbd2901b3c396f2e66c1f590a32dcf67..9afda5cd956494c6b3171bdbaecaeb289acd64ea 100644 --- a/Documentation/devicetree/bindings/mtd/davinci-nand.txt +++ b/Documentation/devicetree/bindings/mtd/davinci-nand.txt @@ -44,6 +44,7 @@ Recommended properties : - "none" - "soft" - "hw" + - "on-die" - ti,davinci-ecc-bits: used ECC bits, currently supported 1 or 4. -- 2.46.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: mtd: davinci: add support for on-die ECC engine type 2024-10-01 10:42 ` [PATCH 2/2] dt-bindings: mtd: " Marcus Folkesson @ 2024-10-01 20:10 ` Miquel Raynal 2024-10-02 7:49 ` Marcus Folkesson 0 siblings, 1 reply; 5+ messages in thread From: Miquel Raynal @ 2024-10-01 20:10 UTC (permalink / raw) To: Marcus Folkesson Cc: Richard Weinberger, Vignesh Raghavendra, Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-mtd, linux-kernel, devicetree Hi Marcus, marcus.folkesson@gmail.com wrote on Tue, 01 Oct 2024 12:42:27 +0200: > Some chips, e.g. Micron MT29F1G08ABBFAH4, has a mandatory on-die ECC. > Add "on-die" as ECC engine type in order to be compatible with those. > > Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> > --- > Documentation/devicetree/bindings/mtd/davinci-nand.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/mtd/davinci-nand.txt b/Documentation/devicetree/bindings/mtd/davinci-nand.txt > index eb8e2ff4dbd2901b3c396f2e66c1f590a32dcf67..9afda5cd956494c6b3171bdbaecaeb289acd64ea 100644 > --- a/Documentation/devicetree/bindings/mtd/davinci-nand.txt > +++ b/Documentation/devicetree/bindings/mtd/davinci-nand.txt > @@ -44,6 +44,7 @@ Recommended properties : > - "none" > - "soft" > - "hw" > + - "on-die" This file is very legacy and this addition would be totally unneeded if that file had been converted to yaml earlier. Just referencing nand-controller.yaml will authorize nand-ecc-mode = "on-die" (while still marking it legacy). Would you mind converting this file please? Thanks, Miquèl ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: mtd: davinci: add support for on-die ECC engine type 2024-10-01 20:10 ` Miquel Raynal @ 2024-10-02 7:49 ` Marcus Folkesson 0 siblings, 0 replies; 5+ messages in thread From: Marcus Folkesson @ 2024-10-02 7:49 UTC (permalink / raw) To: Miquel Raynal Cc: Richard Weinberger, Vignesh Raghavendra, Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-mtd, linux-kernel, devicetree [-- Attachment #1: Type: text/plain, Size: 1419 bytes --] Hi Miquel, On Tue, Oct 01, 2024 at 10:10:32PM +0200, Miquel Raynal wrote: > Hi Marcus, > > marcus.folkesson@gmail.com wrote on Tue, 01 Oct 2024 12:42:27 +0200: > > > Some chips, e.g. Micron MT29F1G08ABBFAH4, has a mandatory on-die ECC. > > Add "on-die" as ECC engine type in order to be compatible with those. > > > > Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> > > --- > > Documentation/devicetree/bindings/mtd/davinci-nand.txt | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/Documentation/devicetree/bindings/mtd/davinci-nand.txt b/Documentation/devicetree/bindings/mtd/davinci-nand.txt > > index eb8e2ff4dbd2901b3c396f2e66c1f590a32dcf67..9afda5cd956494c6b3171bdbaecaeb289acd64ea 100644 > > --- a/Documentation/devicetree/bindings/mtd/davinci-nand.txt > > +++ b/Documentation/devicetree/bindings/mtd/davinci-nand.txt > > @@ -44,6 +44,7 @@ Recommended properties : > > - "none" > > - "soft" > > - "hw" > > + - "on-die" > > This file is very legacy and this addition would be totally unneeded if > that file had been converted to yaml earlier. Just referencing > nand-controller.yaml will authorize nand-ecc-mode = "on-die" (while > still marking it legacy). Would you mind converting this file please? Sure, I will give it a try. I will send out a v2 later today. > > Thanks, > Miquèl Best regards, Marcus Folkesson [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-10-02 7:49 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-10-01 10:42 [PATCH 0/2] Add support for "on-die" ECC on Davinci Marcus Folkesson 2024-10-01 10:42 ` [PATCH 1/2] mtd: nand: davinci: add support for on-die ECC engine type Marcus Folkesson 2024-10-01 10:42 ` [PATCH 2/2] dt-bindings: mtd: " Marcus Folkesson 2024-10-01 20:10 ` Miquel Raynal 2024-10-02 7:49 ` Marcus Folkesson
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).