habanalabs: support hard-reset scheduling during soft-reset
authorOfir Bitton <obitton@habana.ai>
Tue, 23 Nov 2021 14:34:28 +0000 (16:34 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 12:42:31 +0000 (14:42 +0200)
commitce80098db2439ee44403ec6fccd3a10be21c7aff
tree47c6bf1e8b426a455211d715ad1ed1c9dca18304
parent42eb2872e0867679c996bb19ee9063e6141fa974
habanalabs: support hard-reset scheduling during soft-reset

As hard-reset can be requested during soft-reset, driver must allow
it or else critical events received during soft-reset will be
ignored.

Signed-off-by: Ofir Bitton <obitton@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