1. 18 Jun, 2021 12 commits
  2. 11 Jun, 2021 2 commits
    • Miquel Raynal's avatar
      mtd: spinand: Fix double counting of ECC stats · c93081b2
      Miquel Raynal authored
      In the raw NAND world, ECC engines increment ecc_stats and the final
      caller is responsible for returning -EBADMSG if the verification
      failed.
      
      In the SPI-NAND world it was a bit different until now because there was
      only one possible ECC engine: the on-die one. Indeed, the
      spinand_mtd_read() call was incrementing the ecc_stats counters
      depending on the outcome of spinand_check_ecc_status() directly.
      
      So now let's split the logic like this:
      - spinand_check_ecc_status() is specific to the SPI-NAND on-die engine
        and is kept very simple: it just returns the ECC status (bonus point:
        the content of this helper can be overloaded).
      - spinand_ondie_ecc_finish_io_req() is the caller of
        spinand_check_ecc_status() and will increment the counters and
        eventually return -EBADMSG.
      - spinand_mtd_read() is not tied to the on-die ECC implementation and
        should be able to handle results coming from other ECC engines: it has
        the responsibility of returning the maximum number of bitflips which
        happened during the entire operation as this is the only helper that
        is aware that several pages may be read in a row.
      
      Fixes: 945845b5 ("mtd: spinand: Instantiate a SPI-NAND on-die ECC engine")
      Reported-by: default avatarYouChing Lin <ycllin@mxic.com.tw>
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Tested-by: default avatarYouChing Lin <ycllin@mxic.com.tw>
      Link: https://lore.kernel.org/linux-mtd/20210527084345.208215-1-miquel.raynal@bootlin.com
      c93081b2
    • Miquel Raynal's avatar
      Merge tag 'memory-controller-drv-pl353-5.14' into nand/next · 0b34e320
      Miquel Raynal authored
      Memory controller drivers for v5.14 - PL353
      
      Bigger work around ARM Primecell PL35x SMC memory controller driver by
      Miquel Raynal built on previous series from Naga Sureshkumar Relli.
      
      This includes bindings cleanup and correction, converting these to
      dtschema and several cleanyps in pl353-smc driver.
      0b34e320
  3. 10 Jun, 2021 14 commits
  4. 26 May, 2021 12 commits