mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
net: ravb: Start TX queues after HW initialization succeeded
[ Upstream commit 6f32c086602050fc11157adeafaa1c1eb393f0af ]
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: c156633f13 ("Renesas Ethernet AVB driver proper")
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e2db25d16c
commit
52b751686c
@@ -1828,13 +1828,13 @@ static int ravb_open(struct net_device *ndev)
|
|||||||
if (info->gptp)
|
if (info->gptp)
|
||||||
ravb_ptp_init(ndev, priv->pdev);
|
ravb_ptp_init(ndev, priv->pdev);
|
||||||
|
|
||||||
netif_tx_start_all_queues(ndev);
|
|
||||||
|
|
||||||
/* PHY control start */
|
/* PHY control start */
|
||||||
error = ravb_phy_start(ndev);
|
error = ravb_phy_start(ndev);
|
||||||
if (error)
|
if (error)
|
||||||
goto out_ptp_stop;
|
goto out_ptp_stop;
|
||||||
|
|
||||||
|
netif_tx_start_all_queues(ndev);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
out_ptp_stop:
|
out_ptp_stop:
|
||||||
|
|||||||
Reference in New Issue
Block a user