[PATCH] include: <io.h>: define (read|write)[bwlq]_relaxed

Sascha Hauer sha at pengutronix.de
Fri Jun 11 04:30:28 PDT 2021


On Fri, Jun 11, 2021 at 10:01:55AM +0200, Ahmad Fatoum wrote:
> 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 at a3f.at>
> ---
>  drivers/clk/rockchip/clk.h        |  3 ---
>  drivers/gpio/gpio-davinci.c       |  3 ---
>  drivers/regulator/stm32-vrefbuf.c |  4 +---
>  drivers/spi/atmel-quadspi.c       |  3 ---
>  include/io.h                      | 32 +++++++++++++++++++++++++++++++
>  5 files changed, 33 insertions(+), 12 deletions(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list