Skip to content

Commit 9769200

Browse files
committed
nvme: Reset ANS as well as ANS2
M2 machines call it that... Signed-off-by: Hector Martin <[email protected]>
1 parent 8ae1d15 commit 9769200

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/nvme.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ bool nvme_init(void)
409409
nvme_poll_syslog();
410410
out_shutdown:
411411
rtkit_sleep(nvme_rtkit);
412+
// Some machines call this ANS, some ANS2...
413+
pmgr_reset(nvme_die, "ANS");
412414
pmgr_reset(nvme_die, "ANS2");
413415
out_rtkit:
414416
rtkit_free(nvme_rtkit);
@@ -450,6 +452,8 @@ void nvme_shutdown(void)
450452
printf("nvme: timeout while waiting for CSTS.RDY to clear\n");
451453

452454
rtkit_sleep(nvme_rtkit);
455+
// Some machines call this ANS, some ANS2...
456+
pmgr_reset(nvme_die, "ANS");
453457
pmgr_reset(nvme_die, "ANS2");
454458
rtkit_free(nvme_rtkit);
455459
sart_free(nvme_sart);

0 commit comments

Comments
 (0)