Thread (6 messages) 6 messages, 4 authors, 2025-05-21

Re: [PATCH] net: dwmac-sun8i: Use parsed internal PHY address instead of 1

From: Andrew Lunn <andrew@lunn.ch>
Date: 2025-05-19 19:26:08
Also in: linux-arm-kernel, linux-sunxi, lkml

On Mon, May 19, 2025 at 06:49:36PM +0200, Paul Kocialkowski wrote:
While the MDIO address of the internal PHY on Allwinner sun8i chips is
generally 1, of_mdio_parse_addr is used to cleanly parse the address
from the device-tree instead of hardcoding it.

A commit reworking the code ditched the parsed value and hardcoded the
value 1 instead, which didn't really break anything but is more fragile
and not future-proof.

Restore the initial behavior using the parsed address returned from the
helper.

Fixes: 634db83b8265 ("net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs")
Signed-off-by: Paul Kocialkowski <paulk@sys-base.io>
Have you validated all .dts files using this binding? Any using
anything other than 1? The problem with silly bugs like this is that
there might be DT blobs with the value 42 which currently work, but
will break as soon as this patch lands.

Just stating in the commit message you have checked will help get the
patch merged.

      Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help