From: Takahiro Kuwano Date: Thu, 1 Sep 2022 06:05:30 +0000 (+0900) Subject: mtd: spi-nor-core: Default to addr_width of 3 for configurable widths X-Git-Tag: v2023.07~284^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee1c709cfde71b339a5c5dd0788522340c4c7e92;p=platform%2Fkernel%2Fu-boot.git mtd: spi-nor-core: Default to addr_width of 3 for configurable widths JESD216D-01 mentions that "defaults to 3-Byte mode; enters 4-Byte mode on command." Signed-off-by: Takahiro Kuwano Reviewed-by: Jagan Teki --- diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index ec9b07a..f8d5669 100644 --- a/drivers/mtd/spi/spi-nor-core.c +++ b/drivers/mtd/spi/spi-nor-core.c @@ -2236,6 +2236,7 @@ static int spi_nor_parse_bfpt(struct spi_nor *nor, /* Number of address bytes. */ switch (bfpt.dwords[BFPT_DWORD(1)] & BFPT_DWORD1_ADDRESS_BYTES_MASK) { case BFPT_DWORD1_ADDRESS_BYTES_3_ONLY: + case BFPT_DWORD1_ADDRESS_BYTES_3_OR_4: nor->addr_width = 3; break;