1. 19 11月, 2016 7 次提交
  2. 06 5月, 2016 1 次提交
  3. 19 12月, 2015 2 次提交
  4. 12 12月, 2015 1 次提交
  5. 14 10月, 2015 2 次提交
    • B
      mtd: nand: pass page number to ecc->write_xxx() methods · 45aaeff9
      Boris BREZILLON 提交于
      The ->read_xxx() methods are all passed the page number the NAND controller
      is supposed to read, but ->write_xxx() do not have such a parameter.
      
      This is a problem if we want to properly implement data
      scrambling/randomization in order to mitigate MLC sensibility to repeated
      pattern: to prevent bitflips in adjacent pages in the same block we need
      to avoid repeating the same pattern at the same offset in those pages,
      hence the randomizer/scrambler engine need to be passed the page value
      in order to adapt its seed accordingly.
      
      Moreover, adding the page parameter to the ->write_xxx() methods add some
      consistency to the current API.
      Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      CC: Josh Wu <josh.wu@atmel.com>
      CC: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
      CC: Maxime Ripard <maxime.ripard@free-electrons.com>
      CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      CC: Huang Shijie <shijie.huang@arm.com>
      CC: Stefan Agner <stefan@agner.ch>
      CC: devel@driverdev.osuosl.org
      CC: linux-arm-kernel@lists.infradead.org
      CC: linux-kernel@vger.kernel.org
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      45aaeff9
    • F
      mtd: nand: denali: drop owner assignment · fbe1a8bf
      Frans Klaver 提交于
      Owner is automatically set by mtdcore. Make use of that.
      Signed-off-by: NFrans Klaver <fransklaver@gmail.com>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      fbe1a8bf
  6. 30 9月, 2015 2 次提交
  7. 31 3月, 2015 1 次提交
  8. 12 3月, 2015 1 次提交
  9. 06 2月, 2015 1 次提交
  10. 13 1月, 2015 1 次提交
  11. 20 9月, 2014 3 次提交
  12. 16 9月, 2014 5 次提交
  13. 20 8月, 2014 2 次提交
  14. 15 7月, 2014 1 次提交
  15. 10 5月, 2014 1 次提交
    • B
      mtd: nand: refactor erase_cmd() to return chip status · 49c50b97
      Brian Norris 提交于
      The nand_chip::erase_cmd callback previously served a dual purpose; for
      one, it allowed a per-flash-chip override, so that AG-AND devices could
      use a different erase command than other NAND. These AND devices were
      dropped in commit 14c65786 (mtd: nand:
      remove AG-AND support). On the other hand, some drivers (denali and
      doc-g4) need to use this sort of callback to implement
      controller-specific erase operations.
      
      To make the latter operation easier for some drivers (e.g., ST's new BCH
      NAND driver), it helps if the command dispatch and wait functions can be
      lumped together, rather than called separately.
      
      This patch does two things:
       1. Pull the call to chip->waitfunc() into chip->erase_cmd(), and return
          the status from this callback
       2. Rename erase_cmd() to just erase(), since this callback does a
          little more than just send a command
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Tested-by: NLee Jones <lee.jones@linaro.org>
      49c50b97
  16. 12 1月, 2014 1 次提交
  17. 04 1月, 2014 1 次提交
  18. 28 10月, 2013 2 次提交
  19. 31 8月, 2013 1 次提交
  20. 15 11月, 2012 1 次提交
  21. 07 7月, 2012 1 次提交
    • J
      mtd: nand: teach write_page and write_page_raw return an error code · fdbad98d
      Josh Wu 提交于
      There is an implemention of hardware ECC write page function which may return an
      error indication.
      For instance, using Atmel HW PMECC to write one page into a nand flash, the hardware
      engine will compute the BCH ecc code for this page. so we need read a the
      status register to theck whether the ecc code is generated.
      But we cannot assume the status register always can be ready, for example,
      incorrect hardware configuration or hardware issue, in such case we need
      write_page() to return a error code.
      
      Since the definition of 'write_page' function in struct nand_ecc_ctrl is 'void'.
      So this patch will:
        1. add return 'int' value for 'write_page' function.
        2. to be consitent, add return 'int' value for 'write_page_raw' fuctions too.
        3. add code to test the return value, and if negative, indicate an
        error happend when write page with ECC.
        4. fix the compile warning in all impacted nand flash driver.
      
      Note: I couldn't compile-test all of these easily, as some had ARCH dependencies.
      Signed-off-by: NJosh Wu <josh.wu@atmel.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      fdbad98d
  22. 14 5月, 2012 2 次提交