20.03.2012 10:50, JA Magallón kirjoitti: > Hi all... > > I have a queston about an issue that should be decided by the 'thinkin > minds' in the distro, that probably have have wider sight than me... > > I have some boxes with ide disks, that long tine ago were driven by > the libata subsystem, as the pure PATA susbsytem is being slowly > deprecated. Perhaps the kernel driver loading priorities have changed, > perhaps before IDE was not builtin into kernel. > But now, to get my IDE drove again by libata, I have to blacklist > generic-ide and company. > So I had to put a file ide.conf into modules.d like: > > blacklist ide-generic > blacklist ide-pci-generic > blacklist piix > > so ata_piix drives my ICH5 again. > > I think it is desirable, libata works much better than old IDE driver, > all your drives are sdX, instead of mixing sdX for SATA and hdX for PATA, > etc... > > Would it be desirable to have an ide-blacklist.conf file just to go > migrating all working-ok-with-libata controllers to libata, and only > leave pure PATA drivers for non supported oldies ?
I'm not sure how it worked previously (hack in mkinitrd, or luck?), but if we don't want to disable the IDE drivers completely, attached is a kernel patch that makes modprobe load ATA drivers before IDE drivers. Thomas? -- Anssi Hannula
>From 9f04e51293b130474504216a477bb2a73cbf59e1 Mon Sep 17 00:00:00 2001 From: Anssi Hannula <[email protected]> Date: Thu, 22 Mar 2012 22:29:11 +0200 Subject: [PATCH] ata: prefer ata drivers over ide drivers when both are built Currently the old IDE drivers are preferred over ATA drivers when both are built, since ide/ is listed first in drivers/Makefile and therefore the IDE drivers end up before ATA drivers in modules.order which is used by depmod/modprobe for module ordering. Change it so that ATA drivers are preferred over IDE driver by moving the ide/ entry under ata/ in drivers/Makefile. Signed-off-by: Anssi Hannula <[email protected]> --- drivers/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/Makefile b/drivers/Makefile index 932e8bf..e8df3d0 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -47,9 +47,9 @@ obj-$(CONFIG_PARPORT) += parport/ obj-y += base/ block/ misc/ mfd/ nfc/ obj-$(CONFIG_NUBUS) += nubus/ obj-y += macintosh/ -obj-$(CONFIG_IDE) += ide/ obj-$(CONFIG_SCSI) += scsi/ obj-$(CONFIG_ATA) += ata/ +obj-$(CONFIG_IDE) += ide/ obj-$(CONFIG_TARGET_CORE) += target/ obj-$(CONFIG_MTD) += mtd/ obj-$(CONFIG_SPI) += spi/ -- 1.7.9.3
