NVMe: Time out initialisation after a few seconds
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 19 Apr 2011 19:04:20 +0000 (15:04 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Fri, 4 Nov 2011 19:53:02 +0000 (15:53 -0400)
commit22605f96810d073eb74051d0295b6577d6a6a563
treef5af6aebe31f92cd6fe6bc343a931984ef7aa0f2
parentaba2080f3f1639f9202f1a52993669844abcfb80
NVMe: Time out initialisation after a few seconds

THe device reports (in its capability register) how long it will take
to initialise.  If that time elapses before the ready bit becomes set,
conclude the device is broken and refuse to initialise it.  Log a nice
error message so the user knows why we did nothing.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme.c
include/linux/nvme.h