From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH master 1/3] soc: sifive: l2_cache: fix 32-bit compilation
Date: Tue, 2 Apr 2024 15:44:59 +0200 [thread overview]
Message-ID: <20240402134501.3689322-1-a.fatoum@pengutronix.de> (raw)
The StarFive SoCs are 64-bit, but the L2 cache driver could be
compile-tested on 32-bit as well. Currently, this would fail, because
writeq isn't defined. Fix this by emulating it using a lo-hi write.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/soc/sifive/sifive_l2_cache.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soc/sifive/sifive_l2_cache.c b/drivers/soc/sifive/sifive_l2_cache.c
index aab21f9f50e6..c404143974fc 100644
--- a/drivers/soc/sifive/sifive_l2_cache.c
+++ b/drivers/soc/sifive/sifive_l2_cache.c
@@ -9,6 +9,7 @@
#define pr_fmt(fmt) "sifive-l2: " fmt
#include <io.h>
+#include <io-64-nonatomic-lo-hi.h>
#include <linux/printk.h>
#include <stdio.h>
#include <driver.h>
--
2.39.2
next reply other threads:[~2024-04-02 13:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-02 13:44 Ahmad Fatoum [this message]
2024-04-02 13:45 ` [PATCH master 2/3] RISC-V: riscvemu: build overlay as DTSO Ahmad Fatoum
2024-04-02 13:45 ` [PATCH master 3/3] treewide: replace references to barebox.org/jsbarebox with demo Ahmad Fatoum
2024-04-03 11:33 ` [PATCH master 1/3] soc: sifive: l2_cache: fix 32-bit compilation Sascha Hauer
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=20240402134501.3689322-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox