1. 04 4月, 2009 3 次提交
    • D
      [MTD] support driver model updates · 87f39f04
      David Brownell 提交于
      Follow-on patch to the previous driver model patch for the MTD
      framework.  This one makes various MTD drivers connect to the
      driver model tree, so /sys/devices/virtual/mtd/* nodes are no
      longer present ... mostly drivers used on boards I have handy.
      
      Based on a patch from Kay Sievers.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      87f39f04
    • K
      [MTD] driver model updates (part 2) · 694bb7fc
      Kevin Cernekee 提交于
      1) Add more sysfs attributes: flags, size, erasesize, writesize,
         oobsize, numeraseregions, name
      
      2) Move core_initcall() code into init_mtd().  The original approach
         does not work if CONFIG_MTD=m .
      
      3) Add device_unregister() in del_mtd_device() so that devices get
         removed from sysfs as each driver is unloaded.
      Signed-off-by: NKevin Cernekee <kpc.mtd@gmail.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      694bb7fc
    • 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
  2. 03 4月, 2009 3 次提交
  3. 25 3月, 2009 1 次提交
  4. 24 3月, 2009 7 次提交
  5. 23 3月, 2009 2 次提交
  6. 21 3月, 2009 14 次提交
  7. 20 3月, 2009 10 次提交