diff options
author | Sekhar Nori <nsekhar@ti.com> | 2017-03-30 10:39:30 -0400 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-04-25 08:18:41 -0400 |
commit | 65a2c1caa70f71690dcb5afd8fc6afe67fcde599 (patch) | |
tree | 7bbd3bbdbb6a6bd22063fcd3aa6514f4ba7ddb8f /drivers/mtd/nand | |
parent | 2d283ede59869159f4bb84ae689258c5caffce54 (diff) |
mtd: nand: davinci: add comment on NAND subpage write status on keystone
Add a comment clarifying that NAND subpage write on keystone works,
but is not being enabled in the interest of backward compatibility.
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/davinci_nand.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index 27fa8b87cd5f..531c51991e57 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c | |||
@@ -581,6 +581,17 @@ static struct davinci_nand_pdata | |||
581 | "ti,davinci-nand-use-bbt")) | 581 | "ti,davinci-nand-use-bbt")) |
582 | pdata->bbt_options = NAND_BBT_USE_FLASH; | 582 | pdata->bbt_options = NAND_BBT_USE_FLASH; |
583 | 583 | ||
584 | /* | ||
585 | * Since kernel v4.8, this driver has been fixed to enable | ||
586 | * use of 4-bit hardware ECC with subpages and verified on | ||
587 | * TI's keystone EVMs (K2L, K2HK and K2E). | ||
588 | * However, in the interest of not breaking systems using | ||
589 | * existing UBI partitions, sub-page writes are not being | ||
590 | * (re)enabled. If you want to use subpage writes on Keystone | ||
591 | * platforms (i.e. do not have any existing UBI partitions), | ||
592 | * then use "ti,davinci-nand" as the compatible in your | ||
593 | * device-tree file. | ||
594 | */ | ||
584 | if (of_device_is_compatible(pdev->dev.of_node, | 595 | if (of_device_is_compatible(pdev->dev.of_node, |
585 | "ti,keystone-nand")) { | 596 | "ti,keystone-nand")) { |
586 | pdata->options |= NAND_NO_SUBPAGE_WRITE; | 597 | pdata->options |= NAND_NO_SUBPAGE_WRITE; |