[PATCH net v2] net: ti: icssg-prueth: Fix 1 PPS sync
Andrew Lunn
andrew at lunn.ch
Thu Oct 24 12:55:38 PDT 2024
> +static inline u64 icssg_readq(const void __iomem *addr)
> +{
> + return readl(addr) + ((u64)readl(addr + 4) << 32);
> +}
> +
> +static inline void icssg_writeq(u64 val, void __iomem *addr)
> +{
> + writel(lower_32_bits(val), addr);
> + writel(upper_32_bits(val), addr + 4);
> +}
Could readq() and writeq() be used, rather than your own helpers?
Andrew
More information about the linux-arm-kernel
mailing list