Commit 37513c5
committed
mtd: spi-nor: core: Update flash's current address mode when changing address mode
The bug was obswerved while reading code. There are not many users of
addr_mode_nbytes. Anyway, we should update the flash's current address
mode when changing the address mode, fix it. We don't care for now about
the set_4byte_addr_mode(nor, false) from spi_nor_restore(), as it is
used at driver remove and shutdown.
Fixes: d7931a2 ("mtd: spi-nor: core: Track flash's internal address mode")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230331074606.3559258-9-tudor.ambarus@linaro.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>1 parent 7fe1b00 commit 37513c5
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3136 | 3136 | | |
3137 | 3137 | | |
3138 | 3138 | | |
| 3139 | + | |
3139 | 3140 | | |
3140 | 3141 | | |
3141 | 3142 | | |
| |||
3177 | 3178 | | |
3178 | 3179 | | |
3179 | 3180 | | |
3180 | | - | |
| 3181 | + | |
3181 | 3182 | | |
3182 | 3183 | | |
| 3184 | + | |
3183 | 3185 | | |
3184 | 3186 | | |
3185 | 3187 | | |
| |||
0 commit comments