We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcaebc7 commit 097c62bCopy full SHA for 097c62b
drivers/misc/habanalabs/common/device.c
@@ -17,12 +17,12 @@ enum hl_device_status hl_device_status(struct hl_device *hdev)
17
{
18
enum hl_device_status status;
19
20
- if (hdev->disabled)
21
- status = HL_DEVICE_STATUS_MALFUNCTION;
22
- else if (atomic_read(&hdev->in_reset))
+ if (atomic_read(&hdev->in_reset))
23
status = HL_DEVICE_STATUS_IN_RESET;
24
else if (hdev->needs_reset)
25
status = HL_DEVICE_STATUS_NEEDS_RESET;
+ else if (hdev->disabled)
+ status = HL_DEVICE_STATUS_MALFUNCTION;
26
else
27
status = HL_DEVICE_STATUS_OPERATIONAL;
28
0 commit comments