Commit eac16a73 authored by Claudiu Beznea's avatar Claudiu Beznea Committed by Paolo Abeni
Browse files

net: ravb: Stop DMA in case of failures on ravb_open()



In case ravb_phy_start() returns with error the settings applied in
ravb_dmac_init() are not reverted (e.g. config mode). For this call
ravb_stop_dma() on failure path of ravb_open().

Fixes: a0d2f206 ("Renesas Ethernet AVB PTP clock driver")
Reviewed-by: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 6f32c086
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1825,6 +1825,7 @@ static int ravb_open(struct net_device *ndev)
	/* Stop PTP Clock driver */
	if (info->gptp)
		ravb_ptp_stop(ndev);
	ravb_stop_dma(ndev);
out_free_irq_mgmta:
	if (!info->multi_irqs)
		goto out_free_irq;