summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/common/sysfs.c
diff options
context:
space:
mode:
authorOfir Bitton <obitton@habana.ai>2021-04-01 13:43:40 +0300
committerOded Gabbay <ogabbay@kernel.org>2021-04-09 14:09:25 +0300
commite5042a6fa6d4aa1168b3521298c92a53978c9d99 (patch)
treed9564efd4a26706bbd0eb5162b346a763e4e0211 /drivers/misc/habanalabs/common/sysfs.c
parentd4b1e5da54c067ca248191aaee5f531c4d30ba29 (diff)
downloadlinux-e5042a6fa6d4aa1168b3521298c92a53978c9d99.tar.xz
habanalabs/gaudi: derive security status from pci id
As F/ security indication must be available before driver approaches PCI bus, F/W security should be derived from PCI id rather than be fetched during boot handshake with F/W. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/common/sysfs.c')
-rw-r--r--drivers/misc/habanalabs/common/sysfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/common/sysfs.c b/drivers/misc/habanalabs/common/sysfs.c
index c7ac5dc0cda4..9fa61573a89d 100644
--- a/drivers/misc/habanalabs/common/sysfs.c
+++ b/drivers/misc/habanalabs/common/sysfs.c
@@ -257,6 +257,9 @@ static ssize_t device_type_show(struct device *dev,
case ASIC_GAUDI:
str = "GAUDI";
break;
+ case ASIC_GAUDI_SEC:
+ str = "GAUDI SEC";
+ break;
default:
dev_err(hdev->dev, "Unrecognized ASIC type %d\n",
hdev->asic_type);