1. 05 10月, 2015 4 次提交
  2. 03 10月, 2015 9 次提交
  3. 02 10月, 2015 1 次提交
  4. 01 10月, 2015 8 次提交
  5. 30 9月, 2015 12 次提交
  6. 29 9月, 2015 6 次提交
    • F
      jffs2: remove unneeded kfree · 16c863bb
      fangwei 提交于
      c->oobbuf hasn't been kmalloced in jffs2_dataflash_setup, so
      there is no need to free it.
      Signed-off-by: NWei Fang <fangwei1@huawei.com>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      16c863bb
    • B
      mtd: cmdlinepart: convert printk() to pr_*() · ecb43e0a
      Brian Norris 提交于
      This driver uses some custom macros for printing. Let's use the standard
      pr_fmt()/pr_{err,warn}().
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      ecb43e0a
    • B
      mtd: cmdlinepart: allow small partitions · d855d23b
      Brian Norris 提交于
      I'm not sure why we have a PAGE_SIZE restriction on this partition
      parser.
      
      If we really wanted the restriction, I would expect it to be a
      restriction for *all* parsers, so we'd move it to the MTD core
      
      At any rate, while small partitions may not be useful (they'll often be
      smaller than the eraseblock size and therefore can only be used
      read-only), they still have use as a read-only partition.
      
      This restriction is especially annoying because it aborts the entire
      MTD's cmdline parsing, leaving it unpartitioned.
      
      So, let's kill the restriction and only check for zero-sized partitions,
      which I expect we don't want to allow.
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      d855d23b
    • J
      mtd: spi-nor: s25fl008k and s25fl016k supports dual/quad mode · adf508c3
      Joachim Eastwood 提交于
      s25fl016k can be found on Embedded Artists' LPC4357 Developer's Kit
      where is used in quad mode by the LPC4357 SPIFI controller.
      Signed-off-by: NJoachim Eastwood <manabian@gmail.com>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      adf508c3
    • J
      mtd: Destroy mtd_idr on module_exit · 35667b99
      Johannes Thumshirn 提交于
      Destroy mtd_idr on module_exit, reclaiming the allocated memory.
      
      This was detected by the following semantic patch (written by Luis Rodriguez
      <mcgrof@suse.com>)
      <SmPL>
      @ defines_module_init @
      declarer name module_init, module_exit;
      declarer name DEFINE_IDR;
      identifier init;
      @@
      
      module_init(init);
      
      @ defines_module_exit @
      identifier exit;
      @@
      
      module_exit(exit);
      
      @ declares_idr depends on defines_module_init && defines_module_exit @
      identifier idr;
      @@
      
      DEFINE_IDR(idr);
      
      @ on_exit_calls_destroy depends on declares_idr && defines_module_exit @
      identifier declares_idr.idr, defines_module_exit.exit;
      @@
      
      exit(void)
      {
       ...
        idr_destroy(&idr);
        ...
      }
      
      @ missing_module_idr_destroy depends on declares_idr && defines_module_exit && !on_exit_calls_destroy @
      identifier declares_idr.idr, defines_module_exit.exit;
      @@
      
      exit(void)
      {
       ...
       +idr_destroy(&idr);
      }
      </SmPL>
      Signed-off-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      35667b99
    • R
      mtd: nand: pxa3xx-nand: prevent DFI bus lockup on removal · e971affa
      Robert Jarzmik 提交于
      After the conversion of pxa architecture to common clock framework, the
      NAND clock can be disabled on driver exit.
      
      In this case, it happens that if the driver used the NAND and set the
      DFI arbitration bit, the next access to a static memory controller area,
      such as an ethernet card, will stall the system bus, and the core will
      be stalled forever.
      
      This is especially true on pxa31x SoCs, where the NDCR was augmented
      with a new bit to prevent this lockups by giving full ownership of the
      DFI arbiter to the SMC, in change SCr#6.
      
      Fix this by clearing the DFI arbritration bit in driver exit. This
      effectively prevents a lockup on zylonite when removing pxa3xx-nand
      module, and using ethernet afterwards.
      Signed-off-by: NRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      e971affa