summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2007-01-31 23:48:12 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-01 16:22:41 -0800
commitcb7468ef4cce8f240604b80b82ac157fa9930e94 (patch)
tree6119dca01ae25f949a6448e1fa68c8ca52b868d7 /drivers/pci
parent04add672cf98a788e9e0d753b2ccfa4a3a0caf56 (diff)
downloadlinux-3.10-cb7468ef4cce8f240604b80b82ac157fa9930e94.tar.gz
linux-3.10-cb7468ef4cce8f240604b80b82ac157fa9930e94.tar.bz2
linux-3.10-cb7468ef4cce8f240604b80b82ac157fa9930e94.zip
[PATCH] via quirk update
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/quirks.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 16945c2ba2c..dcc0c1ab95e 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -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:
- /* 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: