Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751563AbVJ0TaX (ORCPT ); Thu, 27 Oct 2005 15:30:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751566AbVJ0TaX (ORCPT ); Thu, 27 Oct 2005 15:30:23 -0400 Received: from fmr20.intel.com ([134.134.136.19]:52426 "EHLO orsfmr005.jf.intel.com") by vger.kernel.org with ESMTP id S1751563AbVJ0TaW (ORCPT ); Thu, 27 Oct 2005 15:30:22 -0400 Subject: [patch 2/3] apci: use stored value of pin from pci_dev From: Kristen Accardi To: pcihpd-discuss@lists.sourceforge.net Cc: acpi-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, rajesh.shah@intel.com, greg@kroah.com, len.brown@intel.com References: <20051027192603.488616000@whizzy> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 27 Oct 2005 12:30:12 -0700 Message-Id: <1130441412.5996.25.camel@whizzy> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-6) X-OriginalArrivalTime: 27 Oct 2005 19:30:12.0992 (UTC) FILETIME=[D9DA1800:01C5DB2C] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1628 Lines: 48 plain text document attachment (patch-interrupt-pin-acpi) Use the stored value of the Interrupt Pin, rather than try to read it again. Signed-off-by: Kristen Carlson Accardi drivers/acpi/pci_irq.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) Index: linux-2.6.13/drivers/acpi/pci_irq.c =================================================================== --- linux-2.6.13.orig/drivers/acpi/pci_irq.c +++ linux-2.6.13/drivers/acpi/pci_irq.c @@ -361,8 +361,7 @@ acpi_pci_irq_derive(struct pci_dev *dev, if ((bridge->class >> 8) == PCI_CLASS_BRIDGE_CARDBUS) { /* PC card has the same IRQ as its cardbridge */ - pci_read_config_byte(bridge, PCI_INTERRUPT_PIN, - &bridge_pin); + bridge_pin = bridge->pin; if (!bridge_pin) { ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No interrupt pin configured for device %s\n", @@ -412,7 +411,7 @@ int acpi_pci_irq_enable(struct pci_dev * if (!dev) return_VALUE(-EINVAL); - pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); + pin = dev->pin; if (!pin) { ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No interrupt pin configured for device %s\n", @@ -503,7 +502,7 @@ void acpi_pci_irq_disable(struct pci_dev if (!dev || !dev->bus) return_VOID; - pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); + pin = dev->pin; if (!pin) return_VOID; pin--; -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/