diff options
author | Andrew Halaney <ahalaney@redhat.com> | 2023-12-13 01:18:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-12-20 19:01:50 +0300 |
commit | 58c556661641c5ecbfc064067a31729d8d2c193d (patch) | |
tree | de80f9dbca0ab437561e740786d1c50b9ce2ef00 /net/appletalk/ddp.c | |
parent | ad531dfcc648eb24d512a4acfeec76000eabaf42 (diff) | |
download | linux-58c556661641c5ecbfc064067a31729d8d2c193d.tar.xz |
net: stmmac: Handle disabled MDIO busses from devicetree
[ Upstream commit e23c0d21ce9234fbc31ece35663ababbb83f9347 ]
Many hardware configurations have the MDIO bus disabled, and are instead
using some other MDIO bus to talk to the MAC's phy.
of_mdiobus_register() returns -ENODEV in this case. Let's handle it
gracefully instead of failing to probe the MAC.
Fixes: 47dd7a540b8a ("net: add support for STMicroelectronics Ethernet controllers.")
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Link: https://lore.kernel.org/r/20231212-b4-stmmac-handle-mdio-enodev-v2-1-600171acf79f@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/appletalk/ddp.c')
0 files changed, 0 insertions, 0 deletions