accel/habanalabs: fix gaudi2_get_tpc_idle_status() return
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 15 May 2023 10:32:18 +0000 (13:32 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 8 Jun 2023 09:35:55 +0000 (12:35 +0300)
commit9ec7639b5e124f273db20555cc38bd40057157b3
treeb7bd7f8927b2a29c5a0362ccd67fac488c162482
parentcc1eeaa335f2d71e8bddf268e3e60d3a3c3a08bc
accel/habanalabs: fix gaudi2_get_tpc_idle_status() return

The gaudi2_get_tpc_idle_status() function returned the incorrect variable
so it always returned true.

Fixes: d85f0531b928 ("accel/habanalabs: break is_idle function into per-engine sub-routines")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2.c