net: lpc_eth: avoid resetting twice
Subsystems (3)
PATCH 1/1 net: lpc_eth: avoid resetting twice
__lpc_eth_shutdown is called after __lpc_eth_reset but it is already calling __lpc_eth_reset. Avoid resetting the IP twice.
Signed-off-by Alexandre Belloni <[email protected]>
--- drivers/net/ethernet/nxp/lpc_eth.c | 3 --- 1 file changed, 3 deletions(-)
drivers/net/ethernet/nxp/lpc_eth.c +0 -3
@@ -1364,9 +1364,6 @@ static int lpc_eth_drv_probe(struct platform_device *pdev)if (!is_valid_ether_addr (ndev->dev_addr))eth_hw_addr_random (ndev); -/* Reset the ethernet controller */ -__lpc_eth_reset (pldat); -/* then shut everything down to save power */ __lpc_eth_shutdown (pldat);
Signature · 1 line
2.21.0
From: Alexandre Belloni <[email protected]>
Date: Thu, 10 Oct 2019 22:46:06 +0200
Quoted 4 lines
__lpc_eth_shutdownis called after__lpc_eth_resetbut it is already calling__lpc_eth_reset. Avoid resetting the IP twice.Signed-off-by Alexandre Belloni <[email protected]>
Applied.