• Bartlomiej Zolnierkiewicz's avatar
    ide: add warm-plug support for IDE devices (take 2) · f74c9141
    Bartlomiej Zolnierkiewicz authored
    * Add 'struct class ide_port_class' ('ide_port' class) and a 'struct
      device *portdev' ('ide_port' class device) in ide_hwif_t.
    * Register 'ide_port' class in ide_init() and unregister it in
    * Create ->portdev in ide_register_port () and unregister it in
    * Add "delete_devices" class device attribute for unregistering IDE devices
      on a port and "scan" one for probing+registering IDE devices on a port.
    * Add ide_sysfs_register_port() helper for registering "delete_devices"
      and "scan" attributes with ->portdev.  Call it in ide_device_add_all().
    * Document IDE warm-plug support in Documentation/ide/warm-plug-howto.txt.
    * Convert patch from using 'struct class_device' to use 'struct device'.
      (thanks to Kay Sievers for doing it)
    Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
ide.h 41.3 KB