[PATCH v2 08/19] cache: andes_llcache: use u32 and fix the cache-line-size error message
Mina Hui-Min Chou
minachou at andestech.com
Thu Nov 12 23:11:32 PST 2026
andes_cpu_llc_get_cctl_status() returns uint32_t, while the rest of the
driver uses u32. Use u32 there as well.
When the cache-line-size property cannot be read, the error message
says the driver defaults to 64 bytes, but the driver returns the error
and does not register its cache ops. Drop the misleading part of the
message.
No functional change intended.
Signed-off-by: Mina Hui-Min Chou <minachou at andestech.com>
---
drivers/cache/andes_llcache.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/cache/andes_llcache.c b/drivers/cache/andes_llcache.c
index 3c271e1e49bf..0aea1389f291 100644
--- a/drivers/cache/andes_llcache.c
+++ b/drivers/cache/andes_llcache.c
@@ -54,7 +54,7 @@ struct andes_priv {
static struct andes_priv andes_priv;
/* LLC operations */
-static inline uint32_t andes_cpu_llc_get_cctl_status(void)
+static inline u32 andes_cpu_llc_get_cctl_status(void)
{
return readl(andes_priv.llc_base + ANDES_LLC_REG_CCTL_STATUS_OFFSET_C0);
}
@@ -145,7 +145,7 @@ static int andes_get_llc_line_size(struct device_node *np)
ret = of_property_read_u32(np, "cache-line-size", &andes_priv.andes_cache_line_size);
if (ret) {
- pr_err("Failed to get cache-line-size, defaulting to 64 bytes\n");
+ pr_err("Failed to get cache-line-size\n");
return ret;
}
--
2.34.1
More information about the linux-riscv
mailing list