nvme: Stop probing a removed device
authorKeith Busch <keith.busch@intel.com>
Tue, 11 Oct 2016 17:31:58 +0000 (13:31 -0400)
committerJens Axboe <axboe@fb.com>
Wed, 12 Oct 2016 14:40:13 +0000 (08:40 -0600)
commit0df1e4f5e0e831670f43bd198623b303ba09cbc0
treeb8454ff731779d4650ae0d1ce159ada606631900
parent1fa9ce8d0e903449842943a77e8ba100169964be
nvme: Stop probing a removed device

There is no reason the nvme controller can ever return all 1's from
reading the CSTS register. This patch returns an error if we observe
that status. Without this, we may incorrectly proceed with controller
initialization and unnecessarilly rely on error handling to clean this.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c