mtd: spi-nor: spansion: Use nor->addr_nbytes in octal DTR mode in RD_ANY_REG_OP
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Wed, 16 Oct 2024 00:08:37 +0000 (09:08 +0900)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Tue, 29 Oct 2024 08:23:00 +0000 (08:23 +0000)
commitb61c35e3404557779ec427c077f7a9f057bb053d
tree6e7b4e48d5748cca1f1778217f02d6f3d3883fc9
parentafe1ea1344bbd3a40be5a2547ff1b13899c5a7fa
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: eff9604390d6 ("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>
drivers/mtd/spi-nor/spansion.c