net: phy: Use PHY MDIO address from DT if available
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 28 Jan 2024 01:19:40 +0000 (02:19 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 9 Mar 2024 15:58:48 +0000 (10:58 -0500)
commit91e70367a5dcfe04227d6b85a4a88c7a5b43f472
tree9da79a34379dd28b477c7394e6d29058e516d771
parent485bfe1adbb3f6eb112424fc9e7cc399c16daef5
net: phy: Use PHY MDIO address from DT if available

In case the PHY is fully described in DT, use PHY MDIO address
from DT directly instead of always using auto-detection. This
also fixes the behavior of 'mdio list' in such DT setup, which
now prints the PHY connected to the MAC correctly.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
drivers/net/phy/ethernet_id.c