Skip to content

ide: warm-plug support for IDE devices and other goodies

Bartlomiej Zolnierkiewicz linux-ide linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18ide-generic: set hwif->chipsetdrivers/ide/ide-generic.c+3 -10 replies
2/18ide: fix ide_find_port()drivers/ide/Makefile drivers/ide/ide.c+2 -21 reply
3/18ide: use ide_find_port() instead of ide_deprecated_find_port()drivers/ide/arm/bast-ide.c drivers/ide/arm/palm_bk3710.c drivers/ide/ide.c +3 more+5 -310 replies
4/18ide-acpi: add missing drive->acpidata zeroingdrivers/ide/ide-acpi.c+2 -00 replies
5/18ide: factor out cable detection from ide_init_port()drivers/ide/ide-probe.c+4 -01 reply
6/18ide: factor out code unregistering devices from ide_unregister()drivers/ide/ide.c+19 -111 reply
7/18ide: factor out devices init from ide_init_port_data()drivers/ide/ide.c+17 -61 reply
8/18ide: move ide_port_setup_devices() call to ide_device_add_all()drivers/ide/ide-probe.c+4 -21 reply
9/18ide: rework PowerMac media-bay supportdrivers/ide/ide-probe.c drivers/ide/ide.c drivers/ide/ppc/pmac.c +3 more+48 -222 replies
10/18ide: add warm-plug support for IDE devicesDocumentation/ide/warm-plug-howto.txt drivers/ide/ide-probe.c drivers/ide/ide.c +1 more+109 -30 replies
11/18ide-generic: add ide_generic class and attribute for adding new interfacesdrivers/ide/ide-generic.c+77 -10 replies
12/18ide: remove needless CONFIG_BLK_DEV_HD hack from init_hwif()drivers/ide/ide-probe.c+0 -70 replies
13/18ide: remove CONFIG_BLK_DEV_HD_IDE config optiondrivers/ide/Kconfig drivers/ide/ide.c+5 -240 replies
14/18ide: remove obsoleted "idex=base[,ctl[,irq]]" kernel parametersDocumentation/ide.txt drivers/ide/ide-generic.c drivers/ide/ide-probe.c +5 more+9 -680 replies
15/18ide: remove broken/dangerous HDIO_[UNREGISTER,SCAN]_HWIF ioctlsblock/compat_ioctl.c drivers/ide/arm/bast-ide.c drivers/ide/arm/rapide.c +9 more+17 -2084 replies
16/18ide: remove ->hold field from ide_hwif_tdrivers/ide/mips/au1xxx-ide.c drivers/ide/ppc/pmac.c include/linux/ide.h+0 -50 replies
17/18ide: remove init_hwif_default()drivers/ide/ide.c+9 -160 replies
18/18ide: remove ide_init_hwif_ports()drivers/ide/ide.c include/linux/ide.h+9 -340 replies

Reviews trailers per patch

6 of 18 patches have a Reviewed-by or Acked-by.

PatchSergei Shtylyov
1/18
2/18A-b
3/18
4/18
5/18A-b
6/18A-b
7/18A-b
8/18A-b
9/18
10/18
11/18
12/18
13/18
14/18
15/18A-b
16/18
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/18] ide: warm-plug support for IDE devices and other goodies

- couple of fixes and preparatory patches

- rework of PowerMac media-bay support ([un]register IDE devices instead of [un]registering IDE interface) [ it is the main reason for spamming PPC ML ]

- IDE warm-plug support (though it is still experimental it should work fine, unlike the older method), to warm-plug devices on a port 'idex':

  # echo -n "1" > /sys/class/ide_port/idex/delete_devices

unplug old device(s) and plug new device(s)

  # echo -n "1" > /sys/class/ide_port/idex/scan

done

- ability to add new interfaces for ide-generic host driver through /sys/class/ide_generic/add, i.e.

echo -n "0x168:0x36e:10" > /sys/class/ide_generic/add

- because of the above changes some obsoleted/broken code can be removed (thus the total effect of the patch series is -100 LOC)

diffstat:

 Documentation/ide.txt                 |   31 --
 Documentation/ide/warm-plug-howto.txt |   13 +
 block/compat_ioctl.c                  |    1 
 drivers/ide/Kconfig                   |   25 --
 drivers/ide/Makefile                  |    2 
 drivers/ide/arm/bast-ide.c            |    4 
 drivers/ide/arm/palm_bk3710.c         |    2 
 drivers/ide/arm/rapide.c              |    2 
 drivers/ide/ide-acpi.c                |    2 
 drivers/ide/ide-generic.c             |   85 +++++++
 drivers/ide/ide-pnp.c                 |    2 
 drivers/ide/ide-probe.c               |  108 ++++++++-
 drivers/ide/ide-proc.c                |    3 
 drivers/ide/ide.c                     |  386 ++++++++--------------------------
 drivers/ide/legacy/ide-cs.c           |    6 
 drivers/ide/legacy/ide_platform.c     |    2 
 drivers/ide/mips/au1xxx-ide.c         |    5 
 drivers/ide/pci/cmd640.c              |    2 
 drivers/ide/pci/delkin_cb.c           |    6 
 drivers/ide/pci/scc_pata.c            |    2 
 drivers/ide/ppc/pmac.c                |    4 
 drivers/ide/setup-pci.c               |   11 
 drivers/macintosh/mediabay.c          |   17 -
 include/asm-powerpc/mediabay.h        |    4 
 include/linux/hdreg.h                 |    4 
 include/linux/ide.h                   |   51 ----
 26 files changed, 339 insertions(+), 441 deletions(-)