net: ravb: Start TX queues after HW initialization succeeded
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tue, 28 Nov 2023 08:04:37 +0000 (10:04 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 30 Nov 2023 09:59:07 +0000 (10:59 +0100)
commit6f32c086602050fc11157adeafaa1c1eb393f0af
treeb0bc7840563783cb040e06a8008d75bdd10cf5af
parentd78c0ced60d5e2f8b5a4a0468a5c400b24aeadf2
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: c156633f1353 ("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>
drivers/net/ethernet/renesas/ravb_main.c