NVMe: Only clear the enable bit when disabling controller
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Sat, 4 May 2013 10:43:17 +0000 (06:43 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Wed, 8 May 2013 13:54:31 +0000 (09:54 -0400)
commit44af146a84fa4a8e136d824207dcd356958a112b
treeb4985870b0cb802dd004d551152fe80a104c8d3d
parentba47e3865e8023e79b670793a41508222b5f0322
NVMe: Only clear the enable bit when disabling controller

Many of the bits in the Controller Configuration register may only be
modified when the Enable bit is clear.  Clearing them at the same time
as the Enable bit might be OK, but let's play it safe and only touch the
Enable bit.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
drivers/block/nvme-core.c