]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: use offset instead of a struct for registers
authorChristoph Hellwig <hch@lst.de>
Fri, 20 Nov 2015 07:58:10 +0000 (08:58 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 1 Dec 2015 17:59:38 +0000 (10:59 -0700)
commitd94fbe15ad54cac0101d048b6aa8124ebc125a71
treec0b7278210ef57355daf1090cc0a51225160bedc
parent268f9ecc9da5be7fc76960970504418e1e92bfc4
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>
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c
drivers/nvme/host/scsi.c
include/linux/nvme.h