Re: Linux 2.4.19-ac2

Alan Cox
2002-08-04T19:05:29Z

On Sun, 2002-08-04 at 19:57, Devilkin wrote:
> On Sunday 04 August 2002 19:46, Alan Cox wrote:
> <snip>
>
> There seems to be some problem with VIA IDE IRQ's on 2.4.19-ac2.

Ok based on Petr's comments about VIA stuff being a bit funny. We can
refine this test later.

--- arch/i386/kernel/pci-i386.c~ 2002-08-04 20:06:54.000000000 +0100
+++ arch/i386/kernel/pci-i386.c 2002-08-04 20:06:54.000000000 +0100
@@ -277,6 +277,11 @@
if((r9 & 0x0A) != 0x0A) /* Legacy only */
return 0;

+ /* Leave alone VIA chips */
+
+ if (dev->vendor == PCI_VENDOR_ID_VIA)
+ return 0;
+
/* Request programmability */

pci_write_config_byte(dev, PCI_CLASS_PROG, r9|0x05);