]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: do not set max power on a secured device
authorOfir Bitton <obitton@habana.ai>
Thu, 30 Jun 2022 11:37:03 +0000 (14:37 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:29 +0000 (09:09 +0300)
commitd5f6d47f0f9117fa2c3985c234e8bf4beaf2b91f
tree7ab183de158c9c34778ffda6f6f71178461b8848
parentbe626e84eedabe21cf15cea49da782756516e65a
habanalabs: do not set max power on a secured device

Max power API is not supported in secured devices. Hence, we should
skip setting it during boot.

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/device.c