mtd: m25p80: Use OPCODE_QUAD_READ_4B for 4-byte addressing
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jan 28 00:59:07 EST 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=7587f64d546d6a05dab0a7d1ac964e7ac12072f0
Commit: 7587f64d546d6a05dab0a7d1ac964e7ac12072f0
Parent: 05f7835975dad6b3b517f9e23415985e648fb875
Author: Geert Uytterhoeven <geert+renesas at linux-m68k.org>
AuthorDate: Wed Jan 15 16:48:55 2014 +0100
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Thu Jan 16 13:02:49 2014 -0800
mtd: m25p80: Use OPCODE_QUAD_READ_4B for 4-byte addressing
commit 3487a63955c34ea508bcf4ca5131ddd953876e2d ("drivers: mtd: m25p80: add
quad read support") in -next added both the 3-byte OPCODE_QUAD_READ and the
4-byte OPCODE_QUAD_READ_4B, but incorrectly uses OPCODE_QUAD_READ for both
3-byte and 4-byte addressing.
Use OPCODE_QUAD_READ_4B in the 4-byte case to fix this.
Signed-off-by: Geert Uytterhoeven <geert+renesas at linux-m68k.org>
Acked-by: Marek Vasut <marex at denx.de>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/devices/m25p80.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 7b976e8..19632e3 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -1250,7 +1250,7 @@ static int m25p_probe(struct spi_device *spi)
/* Dedicated 4-byte command set */
switch (flash->flash_read) {
case M25P80_QUAD:
- flash->read_opcode = OPCODE_QUAD_READ;
+ flash->read_opcode = OPCODE_QUAD_READ_4B;
break;
case M25P80_FAST:
flash->read_opcode = OPCODE_FAST_READ_4B;
More information about the linux-mtd-cvs
mailing list