summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorMatias Bjørling2015-11-16 15:34:44 +0100
committerJens Axboe2015-11-16 23:20:34 +0100
commit7386af270c72be65c7cb2ba4ad0d4e70dc373106 (patch)
treec7974069275f06d340ad7b14f0cb69479bad6110 /drivers/nvme
parentlightnvm: prevent double free on init error (diff)
downloadkernel-qcow2-linux-7386af270c72be65c7cb2ba4ad0d4e70dc373106.tar.gz
kernel-qcow2-linux-7386af270c72be65c7cb2ba4ad0d4e70dc373106.tar.xz
kernel-qcow2-linux-7386af270c72be65c7cb2ba4ad0d4e70dc373106.zip
lightnvm: remove linear and device addr modes
The linear and device specific address modes can be replaced with a simple offset and bit length conversion that is generic across all devices. This both simplifies the specification and removes the special case for qemu nvme, that previously relied on the linear address mapping. Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/lightnvm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c
index 52b311cf694c..9069be811f82 100644
--- a/drivers/nvme/host/lightnvm.c
+++ b/drivers/nvme/host/lightnvm.c
@@ -198,8 +198,7 @@ struct nvme_nvm_id {
__le32 cap;
__le32 dom;
struct nvme_nvm_addr_format ppaf;
- __u8 ppat;
- __u8 resv[223];
+ __u8 resv[224];
struct nvme_nvm_id_group groups[4];
} __packed;