summaryrefslogtreecommitdiffstats
path: root/drivers/block/xsysace.c
diff options
context:
space:
mode:
authorDan McLeran <daniel.mcleran@intel.com>2014-06-06 16:27:27 +0200
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2014-06-13 19:11:00 +0200
commitb8e080847a7292347a3eee76264f77e4abcb61f7 (patch)
treeb80c4ea77518d15176b66cf165b1ddbfa8faa8aa /drivers/block/xsysace.c
parentNVMe: Use Log Page constants in SCSI emulation (diff)
downloadlinux-b8e080847a7292347a3eee76264f77e4abcb61f7.tar.xz
linux-b8e080847a7292347a3eee76264f77e4abcb61f7.zip
NVMe: Fix START_STOP_UNIT Scsi->NVMe translation.
This patch contains several fixes for Scsi START_STOP_UNIT. The previous code did not account for signed vs. unsigned arithmetic which resulted in an invalid lowest power state caculation when the device only supports 1 power state. The code for Power Condition == 2 (Idle) was not following the spec. The spec calls for setting the device to specific power states, depending upon Power Condition Modifier, without accounting for the number of power states supported by the device. The code for Power Condition == 3 (Standby) was using a hard-coded '0' which is replaced with the macro POWER_STATE_0. Signed-off-by: Dan McLeran <daniel.mcleran@intel.com> Reviewed-by: Vishal Verma <vishal.l.verma@linux.intel.com> Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers/block/xsysace.c')
0 files changed, 0 insertions, 0 deletions