NVMe: Change nvme_enable_ctrl to set EN and manage CC thru ctrl_config.
authorDan McLeran <daniel.mcleran@intel.com>
Mon, 23 Jun 2014 14:24:36 +0000 (08:24 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 4 Nov 2014 20:17:07 +0000 (13:17 -0700)
commit01079522f94b3a1c87cfa375be3917d2da6e6363
treea8553ed6016b550c3b5472075f7d1c9486eef352
parent1d0906246095184d1624c643c2088152d330c40a
NVMe: Change nvme_enable_ctrl to set EN and manage CC thru ctrl_config.

Change the behavior of nvme_enable_ctrl to set EN.
Clear CC.SH for both nvme_enable_ctrl and nvme_disable_ctrl.
Remove reading of the CC register and manage the state in
dev->ctrl_config.

Signed-off-by: Dan McLeran <daniel.mcleran@intel.com>
[removed an unwanted write to CC]
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c