Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'net-stmmac-avoid-unnecessary-work-in-stmmac_release-stmmac_dvr_remove'

Russell King says:

====================
net: stmmac: avoid unnecessary work in stmmac_release()/stmmac_dvr_remove()

This small series is a subset of a RFC I sent earlier. These two
patches remove code that is unnecessary and/or wrong in these paths.
Details in each commit.
====================

Link: https://patch.msgid.link/Z87bpDd7QYYVU0ML@shell.armlinux.org.uk
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

-5
-5
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
··· 4129 4129 /* Release and free the Rx/Tx resources */ 4130 4130 free_dma_desc_resources(priv, &priv->dma_conf); 4131 4131 4132 - /* Disable the MAC Rx/Tx */ 4133 - stmmac_mac_set(priv, priv->ioaddr, false); 4134 - 4135 4132 /* Powerdown Serdes if there is */ 4136 4133 if (priv->plat->serdes_powerdown) 4137 4134 priv->plat->serdes_powerdown(dev, priv->plat->bsp_priv); ··· 7765 7768 7766 7769 pm_runtime_get_sync(dev); 7767 7770 7768 - stmmac_stop_all_dma(priv); 7769 - stmmac_mac_set(priv, priv->ioaddr, false); 7770 7771 unregister_netdev(ndev); 7771 7772 7772 7773 #ifdef CONFIG_DEBUG_FS