[PATCH v5 2/8] rtc: goldfish: Use __raw_readl() and __raw_writel()
Simon Glass
sjg at chromium.org
Tue Apr 28 15:59:33 CEST 2026
On 2026-04-16T09:39:20, Daniel Palmer <daniel at thingy.jp> wrote:
> rtc: goldfish: Use __raw_readl() and __raw_writel()
>
> In QEMU, the Goldfish RTC is explicitly instantiated as a big-endian
> device on the m68k virt machine (via the 'big-endian=true' property).
> Currently, this driver uses ioread32() and iowrite32(), which works
> by luck because the underlying readl() and writel() are currently
> broken on m68k.
>
> Use __raw_readl() and __raw_writel() instead to avoid breaking this
> driver when the endianness of readl() and writel() is fixed.
>
> Signed-off-by: Kuan-Wei Chiu <visitorckw at gmail.com>
> Tested-by: Daniel Palmer <daniel at thingy.jp>
> Signed-off-by: Daniel Palmer <daniel at thingy.jp>
>
> drivers/rtc/goldfish_rtc.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list