1. 29 Jan, 2018 2 commits
    • Boris Brezillon's avatar
      Merge tag 'nand/for-4.16' of git://git.infradead.org/linux-mtd into mtd/next · 571cb17b
      Boris Brezillon authored
      Pull NAND changes from Boris Brezillon:
      
      "
        Core changes:
        * Fix NAND_CMD_NONE handling in nand_command[_lp]() hooks
        * Introduce the ->exec_op() infrastructure
        * Rework NAND buffers handling
        * Fix ECC requirements for K9F4G08U0D
        * Fix nand_do_read_oob() to return the number of bitflips
        * Mark K9F1G08U0E as not supporting subpage writes
      
        Driver changes:
        * MTK: Rework the driver to support new IP versions
        * OMAP OneNAND: Full rework to use new APIs (libgpio, dmaengine) and fix
          DT support
        * Marvell: Add a new driver to replace the pxa3xx one
      "
      571cb17b
    • Boris Brezillon's avatar
      Merge tag 'spi-nor/for-4.16' of git://git.infradead.org/linux-mtd into mtd/next · c8f22b02
      Boris Brezillon authored
      Pull spi-nor changes from Cyrille Pitchen:
      
      "
        This pull-request contains the following notable changes:
      
        Core changes:
        * Add support to new ISSI and Cypress/Spansion memory parts.
        * Fix support of Micron memories by checking error bits in the FSR.
        * Fix update of block-protection bits by reading back the SR.
        * Restore the internal state of the SPI flash memory when removing the
          device.
      
        Driver changes:
        * Maintenance for Freescale, Intel and Metiatek drivers.
        * Add support of the direct access mode for the Cadence QSPI controller.
      "
      c8f22b02
  2. 25 Jan, 2018 2 commits
    • Miquel Raynal's avatar
      mtd: nand: sunxi: Fix ECC strength choice · f4c6cd1a
      Miquel Raynal authored
      When the requested ECC strength does not exactly match the strengths
      supported by the ECC engine, the driver is selecting the closest
      strength meeting the 'selected_strength > requested_strength'
      constraint. Fix the fact that, in this particular case, ecc->strength
      value was not updated to match the 'selected_strength'.
      
      For instance, one can encounter this issue when no ECC requirement is
      filled in the device tree while the NAND chip minimum requirement is not
      a strength/step_size combo natively supported by the ECC engine.
      
      Fixes: 1fef62c1 ("mtd: nand: add sunxi NAND flash controller support")
      Cc: <stable@vger.kernel.org>
      Suggested-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@free-electrons.com>
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      f4c6cd1a
    • Boris Brezillon's avatar
      mtd: nand: gpmi: Fix subpage reads · 4c7e95b1
      Boris Brezillon authored
      Commit 25f815f6 ("mtd: nand: force drivers to explicitly send
      READ/PROG commands") added a call to nand_read_page_op() in
      gpmi_ecc_read_page(), which means this function now sends a READ0
      command and place the data pointer at the beginning of the page. This
      logic is breaking gpmi_ecc_read_subpage() which was calling
      gpmi_ecc_read_page() and expected it to only retrieve the data without
      sending the READ0 command.
      
      Create a gpmi_ecc_read_page_data() helper which only does the data
      retrieval and ECC correction steps and implement gpmi_ecc_read_page()
      as a wrapper that calls nand_read_page_op()+gpmi_ecc_read_page_data().
      
      This way, gpmi_ecc_read_subpage() can call gpmi_ecc_read_page_data()
      which restores the logic we had before commit 25f815f6 ("mtd: nand:
      force drivers to explicitly send READ/PROG commands").
      
      Fixes: 25f815f6 ("mtd: nand: force drivers to explicitly send READ/PROG commands")
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      Reviewed-by: default avatarMiquel Raynal <miquel.raynal@free-electrons.com>
      Acked-by: default avatarHan Xu <han.xu@nxp.com>
      4c7e95b1
  3. 20 Jan, 2018 2 commits
  4. 19 Jan, 2018 3 commits
  5. 16 Jan, 2018 4 commits
  6. 14 Jan, 2018 3 commits
  7. 12 Jan, 2018 22 commits
  8. 10 Jan, 2018 1 commit
  9. 09 Jan, 2018 1 commit