]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor: Check nor->info before setting macronix_octal_fixups
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Tue, 15 Oct 2024 04:08:33 +0000 (13:08 +0900)
committerTom Rini <trini@konsulko.com>
Tue, 15 Oct 2024 14:57:49 +0000 (08:57 -0600)
commitb8b610e7d4c5e086f7e97592878527adfa744075
tree35c0e12fffcba8c9a14fa3bbc42bc7607f3bb6e1
parent88057dab2cde8710ccc95d12fb312184e0b023ca
mtd: spi-nor: Check nor->info before setting macronix_octal_fixups

The macronix_octal_fixups should be set only when mfr and flags match.

Fixes: df3d5f9e41 ("mtd: spi-nor: add support for Macronix Octal flash")
Acked-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Cc: JaimeLiao <jaimeliao.tw@gmail.com>
drivers/mtd/spi/spi-nor-core.c