View | Details | Raw Unified | Return to bug 214931
Collapse All | Expand All

(-)linux-2.6.19/drivers/pci/quirks.c (-2 / +10 lines)
Lines 696-701 static void quirk_via_vlink(struct pci_d Link Here
696
	if (dev_lo == -1) {
696
	if (dev_lo == -1) {
697
		via_vlink_fixup = pci_find_present(via_vlink_fixup_tbl);
697
		via_vlink_fixup = pci_find_present(via_vlink_fixup_tbl);
698
		if (via_vlink_fixup == NULL) {
698
		if (via_vlink_fixup == NULL) {
699
			printk(KERN_NOTICE "VIA quirk %s: No supported south bridge found\n",
700
			       pci_name(dev));
699
			dev_lo = -2;
701
			dev_lo = -2;
700
			return;
702
			return;
701
		}
703
		}
Lines 707-719 static void quirk_via_vlink(struct pci_d Link Here
707
	new_irq = dev->irq;
709
	new_irq = dev->irq;
708
710
709
	/* Don't quirk interrupts outside the legacy IRQ range */
711
	/* Don't quirk interrupts outside the legacy IRQ range */
710
	if (!new_irq || new_irq > 15)
712
	if (!new_irq || new_irq > 15) {
713
		printk(KERN_NOTICE "VIA quirk %s: IRQ %d outside of legacy range\n",
714
		       pci_name(dev), (int)new_irq);
711
		return;
715
		return;
716
	}
712
717
713
	/* Internal device ? */
718
	/* Internal device ? */
714
	if (dev->bus->number != 0 || PCI_SLOT(dev->devfn) > dev_hi ||
719
	if (dev->bus->number != 0 || PCI_SLOT(dev->devfn) > dev_hi ||
715
		PCI_SLOT(dev->devfn) < dev_lo)
720
		PCI_SLOT(dev->devfn) < dev_lo) {
721
		printk(KERN_NOTICE "VIA quirk %s: skipping (bus number %d, slot %d)\n",
722
		       pci_name(dev), (int)dev->bus->number, (int)PCI_SLOT(dev->devfn));
716
		return;
723
		return;
724
	}
717
725
718
	/* This is an internal VLink device on a PIC interrupt. The BIOS
726
	/* This is an internal VLink device on a PIC interrupt. The BIOS
719
	   ought to have set this but may not have, so we redo it */
727
	   ought to have set this but may not have, so we redo it */

Return to bug 214931