From: Erik A. <and...@co...> - 2002-10-22 01:24:03
|
On Sat Oct 19, 2002 at 09:32:07AM -0600, Erik wrote: > Looks like I forgot a small piece... 001-linux-sh_2.4.20-pre10=20 > also needs the following, which I forgot to include in my patch > (I have now updated the patch on my webpage). And yet another missing piece... Turns out the BBA is connected via PCI, but I'd failed to adapt that part for the new kernel. Here is yet another fix. --- arch/sh/kernel/pcibios.c.orig 2002-10-19 03:37:25.000000000 -0600 +++ arch/sh/kernel/pcibios.c 2002-10-21 19:11:13.000000000 -0600 @@ -73,7 +73,7 @@ } } =20 -int pcibios_enable_device(struct pci_dev *dev) +int pcibios_enable_device(struct pci_dev *dev, int mask) { u16 cmd, old_cmd; int idx; @@ -82,6 +82,9 @@ pci_read_config_word(dev, PCI_COMMAND, &cmd); old_cmd =3D cmd; for(idx=3D0; idx<6; idx++) { + /* Only set up the requested stuff */ + if (!(mask & (1<<idx))) + continue; r =3D &dev->resource[idx]; if (!r->start && r->end) { printk(KERN_ERR "PCI: Device %s not available because of resource colli= sions\n", dev->slot_name); -Erik -- Erik B. Andersen http://codepoet-consulting.com/ --This message was written using 73% post-consumer electrons-- |