habanalabs: check if asic secured with asic type
authorOhad Sharabi <osharabi@habana.ai>
Tue, 11 May 2021 13:02:41 +0000 (16:02 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:40 +0000 (15:23 +0300)
commit190ec49710a9fe0d5e9e36fe1a2fa864c048484f
tree80805ebc74e9fde7a409603ca52c06a60768bb0e
parent3e0ca9fab10bc06111e9c13c9c7d29ed3fcab351
habanalabs: check if asic secured with asic type

Fix issue in which the input to the function is_asic_secured was device
PCI_IDS number instead of the asic_type enumeration.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs_drv.c