Re: [PATCH] PCI: add modalias sysfs file for pci devices

From: Michael Tokarev
Date: Tue May 31 2005 - 12:03:02 EST


Greg KH wrote:
> [PATCH] PCI: add modalias sysfs file for pci devices
[With similar patch and $MODALIAS in hotplug path stuff
submitted for USB]

Speaking of all this... While the two (USB and PCI) are
most important nowadays... Hmm, so probably all other
similar "busses", like PCMCIA, even bluetooth, and "not
so obvious ones" like IDE and SCSI, and PNP&EISA -- this
same approach may be used for all, providing device/modalias
file for all (scsi:t0 for sd_mod etc), and $MODALIAS for
hotpluggable ones, with appropriate .modalias in modules...

I mean, are we on the way to converting just everything
into this modalias thing, so that hotplug/modloading will
be just one-liner?

Providing "trivial" aliases for eg PNP or EISA busses
seems to be a bit redundrand (a list of pnp:dXXX in
device/modalias in addition to XXX in device/id), but
without that this whole picture will not be consistent...
or should it?

/mjt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/