OSDN Git Service

habanalabs: fix soft reset accounting
authorOded Gabbay <ogabbay@kernel.org>
Tue, 16 Nov 2021 07:46:02 +0000 (09:46 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:06 +0000 (08:59 +0200)
commit60e0431f41fff930537b4292c711200da87b195f
treeec6d64b456bccf9ac9a7326a7940be8a58c25d0e
parentd8eb50f31cc7b0f01e610327376a49ac3f0865a2
habanalabs: fix soft reset accounting

Reset upon device release is not a soft-reset from user/system point
of view. As such, we shouldn't count that reset in the statistics we
gather and expose to the monitoring applications.

We also shouldn't print soft-reset when doing the reset upon device
release.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c