NVMe: Use last bytes of f/w rev SCSI Inquiry
authorKeith Busch <keith.busch@intel.com>
Tue, 29 Apr 2014 21:52:27 +0000 (15:52 -0600)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Wed, 4 Jun 2014 02:59:01 +0000 (22:59 -0400)
commitdedf4b156134e0dedec18ebecda3e74077fa7c92
tree760542df2883422bdfd8568173e799e70b75cef4
parentb4e75cbf1364c4bbce3599c3279892a55b6ede07
NVMe: Use last bytes of f/w rev SCSI Inquiry

After skipping right-padded spaces, use the last four bytes of the
firmware revision when reporting the Inquiry Product Revision. These
are generally more indicative to what is running.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Acked-by: Vishal Verma <vishal.l.verma@linux.intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-scsi.c