1. 10 Mar, 2016 1 commit
    • Archit Taneja's avatar
      mtd: nand: don't select chip in nand_chip's block_bad op · 9f3e0429
      Archit Taneja authored
      One of the arguments passed to struct nand_chip's block_bad op is
      'getchip', which, if true, is supposed to get and select the nand device,
      and later unselect and release the device.
      
      This op is intended to be replaceable by drivers. The drivers shouldn't
      be responsible for selecting/unselecting chip. Like other ops, the chip
      should already be selected before the block_bad op is called.
      
      Remove the getchip argument from the block_bad op and
      nand_block_checkbad. Move the chip selection to nand_block_isbad, since it
      is the only caller to nand_block_checkbad which requires chip selection.
      
      Modify nand_block_bad (the default function for the op) such that it
      doesn't select the chip.
      
      Remove the getchip argument from the bad_block funcs in cafe_nand,
      diskonchip and docg4 drivers.
      Reviewed-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
      Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
      9f3e0429
  2. 08 Mar, 2016 12 commits
  3. 07 Mar, 2016 9 commits
  4. 05 Mar, 2016 3 commits
  5. 29 Feb, 2016 2 commits
    • David Woodhouse's avatar
      jffs2: Improve post-mount CRC scan efficiency · 5817b9dc
      David Woodhouse authored
      We need to finish doing the CRC checks before we can allow writes to
      happen, and we currently process the inodes in order. This means a call
      to jffs2_get_ino_cache() for each possible inode# up to c->highest_ino.
      
      There may be a lot of lookups which fail, if the inode# space is used
      sparsely. And the inode# space is *often* used sparsely, if a file
      system contains a lot of stuff that was put there in the original
      image, followed by lots of creation and deletion of new files.
      
      Instead of processing them numerically with a lookup each time, just
      walk the hash buckets instead.
      
      [fix locking typo reported by Dan Carpenter]
      Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
      5817b9dc
    • Florian Fainelli's avatar
      mtd: brcmnand: Fix v7.1 register offsets · d267aefc
      Florian Fainelli authored
      The BRCMNAND controller revision 7.1 is almost 100% compatible with the
      previous v6.0 register offset layout, except for the Correctable Error
      Reporting Threshold registers. Fix this by adding another table with the
      correct offsets for CORR_THRESHOLD and CORR_THRESHOLD_EXT.
      
      Fixes: 27c5b17c ("mtd: nand: add NAND driver "library" for Broadcom STB NAND controller")
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
      d267aefc
  6. 24 Feb, 2016 1 commit
  7. 12 Feb, 2016 12 commits