1. 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
  2. 30 4月, 2014 1 次提交
  3. 16 4月, 2014 5 次提交
  4. 05 4月, 2014 1 次提交
    • R
      Fix index regression in nand_read_subpage · 4a4163ca
      Ron 提交于
      Commit 7351d3a5 added an index variable
      as part of fixing checkpatch warnings, presumably as a tool to make some
      long lines shorter, however it only set that index in the case of there
      being no gaps in eccpos for the fragment being read.  Which means the
      later step of filling ecccode from oob_poi will use the wrong indexing
      into eccpos in that case.
      
      This patch restores the behaviour that existed prior to that change.
      Signed-off-by: NRon Lee <ron@debian.org>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      4a4163ca
  5. 01 4月, 2014 1 次提交
  6. 26 3月, 2014 4 次提交
  7. 20 3月, 2014 13 次提交
  8. 11 3月, 2014 14 次提交