Commit 4b6415f9 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'mtd/fixes-for-4.16-rc2' of git://git.infradead.org/linux-mtd

Pull mtd fixes from Boris Brezillon:

 - add missing dependency to NAND_MARVELL Kconfig entry

 - use the appropriate OOB layout in the VF610 driver

* tag 'mtd/fixes-for-4.16-rc2' of git://git.infradead.org/linux-mtd:
  mtd: nand: MTD_NAND_MARVELL should depend on HAS_DMA
  mtd: nand: vf610: set correct ooblayout
parents ee78ad78 f23def80
...@@ -328,7 +328,7 @@ config MTD_NAND_MARVELL ...@@ -328,7 +328,7 @@ config MTD_NAND_MARVELL
tristate "NAND controller support on Marvell boards" tristate "NAND controller support on Marvell boards"
depends on PXA3xx || ARCH_MMP || PLAT_ORION || ARCH_MVEBU || \ depends on PXA3xx || ARCH_MMP || PLAT_ORION || ARCH_MVEBU || \
COMPILE_TEST COMPILE_TEST
depends on HAS_IOMEM depends on HAS_IOMEM && HAS_DMA
help help
This enables the NAND flash controller driver for Marvell boards, This enables the NAND flash controller driver for Marvell boards,
including: including:
......
...@@ -752,10 +752,8 @@ static int vf610_nfc_probe(struct platform_device *pdev) ...@@ -752,10 +752,8 @@ static int vf610_nfc_probe(struct platform_device *pdev)
if (mtd->oobsize > 64) if (mtd->oobsize > 64)
mtd->oobsize = 64; mtd->oobsize = 64;
/* /* Use default large page ECC layout defined in NAND core */
* mtd->ecclayout is not specified here because we're using the mtd_set_ooblayout(mtd, &nand_ooblayout_lp_ops);
* default large page ECC layout defined in NAND core.
*/
if (chip->ecc.strength == 32) { if (chip->ecc.strength == 32) {
nfc->ecc_mode = ECC_60_BYTE; nfc->ecc_mode = ECC_60_BYTE;
chip->ecc.bytes = 60; chip->ecc.bytes = 60;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment