Skip to content
Commit 8fbc10b9 authored by Michael Sit Wei Hong's avatar Michael Sit Wei Hong Committed by Jakub Kicinski
Browse files

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: fe2cfbc9

 ("net: stmmac: check if MAC needs to attach to a PHY")
Reported-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/lkml/20230403212434.296975-1-martin.blumenstingl@googlemail.com/


Tested-by: default avatarGuenter Roeck <linux@roeck-us.net>
Tested-by: default avatarShahab Vahedi <shahab@synopsys.com>
Tested-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Tested-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Suggested-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarMichael 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: default avatarJakub Kicinski <kuba@kernel.org>
parent 24e3fce0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment