Commit d5c5093
net: stmmac: Add dedicated XPCS cleanup method
Currently the XPCS handler destruction is performed in the
stmmac_mdio_unregister() method. It doesn't look good because the handler
isn't originally created in the corresponding protagonist
stmmac_mdio_unregister(), but in the stmmac_xpcs_setup() function. In
order to have more coherent MDIO and XPCS setup/cleanup procedures,
let's move the DW XPCS destruction to the dedicated stmmac_pcs_clean()
method.
This method will also be used to cleanup PCS hardware using the
pcs_exit() callback that will be introduced to stmmac in a subsequent
patch.
Signed-off-by: Serge Semin <[email protected]>
Co-developed-by: Romain Gantois <[email protected]>
Signed-off-by: Romain Gantois <[email protected]>
Reviewed-by: Russell King (Oracle) <[email protected]>
Reviewed-by: Hariprasad Kelam <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent ab55887 commit d5c5093
File tree
3 files changed
+17
-4
lines changed- drivers/net/ethernet/stmicro/stmmac
3 files changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7789 | 7789 | | |
7790 | 7790 | | |
7791 | 7791 | | |
7792 | | - | |
7793 | 7792 | | |
| 7793 | + | |
| 7794 | + | |
7794 | 7795 | | |
7795 | 7796 | | |
7796 | 7797 | | |
| |||
7832 | 7833 | | |
7833 | 7834 | | |
7834 | 7835 | | |
| 7836 | + | |
| 7837 | + | |
| 7838 | + | |
7835 | 7839 | | |
7836 | 7840 | | |
7837 | 7841 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
526 | 537 | | |
527 | 538 | | |
528 | 539 | | |
| |||
679 | 690 | | |
680 | 691 | | |
681 | 692 | | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | 693 | | |
686 | 694 | | |
687 | 695 | | |
| |||
0 commit comments