diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2021-06-11 10:01:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-11 13:29:57 +0200 |
commit | 0a6c0ba5949a200e3c5066f5766ff395d843027b (patch) | |
tree | 0e4f5c408035cf70882e7b0d46e8dd9eb4f661ae /drivers/spi | |
parent | 76a9ddcc018c265337149a11c148ecc29c54d761 (diff) | |
download | barebox-0a6c0ba5949a200e3c5066f5766ff395d843027b.tar.gz |
include: <io.h>: define (read|write)[bwlq]_relaxed
For Linux, It's always correct to substitute any of the read or
write _relaxed functions with their non relaxed counterpart.
Define functions that do this.
Unlike with Linux, they doesn't per se affect performance: barebox
writel doesn't imply memory barriers, instead it depends on
the architecture support to map IO memory regions as non-bufferable.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Link: https://lore.barebox.org/20210611080155.3555976-1-ahmad@a3f.at
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/atmel-quadspi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index 6799f95ea3..af2191726f 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -34,9 +34,6 @@ #include <of_device.h> #include <linux/iopoll.h> -#define writel_relaxed writel -#define readl_relaxed readl - /* QSPI register offsets */ #define QSPI_CR 0x0000 /* Control Register */ #define QSPI_MR 0x0004 /* Mode Register */ |