Skip to content

Commit b61c35e

Browse files
Kuwano-sanambarus
authored andcommitted
mtd: spi-nor: spansion: Use nor->addr_nbytes in octal DTR mode in RD_ANY_REG_OP
In octal DTR mode, RD_ANY_REG_OP needs to use 4-byte address regardless of flash's internal address mode. Use nor->addr_nbytes which is set to 4 during setup. Fixes: eff9604 ("mtd: spi-nor: spansion: add octal DTR support in RD_ANY_REG_OP") Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Link: https://lore.kernel.org/r/20241016000837.17951-1-Takahiro.Kuwano@infineon.com Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
1 parent afe1ea1 commit b61c35e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mtd/spi-nor/spansion.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ static int cypress_nor_sr_ready_and_clear_reg(struct spi_nor *nor, u64 addr)
106106
int ret;
107107

108108
if (nor->reg_proto == SNOR_PROTO_8_8_8_DTR) {
109+
op.addr.nbytes = nor->addr_nbytes;
109110
op.dummy.nbytes = params->rdsr_dummy;
110111
op.data.nbytes = 2;
111112
}

0 commit comments

Comments
 (0)