We found the device and being overly smart tried to enable it. Trouble
is on IBM thinkpad docking stations this is the right thing to do with
the on board controllers 8(, in the case of the generic dma it may well
not be.
Ok can you try the following checks to decide when to skip. In
generic_init_one add some code to do:
u16 cmd;
pci_read_config_word(dev, PCI_COMMAND, &cmd);
if(!(cmd & PCI_COMMAND_IO))
{
printk(KERN_INFO "Skipping disabled %s controller.\n",
d->name);
return 1;
}
That will mean we enable PCI controllers we know about specifically but
not generic PCI bus masters. If that turns out to be too conservative
then adding a flag per controller can always be done.
Alan
-
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/