]> git.baikalelectronics.ru Git - kernel.git/commit
ahci: Add check for device presence (PCIe hot unplug) in ahci_stop_engine()
authorStefan Roese <sr@denx.de>
Tue, 30 Jan 2018 10:02:55 +0000 (11:02 +0100)
committerTejun Heo <tj@kernel.org>
Mon, 12 Feb 2018 17:17:23 +0000 (09:17 -0800)
commit9ffb299ea0b2a6f038d12917bb55d665ea44a20e
tree43ba1a2f9308a993f08299e2a14c35c44fe246e4
parent00a614805e6c859739fafa728772772689686a59
ahci: Add check for device presence (PCIe hot unplug) in ahci_stop_engine()

Exit directly with ENODEV, if the AHCI controller is not available
anymore. Otherwise a delay of 500ms for each port is added to the remove
function while trying to issue a command on the non-existent controller.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libahci.c