]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: use offset instead of a struct for registers
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Dec 2016 05:55:25 +0000 (21:55 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:33 +0000 (13:40 -0700)
commit6f4978bbdf64dda965bf0699f4d3ae6a8a733372
tree19e72629a7556a74360990cfff98bf18c259e424
parent352d152931d86926a649d64ff36608c444159581
nvme: use offset instead of a struct for registers

This makes life easier for future non-PCI drivers where access to the
registers might be more complicated.  Note that Linux drivers are
pretty evenly split between the two versions, and in fact the NVMe
driver already uses offsets for the doorbells.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Keith Busch <keith.busch@intel.com>
[Fixed CMBSZ offset]
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 7a67cbea653e444d04d7e850ab9631a14a196422)

Conflicts:
        Merge conflict due to the Samsung Errata patch
        drivers/nvme/host/pci.c

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c
drivers/nvme/host/scsi.c
include/linux/nvme.h