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 <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 6f32c08 commit eac16a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)