mirror of
https://github.com/AsahiLinux/m1n1
synced 2025-02-17 06:08:28 +00:00
nvme: Reset ANS as well as ANS2
M2 machines call it that... Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
8ae1d15fac
commit
9769200f60
1 changed files with 4 additions and 0 deletions
|
@ -409,6 +409,8 @@ out_disable_ctrl:
|
|||
nvme_poll_syslog();
|
||||
out_shutdown:
|
||||
rtkit_sleep(nvme_rtkit);
|
||||
// Some machines call this ANS, some ANS2...
|
||||
pmgr_reset(nvme_die, "ANS");
|
||||
pmgr_reset(nvme_die, "ANS2");
|
||||
out_rtkit:
|
||||
rtkit_free(nvme_rtkit);
|
||||
|
@ -450,6 +452,8 @@ void nvme_shutdown(void)
|
|||
printf("nvme: timeout while waiting for CSTS.RDY to clear\n");
|
||||
|
||||
rtkit_sleep(nvme_rtkit);
|
||||
// Some machines call this ANS, some ANS2...
|
||||
pmgr_reset(nvme_die, "ANS");
|
||||
pmgr_reset(nvme_die, "ANS2");
|
||||
rtkit_free(nvme_rtkit);
|
||||
sart_free(nvme_sart);
|
||||
|
|
Loading…
Add table
Reference in a new issue