Skip to content

Commit c23936f

Browse files
alexandrebellonidavem330
authored andcommitted
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]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3f23380 commit c23936f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/ethernet/nxp/lpc_eth.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,9 +1356,6 @@ static int lpc_eth_drv_probe(struct platform_device *pdev)
13561356
if (!is_valid_ether_addr(ndev->dev_addr))
13571357
eth_hw_addr_random(ndev);
13581358

1359-
/* Reset the ethernet controller */
1360-
__lpc_eth_reset(pldat);
1361-
13621359
/* then shut everything down to save power */
13631360
__lpc_eth_shutdown(pldat);
13641361

0 commit comments

Comments
 (0)