1. 16 9月, 2009 1 次提交
  2. 03 8月, 2009 2 次提交
  3. 06 6月, 2009 6 次提交
  4. 02 6月, 2009 1 次提交
    • D
      UBI: add notification API · 0e0ee1cc
      Dmitry Pervushin 提交于
      UBI volume notifications are intended to create the API to get clients
      notified about volume creation/deletion, renaming and re-sizing. A
      client can subscribe to these notifications using 'ubi_volume_register()'
      and cancel the subscription using 'ubi_volume_unregister()'. When UBI
      volumes change, a blocking notifier is called. Clients also can request
      "added" events on all volumes that existed before client subscribed
      to the notifications.
      
      If we use notifications instead of calling functions like 'ubi_gluebi_xxx()',
      we can make the MTD emulation layer to be more flexible: build it as a
      separate module and load/unload it on demand.
      
      [Artem: many cleanups, rework locking, add "updated" event, provide
       device/volume info in notifiers]
      Signed-off-by: NDmitry Pervushin <dpervushin@embeddedalley.com>
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      0e0ee1cc
  5. 26 5月, 2009 1 次提交
  6. 06 4月, 2009 1 次提交
  7. 04 4月, 2009 1 次提交
    • D
      [MTD] driver model updates · 1f24b5a8
      David Brownell 提交于
      Update driver model support in the MTD framework, so it fits
      better into the current udev-based hotplug framework:
      
       - Each mtd_info now has a device node.  MTD drivers should set
         the dev.parent field to point to the physical device, before
         setting up partitions or otherwise declaring MTDs.
      
       - Those device nodes always map to /sys/class/mtdX device nodes,
         which no longer depend on MTD_CHARDEV.
      
       - Those mtdX sysfs nodes have a "starter set" of attributes;
         it's not yet sufficient to replace /proc/mtd.
      
       - Enabling MTD_CHARDEV provides /sys/class/mtdXro/ nodes and the
         /sys/class/mtd*/dev attributes (for udev, mdev, etc).
      
       - Include a MODULE_ALIAS_CHARDEV_MAJOR macro.  It'll work with
         udev creating the /dev/mtd* nodes, not just a static rootfs.
      
      So the sysfs structure is pretty much what you'd expect, except
      that readonly chardev nodes are a bit quirky.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      1f24b5a8
  8. 24 3月, 2009 1 次提交
  9. 20 3月, 2009 1 次提交
  10. 09 1月, 2009 1 次提交
  11. 07 1月, 2009 1 次提交
  12. 06 1月, 2009 1 次提交
  13. 05 1月, 2009 4 次提交
  14. 23 12月, 2008 1 次提交
  15. 11 12月, 2008 1 次提交
    • R
      [MTD] [NAND] remove excess kernel-doc notation · d3af0f04
      Randy Dunlap 提交于
      Delete extra kernel-doc notation for struct fields and function
      parameters that don't exist:
      
      Warning(include/linux/mtd/nand.h:428): Excess struct/union/enum/typedef member 'wq' description in 'nand_chip'
      Warning(include/linux/mtd/nand.h:428): Excess struct/union/enum/typedef member 'datbuf' description in 'nand_chip'
      Warning(include/linux/mtd/nand.h:428): Excess struct/union/enum/typedef member 'oobbuf' description in 'nand_chip'
      Warning(include/linux/mtd/nand.h:428): Excess struct/union/enum/typedef member 'oobdirty' description in 'nand_chip'
      Warning(include/linux/mtd/nand.h:428): Excess struct/union/enum/typedef member 'data_poi' description in 'nand_chip'
      Warning(drivers/mtd/nand/nand_base.c:2527): Excess function parameter 'maxchips' description in 'nand_scan_tail'
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      d3af0f04
  16. 10 12月, 2008 3 次提交
  17. 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
  18. 30 10月, 2008 1 次提交
  19. 18 10月, 2008 1 次提交
  20. 14 10月, 2008 1 次提交
  21. 13 10月, 2008 1 次提交
  22. 09 10月, 2008 1 次提交
  23. 21 8月, 2008 1 次提交
  24. 12 8月, 2008 1 次提交
  25. 07 8月, 2008 1 次提交
  26. 06 8月, 2008 2 次提交
    • A
      [MTD] [NOR] cfi_cmdset_0001: Timeouts for erase, write and unlock operations · e93cafe4
      Anders Grafström 提交于
      Timeouts are currently given by the typical operation time times 8.
      It works in the general well-behaved case but not when an erase block is
      failing. For erase operations, it seems that a failing erase block will
      keep the device state machine in erasing state until the vendor
      specified maximum timeout period has passed. By this time the driver
      would have long since timed out, left erasing state and attempted
      further operations which all fail. This patch implements timeouts using
      values from the CFI Query structure when available.
      The patch also sets a longer timeout for locking operations. The current
      value used for locking/unlocking given by 1000000/HZ microseconds is too
      short for devices like J3 and J5 Strataflash which have a typical clear
      lock-bits time of 0.5 seconds.
      Signed-off-by: NAnders Grafström <grfstrm@users.sourceforge.net>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      e93cafe4
    • A
      [MTD] [NOR] Add qry_mode_on()/qry_omde_off() to deal with odd chips · 2e489e07
      Alexey Korolev 提交于
      There are some CFI chips which require non standard procedures to get 
      into QRY mode. The possible way to support them would be trying 
      different modes till QRY will be read. This patch introduce two new 
      functions qry_mode_on qry_mode_off. qry_mode_on tries different commands 
      in order switch chip into QRY mode.
      
      So if we have one more "odd" chip - we just could add several lines to 
      qry_mode_on. Also using these functions remove unnecessary code 
      duplicaton in porbe procedure.
      
      Currently there are two "odd" cases
      1. Some old intel chips which require 0xFF before 0x98
      2. ST M29DW chip which requires 0x98 to be sent at 0x555 (according to
      CFI should be 0x55)
      
      This patch is partialy based on the patch from Uwe
      (see "[PATCH 2/4] [RFC][MTD] cfi_probe: remove Intel chip workaround"
      thread )
      Signed-off-by: NAlexey Korolev <akorolev@infradead.org>
      Signed-off-by: NAlexander Belyakov <abelyako@gmail.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      2e489e07
  27. 02 8月, 2008 1 次提交
  28. 30 7月, 2008 1 次提交