On 6.6.2013 16:56, Jean Delvare wrote:
Hi Michal,
Le Thursday 06 June 2013 à 14:55 +0200, Michal Marek a écrit :
On 6.6.2013 14:40, Jean Delvare wrote:
Is there a magic command that would answer the question "is this driver useful for any device present on my machine"?
Remove it from the sysconfig file, run mkinitrd, reboot and see if udev loads it :).
Ah ah, yes of course :) Tried that and no, ata_generic is not loaded by udev. But I do not understand why, because:
$ /sbin/modinfo ata_generic (...) alias: pci:v*d*sv*sd*bc01sc01i*
$ /sbin/lspci -nn | grep '\[0101\]' 00:1f.2 IDE interface [0101]: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1 [8086:3a20] 00:1f.5 IDE interface [0101]: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2 [8086:3a26]
So I would expect udev to load it. Unless udev skips module loading if the device already has a driver bound?
AFAIK udev only does an equivalent of /sbin/modprobe $(cat /sys/devices/pci0000:00/0000:00:1f.2/modalias) and this should indeed result in both ata-piix and ata-generic being inserted, in that order. I do not know why ata-generic is skipped (although it is a reasonable thing do to). Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org