linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@nod.at>
To: Matthias Auchmann <m.auchmann@artech.at>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: mtd locking
Date: Sun, 29 May 2016 18:17:02 +0200	[thread overview]
Message-ID: <574B15FE.8030206@nod.at> (raw)
In-Reply-To: <566B344A0B1AB14EB2486D887B6FF9E0331F3DB473@SRV01.ARTech.local>

Hi!

Am 29.05.2016 um 17:53 schrieb Matthias Auchmann:
> By intended you mean it's wrong and we know, but it's still wrong, right?

I'd say lazy. Sometimes counters don't need to be exact.
Having exact counting is expensive. See network stack.

I'm not sure what the exact reasons in the ECC error counting
case are.
Maybe Brian or Boris can tell more.

> What about thread safety in general? Is the rest of the mtd system thread safe? Can it happen that e.g. a command is issued to NAND, and before the buffer is read, another command is issued (and similar scenarios)? Or is there some kind of protection in place for that?

NAND chip access is strictly serialized. :-)
See nand_get_device().

Thanks,
//richard

  reply	other threads:[~2016-05-29 16:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-29 13:38 mtd locking Matthias Auchmann
2016-05-29 14:23 ` Richard Weinberger
2016-05-29 15:53   ` Matthias Auchmann
2016-05-29 16:17     ` Richard Weinberger [this message]
2016-05-30  9:24       ` Boris Brezillon
2016-05-31 18:11       ` Brian Norris

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=574B15FE.8030206@nod.at \
    --to=richard@nod.at \
    --cc=linux-mtd@lists.infradead.org \
    --cc=m.auchmann@artech.at \
    /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;
as well as URLs for NNTP newsgroup(s).