habanalabs: fix user interrupt wait when timeout is 0
authorOded Gabbay <ogabbay@kernel.org>
Tue, 18 Jan 2022 22:09:29 +0000 (00:09 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 28 Feb 2022 12:22:03 +0000 (14:22 +0200)
commit54faa5607b549ef7ef735e7d0c4523cc74bd20f4
treedf2e78a0a353ef3fc3722de1267b0319a7805a1a
parent9a79e3e4a3637c07352d9723b825490a1b04391f
habanalabs: fix user interrupt wait when timeout is 0

When timeout is 0, we need to return the busy status in case the
target value wasn't reached upon entry to the ioctl.

Also return the correct timestamp.

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