aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parser.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-11-16 08:54:26 +0100
committerChristoph Hellwig <hch@lst.de>2022-12-06 14:36:53 +0100
commite6d275de2e4aaebdc97aa022c031a0dcc475efa4 (patch)
treeb19b4415f222759ee420f562821eb33ab3e7e034 /lib/parser.c
parentnvme-apple: fix controller shutdown in apple_nvme_disable (diff)
downloadlinux-rng-e6d275de2e4aaebdc97aa022c031a0dcc475efa4.tar.xz
linux-rng-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 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions