OSDN Git Service

habanalabs: don't clear previous f/w indications
authorOhad Sharabi <osharabi@habana.ai>
Tue, 26 Oct 2021 07:42:24 +0000 (10:42 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:04 +0000 (08:59 +0200)
commit5edd95a4abb332fb683cf7a35eed2ae4ff7b4dcb
tree52440582e42328e1e02996fcda4fd9cd7f017a7b
parentf4e7906dbe7e922b057e4533a585f7943fe90c90
habanalabs: don't clear previous f/w indications

Once we read indication of whether f/w is doing the reset, we don't
want to clear it, until the next time we read this indication.

Otherwise, we might be in a state of wrong indication.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c