Skip to content
Commit f58e7b24 authored by Takahiro Kuwano's avatar Takahiro Kuwano Committed by Jagan Teki
Browse files

mtd: spi-nor-core: Rework spansion_read/write_any_reg() to use addr_mode_nbytes



Read/Write Any Register commands take 3- or 4- byte address depending on
flash's internal address mode. The nor->addr_width tracks number of
address bytes used in read/program/erase ops that can be 4
(with 4B opcodes) regardless of flash's internal address mode. The
nor->addr_mode_nbytes tracks flash's internal address mode so replace
nor->addr_width by that.

Signed-off-by: default avatarTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Reviewed-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent 4d60001f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment