Skip to content

Commit

Permalink
NVMe suspend fix
Browse files Browse the repository at this point in the history
Signed-off-by: Hector Martin <marcan@marcan.st>
  • Loading branch information
marcan committed Jan 14, 2023
1 parent b407df5 commit 1f5c594
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/nvme/host/apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,9 @@ static void apple_nvme_disable(struct apple_nvme *anv, bool shutdown)
apple_nvme_remove_cq(anv);
}

nvme_disable_ctrl(&anv->ctrl, shutdown);
if (shutdown)
nvme_disable_ctrl(&anv->ctrl, true);
nvme_disable_ctrl(&anv->ctrl, false);
}

WRITE_ONCE(anv->ioq.enabled, false);
Expand Down

0 comments on commit 1f5c594

Please sign in to comment.