diff options
author | Geert Uytterhoeven <geert+renesas@linux-m68k.org> | 2014-01-15 10:48:55 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-16 16:02:49 -0500 |
commit | 7587f64d546d6a05dab0a7d1ac964e7ac12072f0 (patch) | |
tree | 4ec0ae05504a96f323bc42695059b0a12942df11 | |
parent | 05f7835975dad6b3b517f9e23415985e648fb875 (diff) |
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@linux-m68k.org>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r-- | 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 7b976e869636..19632e330d36 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) | |||
1250 | /* Dedicated 4-byte command set */ | 1250 | /* Dedicated 4-byte command set */ |
1251 | switch (flash->flash_read) { | 1251 | switch (flash->flash_read) { |
1252 | case M25P80_QUAD: | 1252 | case M25P80_QUAD: |
1253 | flash->read_opcode = OPCODE_QUAD_READ; | 1253 | flash->read_opcode = OPCODE_QUAD_READ_4B; |
1254 | break; | 1254 | break; |
1255 | case M25P80_FAST: | 1255 | case M25P80_FAST: |
1256 | flash->read_opcode = OPCODE_FAST_READ_4B; | 1256 | flash->read_opcode = OPCODE_FAST_READ_4B; |