On 2026-05-05T07:49:33, Daniel Palmer <[email protected]> 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 <[email protected]> > Tested-by: Daniel Palmer <[email protected]> > Signed-off-by: Daniel Palmer <[email protected]> > > drivers/rtc/goldfish_rtc.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Simon Glass <[email protected]>

