mtd: m25p80: Use OPCODE_QUAD_READ_4B for 4-byte addressing
PATCH 1/1 mtd: m25p80: Use OPCODE_QUAD_READ_4B for 4-byte addressing
From: Geert Uytterhoeven <[email protected]>
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.
--- drivers/mtd/devices/m25p80.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/devices/m25p80.c +1 -1
@@ -1258,7 +1258,7 @@ pr_info("jid = 0x%p\n", jid);/* 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 ;
Signature · 1 line
1.7.9.5
Quoted 10 lines · Geert Uytterhoeven
From: Geert Uytterhoeven <[email protected]>
commit
3487a63955c34ea508bcf4ca5131ddd953876e2d("drivers: mtd: m25p80: add quad read support") in -next added both the 3-byteOPCODE_QUAD_READand the 4-byteOPCODE_QUAD_READ_4B, but incorrectly usesOPCODE_QUAD_READfor both 3-byte and 4-byte addressing.Use
OPCODE_QUAD_READ_4Bin the 4-byte case to fix this.Signed-off-by Geert Uytterhoeven <[email protected]>
Looks all right.
Quoted 9 lines
--- drivers/mtd/devices/m25p80.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/devices/m25p80.c +0
-0
drivers/mtd/devices/m25p80.c pr_info("jid = 0x%p\n", jid); · line 1264
Quoted 8 lines
drivers/mtd/devices/m25p80.c +1
-1@@ -1258,7 +1258,7 @@ pr_info("jid = 0x%p\n", jid);/* 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 ;
Best regards,
Marek Vasut
Brian Norris
AppliedQuoted 9 lines · Marek Vasut
Quoted 8 lines · Geert Uytterhoeven
From: Geert Uytterhoeven <[email protected]>
commit
3487a63955c34ea508bcf4ca5131ddd953876e2d("drivers: mtd: m25p80: add quad read support") in -next added both the 3-byteOPCODE_QUAD_READand the 4-byteOPCODE_QUAD_READ_4B, but incorrectly usesOPCODE_QUAD_READfor both 3-byte and 4-byte addressing.Use
OPCODE_QUAD_READ_4Bin the 4-byte case to fix this.
Wow, I noticed this and had a patch privately queued over a month ago for this, but I forgot to send it out... Thanks for noticing!
Quoted 5 lines
Quoted 1 line
Signed-off-by Geert Uytterhoeven <[email protected]>Looks all right.
Acked-by Marek Vasut <[email protected]>
Pushed to l2-mtd.git.
Brian
Quoted 14 lines · Brian Norris
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Geert Uytterhoeven
From: Geert Uytterhoeven <[email protected]>
commit
3487a63955c34ea508bcf4ca5131ddd953876e2d("drivers: mtd: m25p80: add quad read support") in -next added both the 3-byteOPCODE_QUAD_READand the 4-byteOPCODE_QUAD_READ_4B, but incorrectly usesOPCODE_QUAD_READfor both 3-byte and 4-byte addressing.Use
OPCODE_QUAD_READ_4Bin the 4-byte case to fix this.Wow, I noticed this and had a patch privately queued over a month ago for this, but I forgot to send it out... Thanks for noticing!
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Geert Uytterhoeven <[email protected]>Looks all right.
Acked-by Marek Vasut <[email protected]>Pushed to l2-mtd.git.
this is a bad news to me. I have to send out a new version for the SPI NOR framework.
could this patch be merged after my spi-nor patch set? or create a new patch based on the spi-nor framework.
thanks
Huang Shijie
Quoted 19 lines · Huang Shijie
Quoted 18 lines · Brian Norris
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Geert Uytterhoeven
From: Geert Uytterhoeven <[email protected]>
commit
3487a63955c34ea508bcf4ca5131ddd953876e2d("drivers: mtd: m25p80: add quad read support") in -next added both the 3-byteOPCODE_QUAD_READand the 4-byteOPCODE_QUAD_READ_4B, but incorrectly usesOPCODE_QUAD_READfor both 3-byte and 4-byte addressing.Use
OPCODE_QUAD_READ_4Bin the 4-byte case to fix this.Wow, I noticed this and had a patch privately queued over a month ago for this, but I forgot to send it out... Thanks for noticing!
Quoted 4 lines
Quoted 1 line
Signed-off-by Geert Uytterhoeven <[email protected]>Looks all right.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Acked-by Marek Vasut <[email protected]>Pushed to l2-mtd.git.
this is a bad news to me. I have to send out a new version for the SPI NOR framework.
could this patch be merged after my spi-nor patch set? or create a new patch based on the spi-nor framework.
This patch is a priority, since it's a bugfix to one that's already queued up, so it must go first. I haven't taken a look at your latest series, and I haven't seen comments lately. Was everyone happy with it? If this conflict is the only problem, I'm sure that can be fixed trivially. But I'm not sure if it's ready yet anyway. I won't be able to get to it until next week (at the earliest).
Brian
Quoted 28 lines · Brian Norris
Quoted 19 lines · Huang Shijie
Quoted 18 lines · Brian Norris
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Geert Uytterhoeven
From: Geert Uytterhoeven <[email protected]>
commit
3487a63955c34ea508bcf4ca5131ddd953876e2d("drivers: mtd: m25p80: add quad read support") in -next added both the 3-byteOPCODE_QUAD_READand the 4-byteOPCODE_QUAD_READ_4B, but incorrectly usesOPCODE_QUAD_READfor both 3-byte and 4-byte addressing.Use
OPCODE_QUAD_READ_4Bin the 4-byte case to fix this.Wow, I noticed this and had a patch privately queued over a month ago for this, but I forgot to send it out... Thanks for noticing!
Quoted 4 lines
Quoted 1 line
Signed-off-by Geert Uytterhoeven <[email protected]>Looks all right.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Acked-by Marek Vasut <[email protected]>Pushed to l2-mtd.git.
this is a bad news to me. I have to send out a new version for the SPI NOR framework.
could this patch be merged after my spi-nor patch set? or create a new patch based on the spi-nor framework.
Quoted 6 lines
This patch is a priority, since it's a bugfix to one that's already queued up, so it must go first. I haven't taken a look at your latest series, and I haven't seen comments lately. Was everyone happy with it? If this conflict is the only problem, I'm sure that can be fixed trivially. But I'm not sure if it's ready yet anyway. I won't be able to get to it until next week (at the earliest).
I request all need to post the comments on this new framework, I have few points which stops me to believe this is well written [1]
[1] http://www.spinics.net/lists/arm-kernel/msg301517.html
Signature · 2 lines
Thanks, Jagan.