net: ravb: Stop DMA in case of failures on ravb_open()
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tue, 28 Nov 2023 08:04:38 +0000 (10:04 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 30 Nov 2023 09:59:07 +0000 (10:59 +0100)
commiteac16a733427ba0de2449ffc7bd3da32ddb65cb7
treefc01adbcf617a0c8505da1707e52b113a8bfe5b7
parent6f32c086602050fc11157adeafaa1c1eb393f0af
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: a0d2f20650e8 ("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>
drivers/net/ethernet/renesas/ravb_main.c