1. 18 Apr, 2019 8 commits
    • Marek Behún's avatar
      mtd: rawnand: fsl_elbc: Cosmetic move · 9fed3115
      Marek Behún authored
      Move the fsl_elbc_attach_chip function after the definitions of
      fsl_elbc_read_page and friends in preparation for the next patch.
      Signed-off-by: default avatarMarek Behún <marek.behun@nic.cz>
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      9fed3115
    • Jonathan Neuschäfer's avatar
      mtd: rawnand: Fix sphinx syntax · 7e8afca5
      Jonathan Neuschäfer authored
      Sphinx doesn't handle expressions in identifier references.
      
      This fixes the following warnings:
      
      ./include/linux/mtd/rawnand.h:1184: WARNING: Inline strong start-string without end-string.
      ./include/linux/mtd/rawnand.h:1186: WARNING: Inline strong start-string without end-string.
      Signed-off-by: default avatarJonathan Neuschäfer <j.neuschaefer@gmx.net>
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      7e8afca5
    • Anders Roxell's avatar
      mtd: rawnand: fix build dependency · 7019ac5d
      Anders Roxell authored
      When enabling CONFIG_MTD_NAND_ECC_SW_BCH as a module, the
      MTD_NAND_ECC_SW_BCH depends on MTD_NAND, but the module controlled by
      MTD_NAND links against the module controlled by MTD_NAND_ECC_SW_BCH.
      This leads to the following link failure.
      
      aarch64-linux-gnu-ld: drivers/mtd/nand/raw/nand_base.o: in function `nand_cleanup':
      ../drivers/mtd/nand/raw/nand_base.c:5886: undefined reference to `nand_bch_free'
      aarch64-linux-gnu-ld: ../drivers/mtd/nand/raw/nand_base.c:5886:(.text+0x9928): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `nand_bch_free'
      aarch64-linux-gnu-ld: drivers/mtd/nand/raw/nand_base.o: in function `nand_set_ecc_soft_ops':
      ../drivers/mtd/nand/raw/nand_base.c:5093: undefined reference to `nand_bch_calculate_ecc'
      aarch64-linux-gnu-ld: ../drivers/mtd/nand/raw/nand_base.c:5093:(.text+0xe914): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against undefined symbol `nand_bch_calculate_ecc'
      aarch64-linux-gnu-ld: ../drivers/mtd/nand/raw/nand_base.c:5093: undefined reference to `nand_bch_calculate_ecc'
      aarch64-linux-gnu-ld: ../drivers/mtd/nand/raw/nand_base.c:5094: undefined reference to `nand_bch_correct_data'
      aarch64-linux-gnu-ld: ../drivers/mtd/nand/raw/nand_base.c:5094:(.text+0xe934): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against undefined symbol `nand_bch_correct_data'
      aarch64-linux-gnu-ld: ../drivers/mtd/nand/raw/nand_base.c:5094: undefined reference to `nand_bch_correct_data'
      aarch64-linux-gnu-ld: ../drivers/mtd/nand/raw/nand_base.c:5148: undefined reference to `nand_bch_init'
      aarch64-linux-gnu-ld: ../drivers/mtd/nand/raw/nand_base.c:5148:(.text+0xebbc): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `nand_bch_init'
      
      Rework CONFIG_MTD_NAND_ECC_SW_BCH from tristate to bool,
      and then link the nand_bch.o file into nand.ko if its enabled.
      
      Fixes: 51ef1d0b2095 ("mtd: nand: Clarify Kconfig entry for software BCH ECC algorithm")
      Signed-off-by: default avatarAnders Roxell <anders.roxell@linaro.org>
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      7019ac5d
    • Miquel Raynal's avatar
      mtd: nand: Remove useless line in Kconfig · 31bc36c4
      Miquel Raynal authored
      Prepare changes that will lay in this file to better express what is
      NAND related and what is not in menuconfig.
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      31bc36c4
    • Miquel Raynal's avatar
      mtd: rawnand: Clarify Kconfig entry MTD_NAND · 72c5af00
      Miquel Raynal authored
      MTD_NAND is large and encloses much more than what the symbol is
      actually used for: raw NAND. Clarify the symbol by naming it
      MTD_RAW_NAND instead.
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      72c5af00
    • Miquel Raynal's avatar
      mtd: rawnand: Change Kconfig titles and re-order a bit the list · e787be1f
      Miquel Raynal authored
      This list is a mess, while some items should probably not be in the
      raw/ sub-directory, others are definitely at the right place but not
      with the right description. Write uniform titles and group IPs by
      vendor.
      
      NAND controllers will appear under the list named "Raw/parallel NAND
      flash controllers" while the other drivers will appear under
      "Misc". Software ECC engines will later be moved out of the raw/
      directory.
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      e787be1f
    • Miquel Raynal's avatar
      mtd: nand: Clarify Kconfig entry for software Hamming ECC entries · 9bb94643
      Miquel Raynal authored
      The software Hamming ECC correction implementation is referred as
      MTD_NAND_ECC which is too generic. Rename it
      MTD_NAND_ECC_SW_HAMMING. Also rename MTD_NAND_ECC_SMC which is an
      SMC quirk in the Hamming implementation as
      MTD_NAND_ECC_SW_HAMMING_SMC.
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      9bb94643
    • Miquel Raynal's avatar
      mtd: nand: Clarify Kconfig entry for software BCH ECC algorithm · 714c0682
      Miquel Raynal authored
      There is no point in having two distinct entries, merge them and
      rename the symbol for more clarity: MTD_NAND_ECC_SW_BCH
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      714c0682
  2. 08 Apr, 2019 24 commits
  3. 21 Mar, 2019 8 commits