]> 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)
commit1fa600f53ced0feb0744b0d7b090916c88d48a07
treece33f223c516b81b4ac8415ae1d33544d204ad85
parent6d7df05eecaa6a30e3940e65393d54d64d28f540
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