[PATCH v5 3/8] timer: goldfish: Use __raw_readl()
Simon Glass
sjg at chromium.org
Tue Apr 28 15:59:39 CEST 2026
On 2026-04-16T09:39:20, Daniel Palmer <daniel at thingy.jp> wrote:
> timer: goldfish: Use __raw_readl()
>
> The Goldfish timer registers are native endian, so they act as
> big-endian on the m68k virt machine. Currently, this driver uses
> readl(), which works by luck because it's currently broken on m68k.
>
> Use __raw_readl() instead to avoid breaking this driver when the
> endianness of readl() 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/timer/goldfish_timer.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list