1. 12 8月, 2019 3 次提交
  2. 15 7月, 2019 2 次提交
    • M
      docs: mtd: move it to the driver-api book · 43f6c078
      Mauro Carvalho Chehab 提交于
      While I was tempted to move it to admin-guide, as some docs
      there are more userspace-faced, there are some very technical
      discussions about memory error correction code from the Kernel
      implementer's PoV. So, let's place it inside the driver-api
      book.
      Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      43f6c078
    • M
      docs: mtd: convert to ReST · 6e58e2d8
      Mauro Carvalho Chehab 提交于
      Rename the mtd documentation files to ReST, add an
      index for them and adjust in order to produce a nice html
      output via the Sphinx build system.
      
      It should be noticed that Sphinx doesn't handle very well
      URLs with dots in the middle. Thankfully, internally, the '.'
      char is translated to %2E, so we can jus use %2E instead of
      dots, and this will work fine on both text and processed files.
      
      At its new index.rst, let's add a :orphan: while this is not linked to
      the main index.rst file, in order to avoid build warnings.
      Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      6e58e2d8
  3. 08 7月, 2019 3 次提交
  4. 06 7月, 2019 2 次提交
  5. 01 7月, 2019 2 次提交
    • P
      mtd: rawnand: ingenic: Fix ingenic_ecc dependency · c403ec33
      Paul Cercueil 提交于
      If MTD_NAND_JZ4780 is y and MTD_NAND_JZ4780_BCH is m,
      which select CONFIG_MTD_NAND_INGENIC_ECC to m, building fails:
      
      drivers/mtd/nand/raw/ingenic/ingenic_nand.o: In function `ingenic_nand_remove':
      ingenic_nand.c:(.text+0x177): undefined reference to `ingenic_ecc_release'
      drivers/mtd/nand/raw/ingenic/ingenic_nand.o: In function `ingenic_nand_ecc_correct':
      ingenic_nand.c:(.text+0x2ee): undefined reference to `ingenic_ecc_correct'
      
      To fix that, the ingenic_nand and ingenic_ecc modules have been fused
      into one single module.
      - The ingenic_ecc.c code is now compiled in only if
        $(CONFIG_MTD_NAND_INGENIC_ECC) is set. This is now a boolean instead
        of tristate.
      - To avoid changing the module name, the ingenic_nand.c file is moved to
        ingenic_nand_drv.c. Then the module name is still ingenic_nand.
      - Since ingenic_ecc.c is no more a module, the module-specific macros
        have been dropped, and the functions are no more exported for use by
        the ingenic_nand driver.
      
      Fixes: 15de8c6e ("mtd: rawnand: ingenic: Separate top-level and SoC specific code")
      Signed-off-by: NPaul Cercueil <paul@crapouillou.net>
      Reported-by: NArnd Bergmann <arnd@arndb.de>
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Cc: YueHaibing <yuehaibing@huawei.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com>
      c403ec33
    • F
      mtd: spinand: Fix max_bad_eraseblocks_per_lun info in memorg · a126483e
      Frieder Schrempf 提交于
      The 1Gb Macronix chip can have a maximum of 20 bad blocks, while
      the 2Gb version has twice as many blocks and therefore the maximum
      number of bad blocks is 40.
      
      The 4Gb GigaDevice GD5F4GQ4xA has twice as many blocks as its 2Gb
      counterpart and therefore a maximum of 80 bad blocks.
      
      Fixes: 377e517b ("mtd: nand: Add max_bad_eraseblocks_per_lun info to memorg")
      Reported-by: NEmil Lenngren <emil.lenngren@gmail.com>
      Signed-off-by: NFrieder Schrempf <frieder.schrempf@kontron.de>
      Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com>
      a126483e
  6. 28 6月, 2019 28 次提交