diff options
| author | Serge Semin <[email protected]> | 2024-04-19 09:03:06 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-04-23 10:25:35 +0000 |
| commit | f951a64922a8576975673c42985a89a798e19b4e (patch) | |
| tree | 0527a6d72f3b7692f6ff893aa9bed06a9ebc5a17 /net/unix/garbage.c | |
| parent | net: stmmac: Rename phylink_get_caps() callback to update_caps() (diff) | |
| download | kernel-f951a64922a8576975673c42985a89a798e19b4e.tar.gz kernel-f951a64922a8576975673c42985a89a798e19b4e.zip | |
net: stmmac: Move MAC caps init to phylink MAC caps getter
After a set of recent fixes the stmmac_phy_setup() and
stmmac_reinit_queues() methods have turned to having some duplicated code.
Let's get rid from the duplication by moving the MAC-capabilities
initialization to the PHYLINK MAC-capabilities getter. The getter is
called during each network device interface open/close cycle. So the
MAC-capabilities will be initialized in generic device open procedure and
in case of the Tx/Rx queues re-initialization as the original code
semantics implies.
Signed-off-by: Serge Semin <[email protected]>
Reviewed-by: Romain Gantois <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
