Skip to content

Commit 6f32c08

Browse files
claudiubezneaPaolo Abeni
authored andcommitted
net: ravb: Start TX queues after HW initialization succeeded
ravb_phy_start() may fail. If that happens, the TX queues will remain started. Thus, move the netif_tx_start_all_queues() after PHY is successfully initialized. Fixes: c156633 ("Renesas Ethernet AVB driver proper") Reviewed-by: Sergey Shtylyov <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Reviewed-by: Kalesh AP <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent d78c0ce commit 6f32c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/renesas/ravb_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,13 +1812,13 @@ static int ravb_open(struct net_device *ndev)
18121812
if (info->gptp)
18131813
ravb_ptp_init(ndev, priv->pdev);
18141814

1815-
netif_tx_start_all_queues(ndev);
1816-
18171815
/* PHY control start */
18181816
error = ravb_phy_start(ndev);
18191817
if (error)
18201818
goto out_ptp_stop;
18211819

1820+
netif_tx_start_all_queues(ndev);
1821+
18221822
return 0;
18231823

18241824
out_ptp_stop:

0 commit comments

Comments
 (0)