habanalabs: fix command submission sanity check
authorTal Cohen <talcohen@habana.ai>
Sun, 24 Jul 2022 14:40:23 +0000 (17:40 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 18 Sep 2022 10:29:50 +0000 (13:29 +0300)
commit0c876b47a54a5ae1331a99da9cc115f8f5c90990
tree316a705e72b866cba2a9f008c80d8226acde1149
parent68c82ba9a96f47dac9963c9f22b8c6bf4af00e02
habanalabs: fix command submission sanity check

When a CS is submitted, the ioctl handler checks the CS
flags and performs a sanity check, according to its value.
As new CS flags are added, the sanity check needs to be updated
according to the new flags.

Signed-off-by: Tal Cohen <talcohen@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c