1. 09 12月, 2015 1 次提交
  2. 21 11月, 2015 1 次提交
  3. 12 11月, 2015 1 次提交
    • B
      mtd: nand: drop unnecessary partition parser data · a61ae81a
      Brian Norris 提交于
      All of these drivers set up a parser data struct just to communicate DT
      partition data. This field has been deprecated and is instead supported
      by telling nand_scan_ident() about the 'flash_node'.
      
      This patch:
       * sets chip->flash_node for those drivers that didn't already (but used
         OF partitioning)
       * drops the parser data
       * switches to the simpler mtd_device_register() where possible, now
         that we've eliminated one of the auxiliary parameters
      
      Now that we've assigned chip->flash_node for these drivers, we can
      probably rely on nand_dt_init() to do more of the DT parsing for us, but
      for now, I don't want to fiddle with each of these drivers. The parsing
      is done in duplicate for now on some drivers. I don't think this should
      break things. (Famous last words.)
      
      (Rolled in some changes by Boris Brezillon)
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Reviewed-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      a61ae81a
  4. 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: atmel_nand: show parent device in sysfs · 03c287d2
      Frans Klaver 提交于
      Fix a bug where parent device symlinks aren't shown in sysfs.
      
      While at it, make use of the default owner value set by mtdcore.
      Signed-off-by: NFrans Klaver <fransklaver@gmail.com>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      03c287d2
  5. 06 4月, 2015 2 次提交
  6. 12 3月, 2015 1 次提交
  7. 03 3月, 2015 1 次提交
  8. 21 1月, 2015 2 次提交
  9. 26 11月, 2014 1 次提交
  10. 06 11月, 2014 1 次提交
  11. 20 10月, 2014 1 次提交
  12. 18 9月, 2014 2 次提交
  13. 17 9月, 2014 1 次提交
  14. 20 8月, 2014 4 次提交
  15. 22 7月, 2014 4 次提交
  16. 11 3月, 2014 3 次提交
  17. 08 1月, 2014 1 次提交
  18. 04 1月, 2014 1 次提交
  19. 15 11月, 2013 1 次提交
  20. 08 11月, 2013 1 次提交
    • J
      mtd: atmel_nand: fix bug driver will in a dead lock if no nand detected · a749d13a
      Josh Wu 提交于
      In the atmel driver probe function, the code shows like following:
        atmel_nand_probe(...) {
              ...
      
        err_nand_ioremap:
              platform_driver_unregister(&atmel_nand_nfc_driver);
              return res;
        }
      
      If no nand flash detected, the driver probe function will goto
      err_nand_ioremap label.
      Then platform_driver_unregister() will be called. It will get the
      lock of atmel_nand device since it is parent of nfc_device. The
      problem is the lock is already hold by atmel_nand_probe itself.
      So system will be in a dead lock.
      
      This patch just simply removed to platform_driver_unregister() call.
      When atmel_nand driver is quit the platform_driver_unregister() will
      be called in atmel_nand_remove().
      
      [Brian: the NAND platform probe really has no business
       registering/unregistering another driver; this fixes the deadlock, but
       we should follow up the likely racy behavior here with a better
       architecture]
      Signed-off-by: NJosh Wu <josh.wu@atmel.com>
      Cc: <stable@vger.kernel.org> # 3.12
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      a749d13a
  21. 28 10月, 2013 3 次提交
  22. 27 9月, 2013 1 次提交
  23. 31 8月, 2013 4 次提交