habanalabs: handle case of interruptable wait
authorOded Gabbay <ogabbay@kernel.org>
Thu, 1 Jul 2021 07:36:16 +0000 (10:36 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 29 Aug 2021 06:47:45 +0000 (09:47 +0300)
commit429d77ca2760e0f42523fda72db59861c1b3aefc
tree5b9f195445c56dc1e4a02b97d113e529bf120c88
parentb07e6c7ef5c7a094c20fa9962f9af2b42546ee94
habanalabs: handle case of interruptable wait

Same as we handle it in the regular wait for CS, we need to handle the
case where the waiting for user interrupt was interrupted. In that case,
we need to return correct error code to the user.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c