linux-stable/drivers/net
Michael Sit Wei Hong 8fbc10b995 net: stmmac: check fwnode for phy device before scanning for phy
Some DT devices already have phy device configured in the DT/ACPI.
Current implementation scans for a phy unconditionally even though
there is a phy listed in the DT/ACPI and already attached.

We should check the fwnode if there is any phy device listed in
fwnode and decide whether to scan for a phy to attach to.

Fixes: fe2cfbc968 ("net: stmmac: check if MAC needs to attach to a PHY")
Reported-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/lkml/20230403212434.296975-1-martin.blumenstingl@googlemail.com/
Tested-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Shahab Vahedi <shahab@synopsys.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Suggested-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Michael Sit Wei Hong <michael.wei.hong.sit@intel.com>
Link: https://lore.kernel.org/r/20230406024541.3556305-1-michael.wei.hong.sit@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-04-06 08:10:43 -07:00
..
appletalk
arcnet
bonding
caif
can
dsa net: dsa: mv88e6xxx: Reset mv88e6393x force WD event bit 2023-04-02 13:32:37 +01:00
ethernet net: stmmac: check fwnode for phy device before scanning for phy 2023-04-06 08:10:43 -07:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa net: ipa: compute DMA pool size properly 2023-03-29 21:27:40 -07:00
ipvlan
mctp
mdio net: mdio: thunder: Add missing fwnode_handle_put() 2023-03-23 08:46:55 +00:00
netdevsim
pcs
phy net: sfp: add quirk enabling 2500Base-x for HG MXPD-483II 2023-04-03 10:01:17 +01:00
plip
ppp
pse-pd
slip
team
thunderbolt
usb net: asix: fix modprobe "sysfs: cannot create duplicate filename" 2023-03-22 22:04:04 -07:00
vmxnet3 vmxnet3: use gro callback when UPT is enabled 2023-03-24 19:13:49 -07:00
vxlan
wan
wireguard
wireless wireless fixes for v6.3 2023-04-05 17:24:26 -07:00
wwan net: wwan: t7xx: do not compile with -Werror 2023-03-31 09:34:53 +01:00
xen-netback xen/netback: use same error messages for same errors 2023-03-30 15:39:23 +02:00
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c net/net_failover: fix txq exceeding warning 2023-03-27 08:08:57 +01:00
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
tun.c
veth.c bpf-for-netdev 2023-03-23 16:03:33 -07:00
virtio_net.c
vrf.c
vsockmon.c
xen-netfront.c