projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b929c0
)
mtd: spi-nor: sfdp: Fix index value for SCCR dwords
author
Takahiro Kuwano
<Takahiro.Kuwano@infineon.com>
Mon, 26 Dec 2022 04:01:58 +0000
(13:01 +0900)
committer
Tudor Ambarus
<tudor.ambarus@linaro.org>
Mon, 26 Dec 2022 07:47:01 +0000
(09:47 +0200)
Array index for SCCR 22th DOWRD should be 21.
Fixes: 981a8d60e01f ("mtd: spi-nor: Parse SFDP SCCR Map")
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Michael Walle <michael@walle.cc>
Cc: stable@vger.kernel.org
Link:
https://lore.kernel.org/r/d8a2a77c2c95cf776e7dcae6392d29fdcf5d6307.1672026365.git.Takahiro.Kuwano@infineon.com
drivers/mtd/spi-nor/sfdp.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi-nor/sfdp.c
b/drivers/mtd/spi-nor/sfdp.c
index 8434f654eca1ea265ec0effae9a3d0981dfd7cdd..5df2fcba548302a9e67d0402fe951e6619620843 100644
(file)
--- a/
drivers/mtd/spi-nor/sfdp.c
+++ b/
drivers/mtd/spi-nor/sfdp.c
@@
-1228,7
+1228,7
@@
static int spi_nor_parse_sccr(struct spi_nor *nor,
le32_to_cpu_array(dwords, sccr_header->length);
- if (FIELD_GET(SCCR_DWORD22_OCTAL_DTR_EN_VOLATILE, dwords[2
2
]))
+ if (FIELD_GET(SCCR_DWORD22_OCTAL_DTR_EN_VOLATILE, dwords[2
1
]))
nor->flags |= SNOR_F_IO_MODE_EN_VOLATILE;
out: