diff options
author | Tudor Ambarus <[email protected]> | 2023-07-26 10:52:57 +0300 |
---|---|---|
committer | Tudor Ambarus <[email protected]> | 2023-07-26 12:39:11 +0300 |
commit | aa517a29d6457e8afcbe8e7e9eb8813594c39d1f (patch) | |
tree | 578034bb7ce559698084aacb988fb2783655d18e /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | fb63bfad1e8f9f893c2bd5fa3eecb92aa632a3e8 (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Tudor Ambarus <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions