linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC] mtd/nand: modify NAND_CHIPOPTIONS_MSK
@ 2011-11-28 14:20 Jan Weitzel
  2011-11-28 18:34 ` Brian Norris
  0 siblings, 1 reply; 12+ messages in thread
From: Jan Weitzel @ 2011-11-28 14:20 UTC (permalink / raw)
  To: linux-mtd; +Cc: dedekind, Jan Weitzel, tglx

Trying to set NAND_NO_SUBPAGE_WRITE from platform fail, because
nand_flash_detect_onfi options from struct nand_flash_dev overwrite the flag.

Removing NAND_NO_SUBPAGE_WRITE from NAND_CHIPOPTIONS_MSK fix this,
but setting it via struct nand_flash_dev table is not longer supported.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
---
 include/linux/mtd/nand.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 904131b..babef5b 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -216,7 +216,8 @@ typedef enum {
 					&& (chip->page_shift > 9))
 
 /* Mask to zero out the chip options, which come from the id table */
-#define NAND_CHIPOPTIONS_MSK	(0x0000ffff & ~NAND_NO_AUTOINCR)
+#define NAND_CHIPOPTIONS_MSK \
+	(0x0000ffff & ~NAND_NO_AUTOINCR & ~NAND_NO_SUBPAGE_WRITE)
 
 /* Non chip related options */
 /* This option skips the bbt scan during initialization. */
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-12-05 10:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-28 14:20 [RFC] mtd/nand: modify NAND_CHIPOPTIONS_MSK Jan Weitzel
2011-11-28 18:34 ` Brian Norris
2011-11-29  9:00   ` [PATCH] mdt nand: omap2+ use platform options Jan Weitzel
2011-11-30 20:31     ` Brian Norris
2011-12-01  8:21       ` Jan Weitzel
2011-12-01  8:42     ` Artem Bityutskiy
2011-12-02 10:20       ` Grazvydas Ignotas
2011-12-02 11:10         ` Artem Bityutskiy
2011-12-02 17:28         ` Brian Norris
2011-12-04 14:29           ` Artem Bityutskiy
2011-12-05  8:11         ` Jan Weitzel
2011-12-05 10:32           ` Grazvydas Ignotas

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).