* [PATCH] PCI: Compaq Evo D510 SMBus quirk using USB instead of VGA
@ 2009-03-02 8:51 Jean Delvare
2009-03-20 2:17 ` Jesse Barnes
0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2009-03-02 8:51 UTC (permalink / raw)
To: Jesse Barnes; +Cc: linux-kernel, linux-pci
From: David O'Shea <dcoshea@hotmail.com>
Subject: PCI: Compaq Evo D510 SMBus quirk using USB instead of VGA
On the Compaq Evo D510 SFF/CMT, a PCI quirk activated the SMBus device
based on detection of the on-board VGA controller, but the on-board
VGA is disabled if an AGP card is inserted, so look for one of the USB
controllers instead.
Signed-off-by: David O'Shea <dcoshea@hotmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
---
drivers/pci/quirks.c | 9 +++++++--
include/linux/pci_ids.h | 1 +
2 files changed, 8 insertions(+), 2 deletions(-)
--- linux-2.6.29-rc6.orig/drivers/pci/quirks.c 2009-03-02 08:46:20.000000000 +0100
+++ linux-2.6.29-rc6/drivers/pci/quirks.c 2009-03-02 09:17:16.000000000 +0100
@@ -1125,10 +1125,15 @@ static void __init asus_hides_smbus_host
* its on-board VGA controller */
asus_hides_smbus = 1;
}
- else if (dev->device == PCI_DEVICE_ID_INTEL_82845G_IG)
+ else if (dev->device == PCI_DEVICE_ID_INTEL_82801DB_2)
switch(dev->subsystem_device) {
case 0x00b8: /* Compaq Evo D510 CMT */
case 0x00b9: /* Compaq Evo D510 SFF */
+ /* Motherboard doesn't have Host bridge
+ * subvendor/subdevice IDs and on-board VGA
+ * controller is disabled if an AGP card is
+ * inserted, therefore checking USB UHCI
+ * Controller #1 */
asus_hides_smbus = 1;
}
else if (dev->device == PCI_DEVICE_ID_INTEL_82815_CGC)
@@ -1153,7 +1158,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_I
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82915GM_HB, asus_hides_smbus_hostbridge);
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82810_IG3, asus_hides_smbus_hostbridge);
-DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82845G_IG, asus_hides_smbus_hostbridge);
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_2, asus_hides_smbus_hostbridge);
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82815_CGC, asus_hides_smbus_hostbridge);
static void asus_hides_smbus_lpc(struct pci_dev *dev)
--- linux-2.6.29-rc6.orig/include/linux/pci_ids.h 2009-03-02 08:46:20.000000000 +0100
+++ linux-2.6.29-rc6/include/linux/pci_ids.h 2009-03-02 09:17:16.000000000 +0100
@@ -2373,6 +2373,7 @@
#define PCI_DEVICE_ID_INTEL_82801CA_12 0x248c
#define PCI_DEVICE_ID_INTEL_82801DB_0 0x24c0
#define PCI_DEVICE_ID_INTEL_82801DB_1 0x24c1
+#define PCI_DEVICE_ID_INTEL_82801DB_2 0x24c2
#define PCI_DEVICE_ID_INTEL_82801DB_3 0x24c3
#define PCI_DEVICE_ID_INTEL_82801DB_5 0x24c5
#define PCI_DEVICE_ID_INTEL_82801DB_6 0x24c6
--
Jean Delvare
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] PCI: Compaq Evo D510 SMBus quirk using USB instead of VGA
2009-03-02 8:51 [PATCH] PCI: Compaq Evo D510 SMBus quirk using USB instead of VGA Jean Delvare
@ 2009-03-20 2:17 ` Jesse Barnes
0 siblings, 0 replies; 2+ messages in thread
From: Jesse Barnes @ 2009-03-20 2:17 UTC (permalink / raw)
To: Jean Delvare; +Cc: linux-kernel, linux-pci
On Mon, 2 Mar 2009 09:51:13 +0100
Jean Delvare <khali@linux-fr.org> wrote:
> From: David O'Shea <dcoshea@hotmail.com>
> Subject: PCI: Compaq Evo D510 SMBus quirk using USB instead of VGA
>
> On the Compaq Evo D510 SFF/CMT, a PCI quirk activated the SMBus device
> based on detection of the on-board VGA controller, but the on-board
> VGA is disabled if an AGP card is inserted, so look for one of the USB
> controllers instead.
>
> Signed-off-by: David O'Shea <dcoshea@hotmail.com>
> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Applied to my linux-next branch, thanks guys.
--
Jesse Barnes, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-20 2:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-02 8:51 [PATCH] PCI: Compaq Evo D510 SMBus quirk using USB instead of VGA Jean Delvare
2009-03-20 2:17 ` Jesse Barnes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®