From: Artem Bityutskiy <dedekind1@gmail.com>
To: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Linux mtd <linux-mtd@lists.infradead.org>
Subject: Re: MTD API locking and concurrency
Date: Tue, 13 Mar 2012 14:41:11 +0200 [thread overview]
Message-ID: <1331642471.3595.33.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <87obs1rr4b.fsf@free.fr>
[-- Attachment #1: Type: text/plain, Size: 639 bytes --]
On Tue, 2012-03-13 at 06:45 +0100, Robert Jarzmik wrote:
> Hi,
>
> I came across a concurrent usage of my MTD driver by UBIFS by doing
> an IOC_UBI_UPVOL. As my chip doesn't support multiple requests at a time, I need
> to protect the access to chip registers.
>
> I wonder if mtd api function can be called in interrupt context.
No, this is not explicitely documented and you are welcome to send a
patch which adds a comment to mtd.h, but all the MTD API functions are
supposed to be called from sleeping context. IOW, the caller should keep
in mind that these functions may sleep.
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-03-13 12:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-13 5:45 MTD API locking and concurrency Robert Jarzmik
2012-03-13 12:41 ` Artem Bityutskiy [this message]
2012-03-13 17:17 ` Mike Dunn
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=1331642471.3595.33.camel@sauron.fi.intel.com \
--to=dedekind1@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=robert.jarzmik@free.fr \
/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