summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@linaro.org>2023-07-26 10:52:57 +0300
committerTudor Ambarus <tudor.ambarus@linaro.org>2023-07-26 12:39:11 +0300
commitaa517a29d6457e8afcbe8e7e9eb8813594c39d1f (patch)
tree578034bb7ce559698084aacb988fb2783655d18e /net/core
parentfb63bfad1e8f9f893c2bd5fa3eecb92aa632a3e8 (diff)
downloadlinux-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