Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030217AbVKCAPG (ORCPT ); Wed, 2 Nov 2005 19:15:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030218AbVKCAPG (ORCPT ); Wed, 2 Nov 2005 19:15:06 -0500 Received: from fmr20.intel.com ([134.134.136.19]:65461 "EHLO orsfmr005.jf.intel.com") by vger.kernel.org with ESMTP id S1030217AbVKCAPF (ORCPT ); Wed, 2 Nov 2005 19:15:05 -0500 Subject: Re: [patch 1/3] pci: store PCI_INTERRUPT_PIN in pci_dev From: Kristen Accardi To: Rajesh Shah Cc: pcihpd-discuss@lists.sourceforge.net, acpi-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, greg@kroah.com, len.brown@intel.com In-Reply-To: <20051027160658.A9674@unix-os.sc.intel.com> References: <20051027192603.488616000@whizzy> <1130441409.5996.24.camel@whizzy> <20051027160658.A9674@unix-os.sc.intel.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 02 Nov 2005 16:14:55 -0800 Message-Id: <1130976895.8321.35.camel@whizzy> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-6) X-OriginalArrivalTime: 03 Nov 2005 00:14:57.0174 (UTC) FILETIME=[9F4BE360:01C5E00B] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1221 Lines: 31 On Thu, 2005-10-27 at 16:06 -0700, Rajesh Shah wrote: > On Thu, Oct 27, 2005 at 12:30:09PM -0700, Kristen Accardi wrote: > > --- linux-2.6.13.orig/drivers/pci/probe.c > > +++ linux-2.6.13/drivers/pci/probe.c > > @@ -571,6 +571,7 @@ static void pci_read_irq(struct pci_dev > > unsigned char irq; > > > > pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &irq); > > + dev->pin = irq; > > pci_read_irq() is not called for PCI bridges, but some of them > may need an interrupt (e.g. for shpchp, pciehp). Did you check > if this patchset broke such bridges? You should call this > function for PCI bridges too. > > Rajesh > You are correct, this does break for bridges on certain architectures. Some archs seem to re-read the interrupt pin value in pcibios_enable_device, but others don't. Adding pci_read_irq to the bridge patch in this function does seem to fix the problem, and arch specific code can still override this. I'll send a new patch for that. thanks, Kristen - 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/