]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
habanalabs: print f/w boot unknown error
authorOded Gabbay <ogabbay@kernel.org>
Thu, 8 Apr 2021 06:38:32 +0000 (09:38 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 9 Apr 2021 11:10:32 +0000 (14:10 +0300)
commitb575a7673e3d0396992fc72fce850723d39264e3
treec7b0a84fcbb782bf16c3d1ad14fbcbcc516a6081
parent669b018835326b3caa42572ba7cb31f84fa22f9d
habanalabs: print f/w boot unknown error

We need to print a message to the kernel log in case we encounter
an unknown error in the f/w boot to help the user understand what
happened.

In addition, we shouldn't print unknown error in case of known errors.

Moreover, in case of warnings/info, we shouldn't return -EIO that will
fail the initialization and mark the device as disabled

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