nvme-apple: only reset the controller when RTKit is running

[ Upstream commit c0a4a1eafb ]

NVMe controller register access hangs indefinitely when the co-processor
is not running. A missed reset is preferable over a hanging thread since
it could be recoverable.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Janne Grunau 2023-01-17 19:25:01 +01:00 • committed by Greg Kroah-Hartman
commit 30dc1de44e