Commit 8fbc10b
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: fe2cfbc ("net: stmmac: check if MAC needs to attach to a PHY")
Reported-by: Martin Blumenstingl <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]/
Tested-by: Guenter Roeck <[email protected]>
Tested-by: Shahab Vahedi <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Tested-by: Martin Blumenstingl <[email protected]>
Suggested-by: Russell King (Oracle) <[email protected]>
Signed-off-by: Michael Sit Wei Hong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 24e3fce commit 8fbc10b
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1134 | 1134 | | |
1135 | 1135 | | |
1136 | 1136 | | |
| 1137 | + | |
1137 | 1138 | | |
1138 | | - | |
1139 | 1139 | | |
1140 | 1140 | | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
1141 | 1144 | | |
1142 | 1145 | | |
1143 | 1146 | | |
1144 | 1147 | | |
1145 | 1148 | | |
1146 | | - | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1147 | 1152 | | |
1148 | | - | |
1149 | 1153 | | |
1150 | 1154 | | |
1151 | 1155 | | |
1152 | | - | |
| 1156 | + | |
1153 | 1157 | | |
1154 | 1158 | | |
1155 | 1159 | | |
| |||
1165 | 1169 | | |
1166 | 1170 | | |
1167 | 1171 | | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
1168 | 1175 | | |
1169 | 1176 | | |
1170 | 1177 | | |
| |||
0 commit comments