From: gexueyuan <gexueyuan@gmail.com>
To: krzk@kernel.org
Cc: linux-kernel@vger.kernel.org, gexueyuan <gexueyuan@gmail.com>
Subject: [PATCH] memory: pl353: fix macro definition of ecc page_size for arm pl353 static memory controller
Date: Wed, 31 Mar 2021 11:10:56 +0800 [thread overview]
Message-ID: <20210331031056.5326-1-gexueyuan@gmail.com> (raw)
the macro "PL353_SMC_ECC_MEMCFG_PGSIZE_MASK" should be 0x3,
according to the datasheet of pl353 smc
Signed-off-by: gexueyuan <gexueyuan@gmail.com>
---
drivers/memory/pl353-smc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/memory/pl353-smc.c b/drivers/memory/pl353-smc.c
index 3b5b1045edd9..9c0a28416777 100644
--- a/drivers/memory/pl353-smc.c
+++ b/drivers/memory/pl353-smc.c
@@ -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 */
--
2.17.1
next reply other threads:[~2021-03-31 3:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-31 3:10 gexueyuan [this message]
2021-04-05 14:17 ` [PATCH] memory: pl353: fix macro definition of ecc page_size for arm pl353 static memory controller Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210331031056.5326-1-gexueyuan@gmail.com \
--to=gexueyuan@gmail.com \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.