Commit 908bf46
committed
mtd: spi-nor: fix setting of SNOR_LAST_REGION bit
SNOR_LAST_REGION bit was incorrectly set in SNOR_ERASE_FLAGS_OFFSET,
causing the iteration over regions to fail. Remove
SNOR_ERASE_FLAGS_OFFSET entirely, since it's used just for initializing
the region's offset in uniform case and do the init by hand.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>1 parent f74b79f commit 908bf46
2 files changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2413 | 2413 | | |
2414 | 2414 | | |
2415 | 2415 | | |
2416 | | - | |
2417 | | - | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
2418 | 2419 | | |
2419 | 2420 | | |
2420 | 2421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | 299 | | |
307 | 300 | | |
308 | 301 | | |
| |||
0 commit comments