habanalabs: expose soft reset sysfs nodes for inference ASIC
authorOfir Bitton <obitton@habana.ai>
Sun, 12 Dec 2021 15:46:21 +0000 (17:46 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:09 +0000 (08:59 +0200)
commit9993f27de104d8d0f83c332ec5bc7642de20fae4
treed3cb316a0c6d6add29d27b8a140564cf46edeb39
parentb5c92b88823028bea4c74f3516c640406205933c
habanalabs: expose soft reset sysfs nodes for inference ASIC

As we allow soft-reset to be performed only on inference devices,
having the sysfs nodes may cause a confusion. Hence, we remove those
nodes on training ASICs.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/sysfs.c