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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 07:06:34 +0000 (08:06 +0100)
commit30dc1de44e75a992f8a3f9cb28a0cb98ca959677
tree90fb56357cda4ae7627a4ba8f7043131095e1f1f
parent38044859deee1e00fcabf468a7f8442d276d855b
nvme-apple: only reset the controller when RTKit is running

[ Upstream commit c0a4a1eafbd48e02829045bba3e6163c03037276 ]

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