habanalabs: allow detection of unsupported f/w packets
authorOded Gabbay <ogabbay@kernel.org>
Thu, 30 Jun 2022 06:30:49 +0000 (09:30 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:29 +0000 (09:09 +0300)
commit18913d68701918d784809e4b9462f51a7270e840
treece33f223c516b81b4ac8415ae1d33544d204ad85
parentea9770e653eecb40422e905b29d3e6b155b5ee3e
habanalabs: allow detection of unsupported f/w packets

If we send a packet to the f/w, and that packet is unsupported, we
want to be able to identify this situation and possibly ignore this.

Therefore, if the f/w returned an error, we need to propagate it
to the callers in the result value, if those callers were interested
in it.

In addition, no point of printing the error code here because each
caller prints its own error with a specific message.

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