Skip to content

Commit eac16a7

Browse files
claudiubezneaPaolo Abeni
authored andcommitted
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: a0d2f20 ("Renesas Ethernet AVB PTP clock driver") Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 6f32c08 commit eac16a7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/ethernet/renesas/ravb_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,6 +1825,7 @@ static int ravb_open(struct net_device *ndev)
18251825
/* Stop PTP Clock driver */
18261826
if (info->gptp)
18271827
ravb_ptp_stop(ndev);
1828+
ravb_stop_dma(ndev);
18281829
out_free_irq_mgmta:
18291830
if (!info->multi_irqs)
18301831
goto out_free_irq;

0 commit comments

Comments
 (0)