summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/common/sysfs.c
diff options
context:
space:
mode:
authorOfir Bitton <obitton@habana.ai>2022-10-26 16:20:45 +0300
committerOded Gabbay <ogabbay@kernel.org>2022-11-23 17:13:46 +0300
commit841cd2d7658d92e09354640c1887797f0da3d444 (patch)
tree0fb4da1b5648a039c07d097c6898bc36934dd8f6 /drivers/misc/habanalabs/common/sysfs.c
parent306206985a4bcfc12b45596d56c7bd8ba6f0f6b1 (diff)
downloadlinux-841cd2d7658d92e09354640c1887797f0da3d444.tar.xz
habanalabs/gaudi2: add PCI revision 2 support
Add support for Gaudi2 Device with PCI revision 2. Functionality is exactly the same as revision 1, the only difference is device name exposed to user. 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/common/sysfs.c b/drivers/misc/habanalabs/common/sysfs.c
index c924fc994bd9..735d8bed0066 100644
--- a/drivers/misc/habanalabs/common/sysfs.c
+++ b/drivers/misc/habanalabs/common/sysfs.c
@@ -248,6 +248,8 @@ static ssize_t device_type_show(struct device *dev,
case ASIC_GAUDI2:
str = "GAUDI2";
break;
+ case ASIC_GAUDI2B:
+ str = "GAUDI2B";
break;
default:
dev_err(hdev->dev, "Unrecognized ASIC type %d\n",