accel/habanalabs: move soft-reset wait to soft-reset execute
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Mon, 20 Feb 2023 05:54:44 +0000 (07:54 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 15 Mar 2023 11:29:15 +0000 (13:29 +0200)
commit801507d3b31489d8a834eab443987a562e2e1e41
tree03d5e117de37aa861d4f0d882515b00d52ff0442
parentf7f0085eec8d3c0c353d2e7bfa7fb54b3b925d7a
accel/habanalabs: move soft-reset wait to soft-reset execute

We plan to do soft-reset either by mmio or by using cpucp packet
depending on the FW version. We don't want to check FW version in two
different places for that (execute soft-reset and wait to soft-reset)
so move the waiting to gaudi2_execute_soft_reset. This also makes sense
because the cpucp also does the waiting.

Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2.c