From: Len Brown <lenb@kernel.org>
To: Zhao Yakui <yakui.zhao@intel.com>, Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-acpi@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: [Patch]: ACPI : Not register gsi for PCI IDE controller in legacy mode
Date: Thu, 10 Jan 2008 22:53:28 -0500 [thread overview]
Message-ID: <200801102253.28523.lenb@kernel.org> (raw)
In-Reply-To: <1197875609.7945.70.camel@yakui_zhao.sh.intel.com>
Applied to acpi test tree for .25.
Do you think this is .24 and a 23.stable candidate?
thanks,
-Len
On Monday 17 December 2007 02:13, Zhao Yakui wrote:
> Subject: ACPI : Not register gsi for PCI IDE controller in legacy mode
> >From : Alan Cox <alan@lxorguk.ukuu.org.uk>
>
> When PCI IDE controller works in legacy mode and no PRT entry is found
> in ACPI PRT table, OSPM will neither read the irq number from the IDE
> PCI configuration space nor call the function of acpi_register_gsi to
> register gsi.
>
> http://bugzilla.kernel.org/show_bug.cgi?id=5637
>
> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
>
> ---
> drivers/acpi/pci_irq.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> Index: linux-2.6.24-rc5/drivers/acpi/pci_irq.c
> ===================================================================
> --- linux-2.6.24-rc5.orig/drivers/acpi/pci_irq.c
> +++ linux-2.6.24-rc5/drivers/acpi/pci_irq.c
> @@ -429,6 +429,15 @@ int acpi_pci_irq_enable(struct pci_dev *
> &polarity, &link,
> acpi_pci_allocate_irq);
>
> + if (irq < 0) {
> + /*
> + * IDE legacy mode controller IRQs are magic. Why do compat
> + * extensions always make such a nasty mess.
> + */
> + if (dev->class >> 8 == PCI_CLASS_STORAGE_IDE &&
> + (dev->class & 0x05) == 0)
> + return 0;
> + }
> /*
> * No IRQ known to the ACPI subsystem - maybe the BIOS /
> * driver reported one, then use it. Exit in any case.
>
>
next prev parent reply other threads:[~2008-01-11 3:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-17 7:13 [Patch]: ACPI : Not register gsi for PCI IDE controller in legacy mode Zhao Yakui
2008-01-11 3:53 ` Len Brown [this message]
2008-01-11 4:25 ` Zhao Yakui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200801102253.28523.lenb@kernel.org \
--to=lenb@kernel.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=yakui.zhao@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox