diff options
| author | Takahiro Kuwano <Takahiro.Kuwano@infineon.com> | 2022-09-01 15:05:30 +0900 |
|---|---|---|
| committer | Jagan Teki <jagan@edgeble.ai> | 2022-10-23 10:50:04 +0530 |
| commit | ee1c709cfde71b339a5c5dd0788522340c4c7e92 (patch) | |
| tree | 0b45e226e5a280a81519d792f291410af4ac8e68 | |
| parent | de9e8378a8f66c5547dc2e5942c7f89c5771d53a (diff) | |
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 <Takahiro.Kuwano@infineon.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
| -rw-r--r-- | drivers/mtd/spi/spi-nor-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index ec9b07a78f3..f8d56699690 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; |
