diff options
author | Rajesh Shah <rajesh.shah@intel.com> | 2005-08-16 20:32:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-09 16:58:18 -0400 |
commit | 7c56075e60caaff1314decdb61b72ef576915270 (patch) | |
tree | 964db43d4fe45cb810170b80aad068928572a6b4 /drivers | |
parent | 144a50ea5e1487b8b8e722289b4177713354448a (diff) |
[PATCH] PCI: Fix PCI bus mastering enable problem in pciehp
Martin Franc reported that the pciehp driver was not enabling bus
master capability on his hot-plugged card. pciehprm_enable_card()
was updating the PCI command register only if _HPP indicated a
value for SERR or PERR that was different from the current setting.
I don't have hardware that reproduces this problem, but Martin
reports that this patch fixes the problem for him.
Signed-off-by: Rajesh Shah <rajesh.shah@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
From rzarev@its.caltech.edu Tue Sep 6 18:29:50 2005
Date: Tue, 6 Sep 2005 13:39:32 -0700 (PDT)
From: Rumen Ivanov Zarev <rzarev@its.caltech.edu>
Message-Id: <200509062039.j86KdWMr014934@inky.its.caltech.edu>
To: gregkh@suse.de
Subject: PCI: Unhide SMBus on Compaq Evo N620c
Cc: linux-kernel@vger.kernel.org
Trivial patch against 2.6.13 to unhide SMBus on Compaq Evo N620c laptop using
Intel 82855PM chipset.
Signed-off-by: Rumen Zarev <rzarev@caltech.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/pci/quirks.c | 6 ++++++
1 file changed, 6 insertions(+)
--- gregkh-2.6.orig/drivers/pci/quirks.c 2005-09-09 10:28:55.000000000 -0700
+++ gregkh-2.6/drivers/pci/quirks.c 2005-09-09 13:51:44.000000000 -0700
@@ -876,6 +876,12 @@ static void __init asus_hides_smbus_host
case 0xC00C: /* Samsung P35 notebook */
asus_hides_smbus = 1;
}
+ } else if (unlikely(dev->subsystem_vendor == PCI_VENDOR_ID_COMPAQ)) {
+ if (dev->device == PCI_DEVICE_ID_INTEL_82855PM_HB)
+ switch(dev->subsystem_device) {
+ case 0x0058: /* Compaq Evo N620c */
+ asus_hides_smbus = 1;
+ }
}
}
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82845_HB, asus_hides_smbus_hostbridge );
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/hotplug/pciehprm_acpi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pci/hotplug/pciehprm_acpi.c b/drivers/pci/hotplug/pciehprm_acpi.c index 305b47ec2f2c..1406db35b089 100644 --- a/drivers/pci/hotplug/pciehprm_acpi.c +++ b/drivers/pci/hotplug/pciehprm_acpi.c | |||
@@ -1696,15 +1696,15 @@ void pciehprm_enable_card( | |||
1696 | pci_bus->number = func->bus; | 1696 | pci_bus->number = func->bus; |
1697 | devfn = PCI_DEVFN(func->device, func->function); | 1697 | devfn = PCI_DEVFN(func->device, func->function); |
1698 | 1698 | ||
1699 | rc = pci_bus_read_config_word(pci_bus, devfn, PCI_COMMAND, &command); | 1699 | rc = pci_bus_read_config_word(pci_bus, devfn, PCI_COMMAND, &cmd); |
1700 | 1700 | ||
1701 | if (card_type == PCI_HEADER_TYPE_BRIDGE) { | 1701 | if (card_type == PCI_HEADER_TYPE_BRIDGE) { |
1702 | rc = pci_bus_read_config_word(pci_bus, devfn, PCI_BRIDGE_CONTROL, &bcommand); | 1702 | rc = pci_bus_read_config_word(pci_bus, devfn, PCI_BRIDGE_CONTROL, &bcmd); |
1703 | } | 1703 | } |
1704 | 1704 | ||
1705 | cmd = command = command | PCI_COMMAND_MASTER | PCI_COMMAND_INVALIDATE | 1705 | command = cmd | PCI_COMMAND_MASTER | PCI_COMMAND_INVALIDATE |
1706 | | PCI_COMMAND_IO | PCI_COMMAND_MEMORY; | 1706 | | PCI_COMMAND_IO | PCI_COMMAND_MEMORY; |
1707 | bcmd = bcommand = bcommand | PCI_BRIDGE_CTL_NO_ISA; | 1707 | bcommand = bcmd | PCI_BRIDGE_CTL_NO_ISA; |
1708 | 1708 | ||
1709 | ab = find_acpi_bridge_by_bus(acpi_bridges_head, ctrl->seg, ctrl->bus); | 1709 | ab = find_acpi_bridge_by_bus(acpi_bridges_head, ctrl->seg, ctrl->bus); |
1710 | if (ab) { | 1710 | if (ab) { |