]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1223f88ce524fb2c72b2528f750772004b4d624e
treeb4985870b0cb802dd004d551152fe80a104c8d3d
parent7cbbf2893bf7fc72c4f7e4c4b6bbbe055f3e5f31
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