RDMA/efa: Reset device on probe failure
authorMichael Margolin <mrgolin@amazon.com>
Wed, 25 Dec 2024 13:15:48 +0000 (13:15 +0000)
committerLeon Romanovsky <leon@kernel.org>
Mon, 30 Dec 2024 18:41:13 +0000 (13:41 -0500)
commit123c13f10ed3627ba112172d8bd122a72cae226d
tree8f31a7bdf1f8c45f373378b1ee5d403f3116fb37
parent20b6d8a7b9bdced0c5f9a4887dbf123dd8e334c0
RDMA/efa: Reset device on probe failure

Make sure the device is being reset on driver exit whatever the reason
is, to keep the device aligned and allow it to close shared resources
(e.g. admin queue).

Reviewed-by: Firas Jahjah <firasj@amazon.com>
Reviewed-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Michael Margolin <mrgolin@amazon.com>
Link: https://patch.msgid.link/20241225131548.15155-1-mrgolin@amazon.com
Reviewed-by: Gal Pressman <gal.pressman@linux.dev>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/efa/efa_main.c