1. 05 4月, 2013 9 次提交
  2. 14 3月, 2013 1 次提交
  3. 04 2月, 2013 1 次提交
  4. 19 1月, 2013 1 次提交
  5. 13 12月, 2012 1 次提交
  6. 03 12月, 2012 6 次提交
  7. 18 11月, 2012 2 次提交
  8. 16 11月, 2012 1 次提交
    • M
      mtd: nand_wait: warn if the nand is busy on exit · f251b8df
      Matthieu CASTET 提交于
      This patch allow to detect buggy driver/hardware with
      bad RnB (dev_ready) management or when timeout occurs in polling mode.
      
      This works when dev_ready is set or not set.
      There are 2 methods to wait for an erase/program command completion:
      
      1. Wait until nand RnB pin goes high (that's what chip->dev_ready usually does)
      2. Poll the device: send a status (0x70) command and read status byte in a loop
         until bit NAND_STATUS_READY is set
      
      In all cases, you should send a status command after completion, to check if
      the operation was successful. And if the operation completed, the status should
      have bit NAND_STATUS_READY set.
      Signed-off-by: NMatthieu CASTET <matthieu.castet@parrot.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      f251b8df
  9. 15 11月, 2012 3 次提交
  10. 10 10月, 2012 1 次提交
    • B
      mtd: nand: fix Samsung SLC NAND identification regression · bc86cf7a
      Brian Norris 提交于
      A combination of the following two commits caused a regression in 3.7-rc1
      when identifying some Samsung NAND, so that some previously working NAND
      were no longer detected properly:
      
          commit e3b88bd6
          mtd: nand: add generic READ ID length calculation functions
      
          commit e2d3a35e
          mtd: nand: detect Samsung K9GBG08U0A, K9GAG08U0F ID
      
      Particularly, a regression was seen on Samsung K9F2G08U0B, with the
      following full 8-byte READ ID string:
      
          ec da 10 95 44 00 ec da
      
      The basic problem is that Samsung manufactures both SLC and MLC NAND
      that use a non-standard decoding table for deriving information from
      their IDs. I have heuristically determined that all the chips that use
      the new table have ID strings which wrap around after the 6th byte.
      Unfortunately, I overlooked the fact that some older Samsung SLC (which
      use a different decoding table) have "5 byte ID strings" which also wrap
      around after the 6th byte.
      
      This patch re-introduces a distinction between these old and new Samsung
      NAND by checking that the 6th byte is non-zero, allowing both old and
      new Samsung NAND to be detected properly.
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Tested-by: NBrian Norris <computersforpeace@gmail.com>
      Reported-by: NMarek Vasut <marex@denx.de>
      Tested-by: NMarek Vasut <marex@denx.de>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      bc86cf7a
  11. 29 9月, 2012 12 次提交
  12. 17 7月, 2012 1 次提交
  13. 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