linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] mtd nand : onfi need to be probed in 8 bits mode
@ 2012-11-06 10:51 Matthieu CASTET
  2012-11-06 10:51 ` [PATCH 2/3] mtd nand : add NAND_BUSWIDTH_AUTO to autodetect bus width Matthieu CASTET
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Matthieu CASTET @ 2012-11-06 10:51 UTC (permalink / raw)
  To: linux-mtd, linux-omap; +Cc: dedekind1, Matthieu CASTET

- NAND_CMD_READID want an address that it is not scaled on x16 device (it is always 0x20)
- NAND_CMD_PARAM want 8 bits data

Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.com>
---
 drivers/mtd/nand/nand_base.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 5894c2c..abeb8e9 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2851,6 +2851,8 @@ static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip,
 	int i;
 	int val;
 
+	/* ONFI need to be probed in 8 bits mode */
+	WARN_ON(chip->options & NAND_BUSWIDTH_16);
 	/* Try ONFI for unknown chip or LP */
 	chip->cmdfunc(mtd, NAND_CMD_READID, 0x20, -1);
 	if (chip->read_byte(mtd) != 'O' || chip->read_byte(mtd) != 'N' ||
-- 
1.7.10.4


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

end of thread, other threads:[~2013-04-02 18:28 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-06 10:51 [PATCH 1/3] mtd nand : onfi need to be probed in 8 bits mode Matthieu CASTET
2012-11-06 10:51 ` [PATCH 2/3] mtd nand : add NAND_BUSWIDTH_AUTO to autodetect bus width Matthieu CASTET
2012-11-30 13:21   ` Artem Bityutskiy
2012-11-06 10:51 ` [PATCH 3/3] omap3 nand : use NAND_BUSWIDTH_AUTO Matthieu CASTET
2012-11-06 12:37   ` Igor Grinberg
2012-11-06 16:47     ` Matthieu CASTET
2012-11-06 18:40       ` Tony Lindgren
2012-11-16  8:22         ` Artem Bityutskiy
2012-11-22 17:48           ` Matthieu CASTET
2012-12-03 10:20 ` [PATCH 1/3] mtd nand : onfi need to be probed in 8 bits mode Artem Bityutskiy
2012-12-24  0:29   ` Paul Walmsley
2013-01-02  9:51     ` Matthieu CASTET
2013-01-03 17:10       ` Paul Walmsley
2013-01-16 14:28         ` Matthieu CASTET
2013-01-16 17:15           ` Paul Walmsley
2013-01-22  2:27             ` Paul Walmsley
2013-02-06 23:21               ` Paul Walmsley
2013-02-07  9:47                 ` Matthieu CASTET
2013-03-01 14:02                   ` Matthieu CASTET
2013-04-02 18:28                     ` Paul Walmsley

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