diff options
author | Tudor Ambarus <tudor.ambarus@linaro.org> | 2023-07-26 10:52:57 +0300 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@linaro.org> | 2023-07-26 12:39:11 +0300 |
commit | aa517a29d6457e8afcbe8e7e9eb8813594c39d1f (patch) | |
tree | 578034bb7ce559698084aacb988fb2783655d18e /net/core | |
parent | fb63bfad1e8f9f893c2bd5fa3eecb92aa632a3e8 (diff) | |
download | linux-aa517a29d6457e8afcbe8e7e9eb8813594c39d1f.tar.xz |
mtd: spi-nor: spansion: switch cypress_nor_get_page_size() to use vreg_offset
All users of cypress_nor_get_page_size() but S25FS256T retrieve n_dice
and vreg_offset from SFDP. S25FS256T does not define the SCCR map to
retrive the vreg_offset, but it does support it: SPINOR_REG_CYPRESS_VREG.
Switch cypress_nor_get_page_size() to always use vreg_offset so that we
use the same code base for both single and multi chip package flashes.
cypress_nor_get_page_size() is now called in the post_sfdp() hook instead
of post_bfpt(), as vreg_offset and n_dice are parsed after BFPT.
Consequently the null checks on n_dice and vreg_offset are moved to
the post_sfdp() hook.
Tested-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Link: https://lore.kernel.org/r/20230726075257.12985-12-tudor.ambarus@linaro.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions