]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b3b3c4f358f932a327440e78156c731c590b140
tree2fb1545b72e753ae452e7f4c3029a8f22023ecb7
parent970b602cf474c39182b7bb4264a5bfe7abb461cc
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