]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe7ecdf147d1fb58c7238d346cd01f3d7a2ec75b
tree90fb56357cda4ae7627a4ba8f7043131095e1f1f
parenta640e4085ecc3717a1b54e3ee12c0f58c4b1fb4a
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