summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | mtd: nand: fsl_upm: set ECC algorithm explicitlyRafał Miłecki2016-05-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to enum nand_ecc_algo). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: cmx270: set ECC algorithm explicitlyRafał Miłecki2016-05-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to enum nand_ecc_algo). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: mpc5121_nfc: set ECC algorithm explicitlyRafał Miłecki2016-05-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to enum nand_ecc_algo). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: au1550nd: set ECC algorithm explicitlyRafał Miłecki2016-05-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to enum nand_ecc_algo). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: sh_flctl: set ECC algorithm explicitlyRafał Miłecki2016-05-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to enum nand_ecc_algo). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: s3c2410: set ECC algorithm explicitlyRafał Miłecki2016-05-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to enum nand_ecc_algo). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: omap2: set ECC algorithm explicitlyRafał Miłecki2016-05-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to enum nand_ecc_algo). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: kill the nand_ecclayout structBoris Brezillon2016-05-052-123/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that all MTD drivers have moved to the mtd_ooblayout_ops model we can safely remove the struct nand_ecclayout definition, and all the remaining places where it was still used. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: kill the ecc->layout fieldBoris Brezillon2016-05-052-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that all NAND drivers have switched to mtd_ooblayout_ops, we can kill the ecc->layout field. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: onenand: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-65/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Modify the onenand drivers to switch to this approach. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: qcom: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-45/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Tested-by: Archit Taneja <architt@codeaurora.org>
| | * | mtd: nand: vf610: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-30/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Tested-by: Stefan Agner <stefan@agner.ch> Acked-by: Stefan Agner <stefan@agner.ch>
| | * | mtd: nand: sunxi: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-62/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: sm_common: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-16/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: sh_flctl: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-20/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: s3c2410: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-5/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: pxa3xx: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-40/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: omap2: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-81/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: mxc: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-107/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: lpc32xx: switch to mtd_ooblayout_opsBoris Brezillon2016-05-052-25/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: jz4780: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-14/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Tested-by: Harvey Hunt <harvey.hunt@imgtec.com>
| | * | mtd: nand: hisi504: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: gpmi: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-12/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Han Xu <han.xu@nxp.com> Tested-by: Han Xu <han.xu@nxp.com>
| | * | mtd: nand: fsmc: get rid of the fsmc_nand_eccplace structBoris Brezillon2016-05-051-45/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that mtd_ooblayout_ecc() returns the ECC byte position using the OOB free method, we can get rid of the fsmc_nand_eccplace struct. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: fsmc: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-216/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: fsl_ifc: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-164/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: fsl_elbc: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-36/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: docg4: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-5/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: diskonchip: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-15/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: denali: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-15/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: davinci: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-74/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: cafe: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-12/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: brcm: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-101/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: bf5xx: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-23/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: atmel: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-46/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Reviewed-by: Nicolas Ferre <nicolas.ferre@atmel.com>
| | * | mtd: nand: jz4740: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de>
| | * | mtd: nand: sharpsl: switch to mtd_ooblayout_opsBoris Brezillon2016-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: bch: switch to mtd_ooblayout_opsBoris Brezillon2016-05-052-30/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the nand_ecclayout definition by the equivalent mtd_ooblayout_ops definition. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: implement the default mtd_ooblayout_opsBoris Brezillon2016-04-191-49/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the default nand_ecclayout definitions for large and small page devices with the equivalent mtd_ooblayout_ops. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: docg3: switch to mtd_ooblayout_opsBoris Brezillon2016-04-191-11/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the nand_ecclayout definition by the equivalent mtd_ooblayout_ops definition. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
| | * | mtd: create an mtd_ooblayout_ops struct to ease ECC layout definitionBoris Brezillon2016-04-194-48/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ECC layout definitions are currently exposed using the nand_ecclayout struct which embeds oobfree and eccpos arrays with predefined size. This approach was acceptable when NAND chips were providing relatively small OOB regions, but MLC and TLC now provide OOB regions of several hundreds of bytes, which implies a non negligible overhead for everybody even those who only need to support legacy NANDs. Create an mtd_ooblayout_ops interface providing the same functionality (expose the ECC and oobfree layout) without the need for this huge structure. The mtd->ecclayout is now deprecated and should be replaced by the equivalent mtd_ooblayout_ops. In the meantime we provide a wrapper around the ->ecclayout field to ease migration to this new model. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: docg3: use mtd_set_ecclayout() where appropriateBoris Brezillon2016-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
| | * | mtd: onenand: use mtd_set_ecclayout() where appropriateBoris Brezillon2016-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: use mtd_set_ecclayout() where appropriateBoris Brezillon2016-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: use mtd_set_ecclayout() where appropriateBoris Brezillon2016-04-192-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: onenand: use mtd_ooblayout_xxx() helpers where appropriateBoris Brezillon2016-04-191-60/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: qcom: use mtd_ooblayout_xxx() helpers where appropriateBoris Brezillon2016-04-191-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to ecclayout fields, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Tested-by: Archit Taneja <architt@codeaurora.org>
| | * | mtd: nand: omap2: use mtd_ooblayout_xxx() helpers where appropriateBoris Brezillon2016-04-191-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: lpc32xx: use mtd_ooblayout_xxx() helpers where appropriateBoris Brezillon2016-04-191-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
| | * | mtd: nand: gpmi: use mtd_ooblayout_xxx() helpers where appropriateBoris Brezillon2016-04-191-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>