Surely there is a sysfs path we can devise to do
echo "add <pci_device_id line>" > /sys/pci/driver/tulip
(or replace that with a file-oriented interface that inputs an entire
table)
and internally just refer to, and update, a kmalloc'd copy of the
original driver's pci (or usb) table.
> > <tangent>
> > I also want to add PCI revision id and mask to struct pci_device_id.
> > </tangent>
>
> Do any drivers need that today? It shouldn't be that hard to do it, and
> now is the time :)
Yes. tulip driver could find this useful, but that's currently a small
case worked around in the driver.
The big and annoying case is 8139C+ (8139cp.c), which has the same
PCI id as old 8139 boards, but additionally includes dramatically new
and better functionality. The distinguishing characteristic at the
probe phase is the PCI revision id, as the PCI id is the same as another
driver.
Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/