In commit 5273cc6df984 ("mtd: spi-nor: core: Call spi_nor_post_sfdp_fixups()
only when SFDP is defined"), the spi_nor_post_sfdp_fixups() is moved into
spi_nor_parse_sfdp() function, and will be called after the SFDP header
getted. But for S32G EVB boards, there is no valid SFDP header, then the
post_sfdp() callback can not be called to set the correct command extension
type. So we need late_init() callback setting to resolve this situation, and
for current issue, we just set the late_init to mx25uw51245g_post_sfdp_fixup
to ensure same settings as SDK for the flash chip.

Signed-off-by: Zhantao Tang <zhantao.t...@windriver.com>
---
 drivers/mtd/spi-nor/macronix.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c
index 39e5fa95714b..ffcaaf89ed36 100644
--- a/drivers/mtd/spi-nor/macronix.c
+++ b/drivers/mtd/spi-nor/macronix.c
@@ -131,6 +131,7 @@ static struct spi_nor_fixups mx25uw51245g_fixups = {
        .default_init = mx25uw51245g_default_init,
        .post_bfpt = mx25uw51245g_post_bfpt_fixup,
        .post_sfdp = mx25uw51245g_post_sfdp_fixup,
+       .late_init = mx25uw51245g_post_sfdp_fixup,
 };
 
 static const struct flash_info macronix_nor_parts[] = {
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12788): 
https://lists.yoctoproject.org/g/linux-yocto/message/12788
Mute This Topic: https://lists.yoctoproject.org/mt/99749562/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to