diff options
author | Ofir Bitton <obitton@habana.ai> | 2021-06-08 16:24:52 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2021-06-21 09:14:34 +0200 |
commit | 23bace677a3d928b388b6204d64c08b8c6fd468c (patch) | |
tree | 826da504f0cd12c15ca076cf73f0ee601a58ccea /drivers/misc/habanalabs/common/sysfs.c | |
parent | debugfs: add skip_reset_on_timeout option (diff) | |
download | linux-23bace677a3d928b388b6204d64c08b8c6fd468c.tar.xz linux-23bace677a3d928b388b6204d64c08b8c6fd468c.zip |
habanalabs: allow reset upon device release
We introduce a new type of reset which is reset upon device release.
This reset is very similar to soft reset except the fact it is
performed only upon device release and not upon user sysfs request
nor TDR.
The purpose of this reset is to make sure the device is returned to
IDLE state after the current user has finished working with the device.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/common/sysfs.c b/drivers/misc/habanalabs/common/sysfs.c index c9f649b31e3a..db72df282ef8 100644 --- a/drivers/misc/habanalabs/common/sysfs.c +++ b/drivers/misc/habanalabs/common/sysfs.c @@ -208,7 +208,7 @@ static ssize_t soft_reset_store(struct device *dev, goto out; } - if (!hdev->supports_soft_reset) { + if (!hdev->allow_external_soft_reset) { dev_err(hdev->dev, "Device does not support soft-reset\n"); goto out; } |