1. 16 3月, 2018 4 次提交
  2. 12 2月, 2018 3 次提交
  3. 25 1月, 2018 2 次提交
    • M
      mtd: nand: sunxi: Fix ECC strength choice · f4c6cd1a
      Miquel Raynal 提交于
      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: NBoris Brezillon <boris.brezillon@free-electrons.com>
      Signed-off-by: NMiquel Raynal <miquel.raynal@free-electrons.com>
      Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      f4c6cd1a
    • B
      mtd: nand: gpmi: Fix subpage reads · 4c7e95b1
      Boris Brezillon 提交于
      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: NBoris Brezillon <boris.brezillon@free-electrons.com>
      Reviewed-by: NMiquel Raynal <miquel.raynal@free-electrons.com>
      Acked-by: NHan Xu <han.xu@nxp.com>
      4c7e95b1
  4. 20 1月, 2018 2 次提交
  5. 19 1月, 2018 3 次提交
  6. 18 1月, 2018 9 次提交
  7. 16 1月, 2018 4 次提交
  8. 14 1月, 2018 2 次提交
  9. 12 1月, 2018 11 次提交