Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267743AbUIUO6X (ORCPT ); Tue, 21 Sep 2004 10:58:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267739AbUIUO6X (ORCPT ); Tue, 21 Sep 2004 10:58:23 -0400 Received: from atlrel8.hp.com ([156.153.255.206]:53717 "EHLO atlrel8.hp.com") by vger.kernel.org with ESMTP id S267734AbUIUO6T (ORCPT ); Tue, 21 Sep 2004 10:58:19 -0400 From: Bjorn Helgaas To: acpi-devel@lists.sourceforge.net Subject: Re: [ACPI] [PATCH] PCI IRQ resource deallocation support [2/3] Date: Tue, 21 Sep 2004 08:57:59 -0600 User-Agent: KMail/1.7 Cc: Kenji Kaneshige , akpm@osdl.org, greg@kroah.com, len.brown@intel.com, tony.luck@intel.com, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org References: <414FEBDB.2050201@soft.fujitsu.com> In-Reply-To: <414FEBDB.2050201@soft.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409210857.59457.bjorn.helgaas@hp.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1039 Lines: 29 On Tuesday 21 September 2004 2:52 am, Kenji Kaneshige wrote: > + * This function undoes the effect of one call to acpi_register_gsi(). > + * If this matches the last regstration, any IRQ resources for gsi s/regstration/registration/ (also other occurrences below). > +void > +acpi_pci_irq_disable ( > + struct pci_dev *dev) > +{ > + unsigned char irq_disabled, irq; pci_dev.irq is unsigned int, not unsigned char, so irq_disabled should be unsigned int as well. > + * dev->irq is cleared by BIOS-assigned IRQ set during boot. > + */ > + pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &irq); > + if (irq) > + pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &irq); > + dev->irq = irq; Why do we need to fiddle with dev->irq? I think it should just be undefined after acpi_pci_irq_disable(). - 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/