Commit 8b46595
net: phy: micrel: make sure the factory test bit is cleared
The KSZ8081 PHY has a factory test mode which is set at the de-assertion
of the hard reset based on the TXC pin. If a pull-down is missing, or if
the pin has a pull-up, the factory test mode should be cleared by
manually writing a 0 (according to the datasheet). This patch makes sure
this factory test bit is cleared in config_init().
Tested-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
[nicolas.ferre@microchip.com: backport to 4.19]
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>1 parent 473d9ba commit 8b46595
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
339 | 340 | | |
340 | 341 | | |
341 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
342 | 354 | | |
343 | 355 | | |
344 | 356 | | |
| |||
920 | 932 | | |
921 | 933 | | |
922 | 934 | | |
923 | | - | |
| 935 | + | |
924 | 936 | | |
925 | 937 | | |
926 | 938 | | |
| |||
0 commit comments