habanalabs: pass reset flags to reset thread
authorTomer Tayar <ttayar@habana.ai>
Mon, 22 Nov 2021 10:29:22 +0000 (12:29 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:07 +0000 (08:59 +0200)
commitd214636be8a6102d726c8aeb59000f2fb80d94a9
tree2fb1545b72e753ae452e7f4c3029a8f22023ecb7
parent2487f4a2812e520cb5b77b2b5dfcdc05c215cd83
habanalabs: pass reset flags to reset thread

The reset flags used by the reset thread are currently a mix of
hard-coded values and a specific flag which is passed from the context
that initiates the reset.
To make it easier to pass more flags in future from this context to the
reset thread, modify it to pass all the original reset flags to the
thread.

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