From: Mike Frysinger <vapier@gentoo.org>
To: David Woodhouse <David.Woodhouse@intel.com>,
Chen Gong <g.chen@freescale.com>
Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
Michael Hennerich <Michael.Hennerich@analog.com>
Subject: [PATCH] m25p80: fix detection of m25p16 flashes
Date: Thu, 30 Oct 2008 15:59:46 -0400 [thread overview]
Message-ID: <1225396786-23679-1-git-send-email-vapier@gentoo.org> (raw)
In-Reply-To: <1225286467-17955-1-git-send-email-vapier@gentoo.org>
Commit d0e8c47c58575b9131e786edb488fd029eba443e added support for extended ids
but seems to break on flashes which don't have an extended id defined. If the
table does not have an extid defined, then we should ignore it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Hennerich <Michael.Hennerich@analog.com>
---
drivers/mtd/devices/m25p80.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index a298fed..6188fd4 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -575,7 +575,7 @@ static struct flash_info *__devinit jedec_probe(struct spi_device *spi)
tmp < ARRAY_SIZE(m25p_data);
tmp++, info++) {
if (info->jedec_id == jedec) {
- if (ext_jedec != 0 && info->ext_id != ext_jedec)
+ if (info->ext_id != 0 && info->ext_id != ext_jedec)
continue;
return info;
}
--
1.6.0.2
next prev parent reply other threads:[~2008-10-30 20:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-29 13:21 [PATCH] m25p80: fix detection of SPI parts Mike Frysinger
2008-10-30 19:59 ` Mike Frysinger [this message]
2008-11-03 21:37 ` [PATCH] m25p80: fix detection of m25p16 flashes Andrew Morton
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=1225396786-23679-1-git-send-email-vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=David.Woodhouse@intel.com \
--cc=Michael.Hennerich@analog.com \
--cc=g.chen@freescale.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
/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
all inboxes | Powered by JetHome®