Skip to contentSkip to conversation

mtd: m25p80: Use OPCODE_QUAD_READ_4B for 4-byte addressing

PATCH Applied Geert Uytterhoeven 5 participants 6 messages Jan 15, 2014 – Jan 18, 2014 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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
index bf358326c335..0e9e78acc677 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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-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.

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
index bf358326c335..0e9e78acc677 100644

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

Applied
#2 lore raw
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-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.

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

Looks all right.

Pushed to l2-mtd.git.

Brian

#3 lore raw
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-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.

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

Looks all right.

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

#4 lore raw
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-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.

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

Looks all right.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

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

#5 lore raw
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-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.

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

Looks all right.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

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.