Skip to contentSkip to conversation

memory: pl353: fix macro definition of ecc page_size for arm pl353 static memory controller

PATCH Applied gexueyuan 2 participants 2 messages Mar 31, 2021 – Apr 5, 2021

Subsystems (2)
lore
Share & tools
lore

gexueyuan

author
#0 lore raw

PATCH 1/1 memory: pl353: fix macro definition of ecc page_size for arm pl353 static memory controller

    the macro "PL353_SMC_ECC_MEMCFG_PGSIZE_MASK" should be 0x3,

according to the datasheet of pl353 smc

---
 drivers/memory/pl353-smc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/memory/pl353-smc.c +1 -1
index 3b5b1045edd9..9c0a28416777 100644
@@ -63,7 +63,7 @@
 /* ECC memory config register specific constants */
 #define PL353_SMC_ECC_MEMCFG_MODE_MASK	0xC
 #define PL353_SMC_ECC_MEMCFG_MODE_SHIFT	2
-#define PL353_SMC_ECC_MEMCFG_PGSIZE_MASK	0xC
+#define PL353_SMC_ECC_MEMCFG_PGSIZE_MASK	0x3
 
 #define PL353_SMC_DC_UPT_NAND_REGS	((4 << 23) |	/* CS: NAND chip */ \
 				 (2 << 21))	/* UpdateRegs operation */
Signature · 1 line
2.17.1
#1 lore raw
Quoted 2 lines · gexueyuan
    the macro "PL353_SMC_ECC_MEMCFG_PGSIZE_MASK" should be 0x3,

according to the datasheet of pl353 smc

Applied, with fixes in commit msg and adding Fixes tag. Please do not forget about Fixes tag and start new sentences with capital letter. Thanks.

[1/1] memory: pl353: fix macro definition of ecc page_size for arm pl353 static memory controller

      commit: 25dcca7fedcd4e31cb368ad846bfd738c0c6307c

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>