From: Takayoshi Kochi <kochi@hpc.bs1.fc.nec.co.jp>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] 2.4.21 Interrupt polarity fix
Date: Wed, 06 Aug 2003 01:22:42 +0000 [thread overview]
Message-ID: <marc-linux-ia64-106013308221730@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105962723421294@msgid-missing>
[-- Attachment #1: Type: Text/Plain, Size: 866 bytes --]
From: Bjorn Helgaas <bjorn.helgaas@hp.com>
Subject: Re: [PATCH] 2.4.21 Interrupt polarity fix
Date: Tue, 5 Aug 2003 16:16:07 -0600
> On Wednesday 30 July 2003 10:53 pm, Takayoshi Kochi wrote:
> > It seems that acpi_register_intr (in arch/ia64/kernel/acpi.c)
> > takes an interrupt polarity/trigger in opposite way.
> > Attached patch fixes this. Please apply.
>
> Thanks. This was indeed very confusing. I applied the
> following patch for 2.4. The corresponding patch you
> posted on August 4 for 2.6 appears functionally identical
> but reverses the sense of the polarity test for no good
> reason. Can you send David a revised patch that does
> it the same was as the one below?
Thanks for the comment. The revised patch is attached.
---
1st Computer Software Division, NEC Corporation
Takayoshi Kochi <kochi@hpc.bs1.fc.nec.co.jp/t-kochi@bq.jp.nec.com>
[-- Attachment #2: ia64-acpi.c.2.diff --]
[-- Type: Text/Plain, Size: 679 bytes --]
Index: dcm-260t2/arch/ia64/kernel/acpi.c
===================================================================
RCS file: /data/cvsroot/lia64-2.5/arch/ia64/kernel/acpi.c,v
retrieving revision 1.1.1.19
diff -u -r1.1.1.19 acpi.c
--- dcm-260t2/arch/ia64/kernel/acpi.c 29 Jul 2003 10:33:17 -0000 1.1.1.19
+++ dcm-260t2/arch/ia64/kernel/acpi.c 6 Aug 2003 01:19:11 -0000
@@ -727,7 +727,9 @@
return 0;
/* Turn it on */
- vector = iosapic_register_intr (gsi, polarity, trigger);
+ vector = iosapic_register_intr (gsi,
+ (polarity == ACPI_ACTIVE_HIGH) ? IOSAPIC_POL_HIGH : IOSAPIC_POL_LOW,
+ (trigger == ACPI_EDGE_SENSITIVE) ? IOSAPIC_EDGE : IOSAPIC_LEVEL);
return vector;
}
prev parent reply other threads:[~2003-08-06 1:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-31 4:53 [PATCH] 2.4.21 Interrupt polarity fix Takayoshi Kochi
2003-08-05 22:16 ` Bjorn Helgaas
2003-08-06 1:22 ` Takayoshi Kochi [this message]
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=marc-linux-ia64-106013308221730@msgid-missing \
--to=kochi@hpc.bs1.fc.nec.co.jp \
--cc=linux-ia64@vger.kernel.org \
/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