]> nv-tegra.nvidia Code Review - linux-3.10.git/commitdiff
[PATCH] via quirk update
authorJean Delvare <jdelvare@suse.de>
Thu, 1 Feb 2007 07:48:12 +0000 (23:48 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 2 Feb 2007 00:22:41 +0000 (16:22 -0800)
Add special handling for the VT82C686.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pci/quirks.c

index 16945c2ba2ca36e13a84f1d1653c879c94b15c24..dcc0c1ab95ed8de5723b1fbab68f4224c33aa719 100644 (file)
@@ -661,9 +661,11 @@ static void quirk_via_bridge(struct pci_dev *dev)
        /* See what bridge we have and find the device ranges */
        switch (dev->device) {
        case PCI_DEVICE_ID_VIA_82C686:
        /* See what bridge we have and find the device ranges */
        switch (dev->device) {
        case PCI_DEVICE_ID_VIA_82C686:
-               /* 82C686 is special */
-               via_vlink_dev_lo = 7;
-               via_vlink_dev_hi = 7;
+               /* The VT82C686 is special, it attaches to PCI and can have
+                  any device number. All its subdevices are functions of
+                  that single device. */
+               via_vlink_dev_lo = PCI_SLOT(dev->devfn);
+               via_vlink_dev_hi = PCI_SLOT(dev->devfn);
                break;
        case PCI_DEVICE_ID_VIA_8237:
        case PCI_DEVICE_ID_VIA_8237A:
                break;
        case PCI_DEVICE_ID_VIA_8237:
        case PCI_DEVICE_ID_VIA_8237A: