1. 09 8月, 2010 1 次提交
  2. 27 2月, 2010 1 次提交
    • M
      mtd: blktrans: Hotplug fixes · 048d8719
      Maxim Levitsky 提交于
      * Add locking where it was missing.
      
      * Don't do a get_mtd_device in blktrans_open because it would lead to a
        deadlock; instead do that in add_mtd_blktrans_dev.
      
      * Only free the mtd_blktrans_dev structure when the last user exits.
      
      * Flush request queue on device removal.
      
      * Track users, and call tr->release in del_mtd_blktrans_dev
        Due to that ->open and release aren't called more that once.
      
      Now it is safe to call del_mtd_blktrans_dev while the device is still in use.
      Signed-off-by: NMaxim Levitsky <maximlevitsky@gmail.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      048d8719
  3. 10 12月, 2008 1 次提交
    • A
      [MTD] update internal API to support 64-bit device size · 69423d99
      Adrian Hunter 提交于
      MTD internal API presently uses 32-bit values to represent
      device size.  This patch updates them to 64-bits but leaves
      the external API unchanged.  Extending the external API
      is a separate issue for several reasons.  First, no one
      needs it at the moment.  Secondly, whether the implementation
      is done with IOCTLs, sysfs or both is still debated.  Thirdly
      external API changes require the internal API to be accepted
      first.
      
      Note that although the MTD API will be able to support 64-bit
      device sizes, existing drivers do not and are not required
      to do so, although NAND base has been updated.
      
      In general, changing from 32-bit to 64-bit values cause little
      or no changes to the majority of the code with the following
      exceptions:
          	- printk message formats
          	- division and modulus of 64-bit values
          	- NAND base support
      	- 32-bit local variables used by mtdpart and mtdconcat
      	- naughtily assuming one structure maps to another
      	in MEMERASE ioctl
      Signed-off-by: NAdrian Hunter <ext-adrian.hunter@nokia.com>
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      69423d99
  4. 03 8月, 2008 1 次提交
  5. 11 12月, 2006 1 次提交
    • D
      [MTD] Fix ssfdc blksize typo · 76ab40e4
      David Woodhouse 提交于
      I will not commit even trivial and obvious one-line fixes without building.
      I will not commit even trivial and obvious one-line fixes without building.
      I will not commit even trivial and obvious one-line fixes without building.
      I will not commit even trivial and obvious one-line fixes without building.
      Only clever people can get away with that.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      76ab40e4
  6. 10 12月, 2006 1 次提交
  7. 29 11月, 2006 1 次提交
    • V
      [MTD] [NAND] remove len/ooblen confusion. · 7014568b
      Vitaly Wool 提交于
      As was discussed between Ricard Wanderlöf, David Woodhouse, Artem 
      Bityutskiy and me, the current API for reading/writing OOB is confusing. 
      
      The thing that introduces confusion is the need to specify ops.len 
      together with ops.ooblen for reads/writes that concern only OOB not data 
      area. So, ops.len is overloaded: when ops.datbuf != NULL it serves to 
      specify the length of the data read, and when ops.datbuf == NULL, it 
      serves to specify the full OOB read length.
      
      The patch inlined below is the slightly updated version of the previous 
      patch serving the same purpose, but with the new Artem's comments taken 
      into account.
      
      Artem, BTW, thanks a lot for your valuable input!
      Signed-off-by: NVitaly Wool <vwool@ru.mvista.com>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      7014568b
  8. 23 9月, 2006 2 次提交
  9. 22 9月, 2006 1 次提交