diff options
author | 2022-11-16 08:54:26 +0100 | |
---|---|---|
committer | 2022-12-06 14:36:53 +0100 | |
commit | e6d275de2e4aaebdc97aa022c031a0dcc475efa4 (patch) | |
tree | b19b4415f222759ee420f562821eb33ab3e7e034 /certs | |
parent | nvme-apple: fix controller shutdown in apple_nvme_disable (diff) | |
download | linux-e6d275de2e4aaebdc97aa022c031a0dcc475efa4.tar.gz linux-e6d275de2e4aaebdc97aa022c031a0dcc475efa4.tar.bz2 linux-e6d275de2e4aaebdc97aa022c031a0dcc475efa4.zip |
nvme: use nvme_wait_ready in nvme_shutdown_ctrl
Refactor the code to wait for CSTS state changes so that it can be reused
by nvme_shutdown_ctrl. This reduces the delay between each iteration
that checks CSTS from 100ms in the shutdown code to the 1 to 2ms range
done during enable, matching the changes from commit 3e98c2443f5c that
were only applied to the enable/disable path.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions