]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06acf81318fb360f7c92750b0adeb637a3e683f3
treece33f223c516b81b4ac8415ae1d33544d204ad85
parent410ce23996bfae48b9aef22e4910bae728970cb7
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