diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2022-06-28 10:53:17 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2022-07-12 09:09:27 +0300 |
commit | c47082c22db17115ae3312474e0c552bbbe37b52 (patch) | |
tree | a051b2aaa6826030c262505fc07569a59e696ed3 /drivers/misc/habanalabs/common/device.c | |
parent | be7813eaa6317abebcc123f70efaf7bebea4fcdc (diff) | |
download | linux-c47082c22db17115ae3312474e0c552bbbe37b52.tar.xz |
habanalabs: remove obsolete device variables used for testing
There are a couple of device variables that are used for testing
purposes and they are set to fixed values.
Remove the variables that are not relevant anymore and document the
remaining variables.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/common/device.c')
-rw-r--r-- | drivers/misc/habanalabs/common/device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/habanalabs/common/device.c b/drivers/misc/habanalabs/common/device.c index 5b345fc3dcc1..4b6b6ba5b2fa 100644 --- a/drivers/misc/habanalabs/common/device.c +++ b/drivers/misc/habanalabs/common/device.c @@ -348,8 +348,7 @@ static void hpriv_release(struct kref *ref) list_del(&hpriv->dev_node); mutex_unlock(&hdev->fpriv_list_lock); - if ((hdev->reset_if_device_not_idle && !device_is_idle) || - hdev->reset_upon_device_release) { + if (!device_is_idle || hdev->reset_upon_device_release) { hl_device_reset(hdev, HL_DRV_RESET_DEV_RELEASE); } else { int rc = hdev->asic_funcs->scrub_device_mem(hdev); |