1. 09 8月, 2010 1 次提交
  2. 06 8月, 2010 1 次提交
  3. 04 8月, 2010 1 次提交
  4. 20 5月, 2010 2 次提交
  5. 14 5月, 2010 5 次提交
  6. 10 5月, 2010 2 次提交
  7. 27 2月, 2010 1 次提交
  8. 25 2月, 2010 1 次提交
  9. 10 12月, 2009 1 次提交
  10. 30 11月, 2009 1 次提交
    • J
      mtd: CFI cmdset_0002: enable erase-suspend-program · 2695eab9
      Joakim Tjernlund 提交于
      Erase-suspend for writing is required to avoid blocking applications
      that wish to write some data (to a NOR block other than the one being
      erased). Particularly, it solves some huge delays that an application
      (which writes to a UBIFS) will experience if UBI attaches to empty NOR
      flash. In this case the UBI background thread will erase a lot of blocks
      and the application can be blocked for minutes because of the "MTD/CFI
      chip lock".
      
      This feature has been disabled for years. Maybe this was because the old
      code turned it on for erase-suspend read-only chips also
      (cfip->EraseSuspend & 0x1). This is wrong and corrected now.
      
      This patch was tweaked by Norbert van Bolhuis.
      Signed-off-by: NNorbert van Bolhuis <nvbolhuis@aimvalley.nl>
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      2695eab9
  11. 20 9月, 2009 1 次提交
  12. 06 4月, 2009 1 次提交
  13. 09 1月, 2009 1 次提交
  14. 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
  15. 05 11月, 2008 1 次提交
    • E
      [MTD] [NOR] Fix cfi_send_gen_cmd handling of x16 devices in x8 mode (v4) · 467622ef
      Eric W. Biederman 提交于
      For "unlock" cycles to 16bit devices in 8bit compatibility mode we need
      to use the byte addresses 0xaaa and 0x555. These effectively match
      the word address 0x555 and 0x2aa, except the latter has its low bit set.
      
      Most chips don't care about the value of the 'A-1' pin in x8 mode,
      but some -- like the ST M29W320D -- do. So we need to be careful to
      set it where appropriate.
      
      cfi_send_gen_cmd is only ever passed addresses where the low byte
      is 0x00, 0x55 or 0xaa. Of those, only addresses ending 0xaa are
      affected by this patch, by masking in the extra low bit when the device
      is known to be in compatibility mode.
      
      [dwmw2: Do it only when (cmd_ofs & 0xff) == 0xaa]
      v4: Fix  stupid typo in cfi_build_cmd_addr that failed to compile
          I'm writing this patch way to late at night.
      v3: Bring all of the work back into cfi_build_cmd_addr
          including calling of map_bankwidth(map) and cfi_interleave(cfi)
          So every caller doesn't need to.
      v2: Only modified the address if we our device_type is larger than our
          bus width.
      
      Cc: stable@kernel.org
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      467622ef
  16. 18 10月, 2008 2 次提交
    • H
      [MTD] [NOR] AT49BV6416 has swapped erase regions · be8f78b8
      Haavard Skinnemoen 提交于
      The CFI information read from AT49BV6416 lists the erase regions in the
      wrong order, causing problems when trying to erase or update the first
      or last 64KiB block.
      
      Work around this by inverting the "top boot" flag, which will
      effectively reverse the order of the erase regions.
      
      This chip is obsolete, but it's used in some existing designs.
      Signed-off-by: NHåvard Skinnemoen <haavard.skinnemoen@atmel.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      be8f78b8
    • C
      [MTD] cfi_cmdset_0002.c: Add Macronix CFI V1.0 TopBottom detection · 87e92c06
      Christopher Moore 提交于
      This patch adds TopBottom detection for most Macronix chips with CFI V1.0.
      
      The main purpose of this patch is to add detection of the MX29LV400C B
      used on the LaCie Ethernet Disk mini V2 NAS.
      
      It detects the following parts correctly:-
      MX28F640C3B T
      MX29LV002C  B
      MX29LV002NC B
      MX29LV004C  T
      MX29LV400C  T/B
      MX29LV800C  T/B
      MX29LV160C  T/B
      MX29SL800C  T/B
      MX29SL802C  T/B
      
      It detects the following uniform part as bottom but it should work
      correctly:-
      MX29LV040C
      
      For T parts it causes the erase block table to be reversed correctly.
      For other parts it avoids the bogus "Assuming top" message.
      
      It does not detect the following correctly:-
      MX28F640C3B B
      MX29LV002C  T
      MX29LV002NC T
      MX29LV004C  B
      MX29SL400C  T/B
      MX29SL402C  T/B
      
      If desired I could supply a more complicated patch to handle these as
      well.
      
      Only the MX29LV400C B has been physically tested; others were checked
      against their data sheets.
      Signed-off-by: NChristopher Moore <moore@free.fr>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      87e92c06
  17. 05 6月, 2008 1 次提交
  18. 23 4月, 2008 2 次提交
  19. 09 4月, 2008 1 次提交
  20. 03 2月, 2008 1 次提交
  21. 11 1月, 2008 1 次提交
  22. 31 10月, 2007 1 次提交
  23. 29 6月, 2007 1 次提交
  24. 08 3月, 2007 1 次提交
  25. 29 11月, 2006 1 次提交
  26. 21 10月, 2006 1 次提交
  27. 22 9月, 2006 1 次提交
  28. 16 9月, 2006 1 次提交
  29. 17 8月, 2006 2 次提交
  30. 01 7月, 2006 1 次提交
  31. 14 6月, 2006 1 次提交