accel/habanalabs: fix events mask of decoder abnormal interrupts
authorTomer Tayar <ttayar@habana.ai>
Sun, 26 Mar 2023 21:08:45 +0000 (00:08 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sat, 8 Apr 2023 07:39:34 +0000 (10:39 +0300)
commitd4801c048543115f9eddbecd6f72a3f68d562bdb
tree95bb8a4d3d03229abcd60f01ed14641eb5988ce4
parent9cf56f0d97806eaff68c4c4facd7ef94e2a072bc
accel/habanalabs: fix events mask of decoder abnormal interrupts

The decoder IRQ status register may have several set bits upon an
abnormal interrupt. Therefore, when setting the events mask, need to
check all bits and not using if-else.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/decoder.c