]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
mtd: m25p80: Fix false-positive probing
authorAnton Vorontsov <avorontsov@mvista.com>
Tue, 22 Jun 2010 16:57:34 +0000 (20:57 +0400)
committerJohn Linn <john.linn@xilinx.com>
Thu, 14 Oct 2010 18:50:30 +0000 (12:50 -0600)
commit1080f16e7e3526a75a2f8a568b9503525c2f27fb
treece32e4e3b7f515d49aaa61b1d6f8a080362ca6a5
parentfc9f950ac8e5666afe7627525328b1ea3d64f222
mtd: m25p80: Fix false-positive probing

Since commit 18c6182bae0acca220ed6611f741034d563cd19f ("Rework
probing/JEDEC code"), m25p80 driver successfully registers chips
even if JEDEC probing fails.

This was needed to support non-JEDEC flashes. Though, it appears
that some platforms (e.g. blackfin bf533 stamp[1]) used the old
behavior to detect if there's any flash connected, so the driver
have to fail on JEDEC probing errors.

This patch restores the old behavior for JEDEC flashes, and adds
"-nonjedec" SPI device IDs for M25Pxx flashes, so that the kernel
still supports non-JEDEC flashes.

[1] http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=5975

Reported-by: Mingquan Pan
Reported-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/m25p80.c