projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a4b6f8
)
mtd: spi-nor-core: Fix index value for SCCR dwords
author
Takahiro Kuwano
<Takahiro.Kuwano@infineon.com>
Mon, 12 Sep 2022 05:25:40 +0000
(14:25 +0900)
committer
Jagan Teki
<jagan@edgeble.ai>
Sun, 23 Oct 2022 05:22:16 +0000
(10:52 +0530)
Array index for SCCR 22th DWORD should be 21.
Fixes:
bebdc237507c
("mtd: spi-nor: Parse SFDP SCCR Map")
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-core.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi/spi-nor-core.c
b/drivers/mtd/spi/spi-nor-core.c
index
44674cb
..
78de3c5
100644
(file)
--- a/
drivers/mtd/spi/spi-nor-core.c
+++ b/
drivers/mtd/spi/spi-nor-core.c
@@
-2520,7
+2520,7
@@
static int spi_nor_parse_sccr(struct spi_nor *nor,
for (i = 0; i < sccr_header->length; i++)
table[i] = le32_to_cpu(table[i]);
- if (FIELD_GET(SCCR_DWORD22_OCTAL_DTR_EN_VOLATILE, table[2
2
]))
+ if (FIELD_GET(SCCR_DWORD22_OCTAL_DTR_EN_VOLATILE, table[2
1
]))
nor->flags |= SNOR_F_IO_MODE_EN_VOLATILE;
out: