nvme-apple: only reset the controller when RTKit is running
authorJanne Grunau <j@jannau.net>
Tue, 17 Jan 2023 18:25:01 +0000 (19:25 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 19 Jan 2023 08:08:01 +0000 (09:08 +0100)
commitc0a4a1eafbd48e02829045bba3e6163c03037276
tree60f162dfcc3d71b9eab04628b19e5e95f6d790ff
parentc06ba7b892a50b48522ad441a40053f483dfee9e
nvme-apple: only reset the controller when RTKit is running

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>
drivers/nvme/host/apple.c