habanalabs: run error handling if scrub_device_mem fails after reset
authorTomer Tayar <ttayar@habana.ai>
Tue, 17 Jan 2023 13:50:41 +0000 (15:50 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 26 Jan 2023 09:52:13 +0000 (11:52 +0200)
commit0c93eb098f21074555b9b08ab60d1c3e3129f3da
tree7ed786efae6e9119c7e687bce7e97ba7dd03fc07
parenteba773d30d94de4b0cc7845d2579ebf46c8d662b
habanalabs: run error handling if scrub_device_mem fails after reset

If device memory scrubbing from hl_device_reset() fails, we return with
an error code but not perform error handling code.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/device.c