1. 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
  2. 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
  3. 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
  4. 05 6月, 2008 1 次提交
  5. 23 4月, 2008 2 次提交
  6. 09 4月, 2008 1 次提交
  7. 03 2月, 2008 1 次提交
  8. 11 1月, 2008 1 次提交
  9. 31 10月, 2007 1 次提交
  10. 29 6月, 2007 1 次提交
  11. 08 3月, 2007 1 次提交
  12. 29 11月, 2006 1 次提交
  13. 21 10月, 2006 1 次提交
  14. 22 9月, 2006 1 次提交
  15. 16 9月, 2006 1 次提交
  16. 17 8月, 2006 2 次提交
  17. 01 7月, 2006 1 次提交
  18. 14 6月, 2006 1 次提交
  19. 09 5月, 2006 2 次提交
  20. 07 11月, 2005 3 次提交
  21. 04 8月, 2005 1 次提交
    • T
      [MTD] CHIPS: Recognize Spansion CFI 1.4 chips · d88f977b
      Todd Poynor 提交于
      Modify Amd/Fujitsu CFI NOR flash primary vendor extension table revision
      check to recognize version 1.4.  Verified the existing driver can
      handle version 1.4 chips without additional info from 1.4 extended table.
      
      Move the primary vendor extension table revision check from common file
      to the 3 CFI chip driver files, since the data structures and revisions
      handled by those data structures are specific to the chip driver.
      
      Modify the error message printed when the revision is unknown to be a
      KERN_ERR instead of WARNING since this will cause mtd to ignore the chip.
      Signed-off-by: NTodd Poynor <tpoynor@mvista.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      d88f977b
  22. 07 7月, 2005 1 次提交
  23. 05 7月, 2005 1 次提交
  24. 29 6月, 2005 1 次提交
  25. 24 5月, 2005 1 次提交
  26. 23 5月, 2005 1 次提交
  27. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4