habanalabs: skip events info ioctl if not supported
authorOhad Sharabi <osharabi@habana.ai>
Sun, 6 Nov 2022 07:26:01 +0000 (09:26 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 23 Nov 2022 14:13:46 +0000 (16:13 +0200)
commitb829e01025f8936bb85bdc39cbd1faddcca290d0
tree6059158ea5ad0ca0ce1077cde594e94050d4a12a
parent3daa64eea1fb219c8cfb3bb6948dc2993652e201
habanalabs: skip events info ioctl if not supported

Some ASICs haven't yet implemented this functionality and so the
ioctl call should fail and the user should be notified of the reason.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs_ioctl.c