Commit 809ff97
net: usb: smsc95xx: fix external PHY reset
An external PHY needs settling time after power up or reset.
In the bind() function an mdio bus is registered. If at this point
the external PHY is still initialising, no valid PHY ID will be
read and on phy_find_first() the bind() function will fail.
If an external PHY is present, wait the maximum time specified
in 802.3 45.2.7.1.1.
Fixes: 05b35e7 ("smsc95xx: add phylib support")
Signed-off-by: Alexandru Tachici <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>1 parent e103ba3 commit 809ff97
1 file changed
+42
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
255 | 293 | | |
256 | 294 | | |
257 | 295 | | |
| |||
1052 | 1090 | | |
1053 | 1091 | | |
1054 | 1092 | | |
1055 | | - | |
1056 | 1093 | | |
1057 | 1094 | | |
1058 | 1095 | | |
| |||
1133 | 1170 | | |
1134 | 1171 | | |
1135 | 1172 | | |
1136 | | - | |
1137 | | - | |
| 1173 | + | |
| 1174 | + | |
1138 | 1175 | | |
1139 | 1176 | | |
1140 | 1177 | | |
1141 | 1178 | | |
1142 | 1179 | | |
| 1180 | + | |
1143 | 1181 | | |
1144 | 1182 | | |
1145 | 1183 | | |
| |||
1160 | 1198 | | |
1161 | 1199 | | |
1162 | 1200 | | |
1163 | | - | |
| 1201 | + | |
1164 | 1202 | | |
1165 | 1203 | | |
1166 | 1204 | | |
| |||
0 commit comments