From: Adrian Hunter <ext-adrian.hunter@nokia.com>
To: Abhijit Singh <mail2abhijit@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: inconsistent behaviour with onenand with 2.6.24 kernel
Date: Fri, 18 Apr 2008 10:19:28 +0300 [thread overview]
Message-ID: <48084B80.2050601@nokia.com> (raw)
In-Reply-To: <60e9ed290804170851y17cd9ea8nbb2531275eb899fb@mail.gmail.com>
Abhijit Singh wrote:
> I am facing some problem with onenand with the kernel 2.6.24.
Yes it is broken.
Here is a list on OneNAND patches in 2.6.25
69d79186dc48ca22a0ce69511bef8ef6c2465ada [MTD] [OneNAND] Use pre-alloced oob buffer instead of local buffer
978cb38a296fceac82a8a757f6387d7ef2a21ac6 [MTD] [OneNAND] Use the u_char instead of char in oobbuf
b2581be291aa8595eadf3d6933d04d0f1d01b46d [MTD] [OneNAND] Check the initial bad block using ONENAND_CTRL_ERROR
e71f04fc9234b14636887ceb5862755f1690642c [MTD] [OneNAND] Get correct density from device ID
b21b72cf33bb212414c1d967850e261b795befa4 [MTD] [OneNAND] Consolidate OneNAND operation order
9d2f0b7a3de28d06ba4011b835b9a7e772553f0d [MTD] [OneNAND] fix call to onenand_verify when writing subpages
d0b36d8cc8f345ec5faadd15daaecfb409b94523 [MTD] [OneNAND] Do not release chip twice
The last one "[MTD] [OneNAND] Do not release chip twice" is absolutely essential, so here it is:
commit d0b36d8cc8f345ec5faadd15daaecfb409b94523
Author: Adrian Hunter <ext-adrian.hunter@nokia.com>
Date: Thu Jan 24 12:48:37 2008 +0200
[MTD] [OneNAND] Do not release chip twice
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index ed9f9c0..e5882b6 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -1447,9 +1447,6 @@ static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
buf += thislen;
}
- /* Deselect and wake up anyone waiting on the device */
- onenand_release_device(mtd);
-
ops->retlen = written;
return ret;
next prev parent reply other threads:[~2008-04-18 7:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-17 15:51 inconsistent behaviour with onenand with 2.6.24 kernel Abhijit Singh
2008-04-18 7:19 ` Adrian Hunter [this message]
2008-04-21 6:39 ` Abhijit Singh
2008-04-21 8:33 ` Adrian Hunter
2008-04-23 0:53 ` Kyungmin Park
2008-04-23 1:18 ` David Woodhouse
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=48084B80.2050601@nokia.com \
--to=ext-adrian.hunter@nokia.com \
--cc=linux-mtd@lists.infradead.org \
--cc=mail2abhijit@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.