From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: "Murali K. Vemuri" <vemuri.muralikrishna@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: i2c send inside ISR
Date: Thu, 27 Jan 2011 12:25:44 +0000 [thread overview]
Message-ID: <20110127122542.GA11937@sirena.org.uk> (raw)
In-Reply-To: <AANLkTikJfWHOeakbVU_CXSeOOz=sCuJoyv6dZ431WjWB@mail.gmail.com>
On Thu, Jan 27, 2011 at 09:22:27PM +0900, Murali K. Vemuri wrote:
> I am working on a driver, and I reached a problem.
> problem: My driver is supposed to send I2C message whenever it
> receives an interrupt. the interrupt is generated when a GPIO is
> detected to be FALLING EDGE of input voltage.
> Now, when I am sending the i2c message, I am getting the error and
> dump like the following:
> Any suggestions???
Use a threaded IRQ handler registered with request_threaded_irq() -
if you grep for that within the kernel you'll find quite a few examples
of handling interrupts from I2C connected devices. You can't use I2C or
other buses that need to sleep from within hard interrupt context.
prev parent reply other threads:[~2011-01-27 12:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-27 12:22 Murali K. Vemuri
2011-01-27 12:25 ` Mark Brown [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=20110127122542.GA11937@sirena.org.uk \
--to=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vemuri.muralikrishna@gmail.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®