public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Kyungmin Park <kyungmin.park@samsung.com>
To: tglx@linutronix.de
Cc: linux-mtd@lists.infradead.org
Subject: [PATCH] Find correct manufacture ID
Date: Wed, 16 Feb 2005 18:10:58 +0900	[thread overview]
Message-ID: <0IBZ008IQYUAKZ@mmp1.samsung.com> (raw)

	If you find 8-bit buswidth flash with 16-bit buswidth option, it
displays warning message.
	Before display you have to find correct manufacture ID.
 Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>

diff -u -r1.1.1.1 nand_base.c
--- drivers/mtd/nand/nand_base.c        13 Jan 2005 06:51:14 -0000      1.1.
1.1
+++ drivers/mtd/nand/nand_base.c        16 Feb 2005 08:19:48 -0000
@@ -2259,9 +2259,15 @@
                /* Check, if buswidth is correct. Hardware drivers should
set
                 * this correct ! */
                if (busw != (this->options & NAND_BUSWIDTH_16)) {
+                       /* Try to identify manufacturer */
+                       for (j = 0; nand_manuf_ids[j].id != 0x0; j++) {
+                               if (nand_manuf_ids[j].id == nand_maf_id)
+                                       break;
+                       }
                        printk (KERN_INFO "NAND device: Manufacturer ID:"
                                " 0x%02x, Chip ID: 0x%02x (%s %s)\n",
nand_maf_id, nand_dev_id,
-                               nand_manuf_ids[i].name , mtd->name);
+                               nand_manuf_ids[j].name , mtd->name);
                        printk (KERN_WARNING
                                "NAND bus width %d instead %d bit\n",
                                        (this->options & NAND_BUSWIDTH_16)
? 16 : 8,

                 reply	other threads:[~2005-02-16  9:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=0IBZ008IQYUAKZ@mmp1.samsung.com \
    --to=kyungmin.park@samsung.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=tglx@linutronix.de \
    /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