From: Magnus Damm <magnus.damm@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>,
linux-kernel@vger.kernel.org, lethal@linux-sh.org,
akpm@linux-foundation.org
Subject: Re: [PATCH] Free setup_irq() interrupt V2
Date: Wed, 11 Mar 2009 11:32:52 +0900 [thread overview]
Message-ID: <aec7e5c30903101932r4bbd8746tf0bb02e16f62716e@mail.gmail.com> (raw)
In-Reply-To: <20090310153332.GB23463@elte.hu>
On Wed, Mar 11, 2009 at 12:33 AM, Ingo Molnar <mingo@elte.hu> wrote:
>> On Tue, 10 Mar 2009, Ingo Molnar wrote:
>> > * Thomas Gleixner <tglx@linutronix.de> wrote:
>> > > On Tue, 10 Mar 2009, Magnus Damm wrote:
>> > > > From: Magnus Damm <damm@igel.co.jp>
>> > > > This patch adds a __free_irq() function for releasing
>> > > > interrupts requested with setup_irq().
>> > >
>> > > I think there is a simpler solution than adding yet another
>> > > function for the confusion of driver writers. See below.
>> >
>> > Uhm, i asked for that solution ;-)
>>
>> Uhm, I missed that :)
Thomas, your suggestion is quite similar to V1. =)
>> I can live with the two functions as well, but then please let us use
>> a function name which is more intuitive than __free_irq().
>>
>> setup_irq() -> remove_irq()
>> request_irq() -> free_irq()
>
> Sure, that's fine with me.
>
> I almost suggested shutdown_irq() to Magnus originally, then
> went for __free_irq().
How about this change for V2:
Keep __free_irq() but make it static. Let free_irq() and a new
remove_irq() function call __free_irq(). This makes the free functions
similar to setup_irq(), __setup_irq() and request_irq(). The new
remove_irq() function takes interrupt number and a struct irqaction
pointer as arguments - this to match setup_irq().
Sounds ok? If so I'll fix up and repost a V3 against the tip tree.
While at it, what about exporting the setup_irq() and remove_irq() symbols?
You probably dislike it since it may confuse people. I'd like to
export these functions since I have timer code that needs to use
setup_irq() early on (too early for request_irq()), and the same code
can also be compiled as a module. The solution so far has been using
setup_irq()/remove_irq(), but you may have some better suggestions?
Thanks for your help!
Cheers,
/ magnus
prev parent reply other threads:[~2009-03-11 2:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-10 10:24 Magnus Damm
2009-03-10 12:41 ` Ingo Molnar
2009-03-10 14:26 ` Thomas Gleixner
2009-03-10 15:04 ` Ingo Molnar
2009-03-10 15:26 ` Thomas Gleixner
2009-03-10 15:33 ` Ingo Molnar
2009-03-11 2:32 ` Magnus Damm [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=aec7e5c30903101932r4bbd8746tf0bb02e16f62716e@mail.gmail.com \
--to=magnus.damm@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®