From: Arjan van de Ven <arjan@infradead.org>
To: Li Juen Hwang <lwen@ampex.com>
Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: call request_irq before or after hardware initialization?
Date: Fri, 29 Jun 2007 13:23:07 -0700 [thread overview]
Message-ID: <1183148587.2642.5.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <46855F19.5080900@ampex.com>
On Fri, 2007-06-29 at 12:35 -0700, Li Juen Hwang wrote:
>
> Hi,
>
> Most 1394 drivers on Linux, ohci1394 for instance, calls
> request_irq() before
> initializing/enabling hardware chip. I'd like to reverse the order
> so that driver
> can exit the kernel without calling free_irq() if hardware failed.
> Is that ok?
> will it cause side effect? Thanks.
well you have to be able to handle interrupts the moment the hardware
will generate them... so the request_irq has to happen before that
point.
prev parent reply other threads:[~2007-06-29 20:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-25 20:18 [RFC patch] firewire: add Kconfig help on building both stacks Stefan Richter
2007-06-29 19:35 ` call request_irq before or after hardware initialization? Li Juen Hwang
2007-06-29 20:23 ` Arjan van de Ven [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=1183148587.2642.5.camel@laptopd505.fenrus.org \
--to=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=lwen@ampex.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
all inboxes | Powered by JetHome®