accel/habanalabs: in hl_device_reset small refactor for readabilty
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Wed, 8 Feb 2023 13:46:00 +0000 (15:46 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 15 Mar 2023 11:29:13 +0000 (13:29 +0200)
commit1d0f9ad7ce2e6eb89ec46f603c4a8c7e71301296
tree6c96c977b3dd93d86a91c848a4c1a659b26fdc26
parent39ab4da9c15b603e4706d9b9ef1aa8c3ef681312
accel/habanalabs: in hl_device_reset small refactor for readabilty

in the out_err flow, combine the two cases of soft-reset since
they have mostly common code. In addition unlock reset_info.lock
after touching reset count.

Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
drivers/accel/habanalabs/common/device.c