[PATCH v6 3/8] timer: goldfish: Use __raw_readl()
Simon Glass
sjg at chromium.org
Thu May 7 15:27:16 CEST 2026
On 2026-05-05T07:49:33, 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