diff options
author | Matias Bjørling <mb@lightnvm.io> | 2018-03-30 00:05:02 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-03-30 01:29:09 +0200 |
commit | 62771fe0aa28b5d329f3e53a2e0f805f73433752 (patch) | |
tree | 9d3010c12b34e2e4963f026d6bbad662ee5b8c49 /drivers/lightnvm | |
parent | lightnvm: flatten nvm_id_group into nvm_id (diff) | |
download | linux-62771fe0aa28b5d329f3e53a2e0f805f73433752.tar.xz linux-62771fe0aa28b5d329f3e53a2e0f805f73433752.zip |
lightnvm: add 2.0 geometry identification
Implement the geometry data structures for 2.0 and enable a drive
to be identified as one, including exposing the appropriate 2.0
sysfs entries.
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm')
-rw-r--r-- | drivers/lightnvm/core.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c index db4a1b8f1561..521f520a1bb4 100644 --- a/drivers/lightnvm/core.c +++ b/drivers/lightnvm/core.c @@ -931,11 +931,9 @@ static int nvm_init(struct nvm_dev *dev) goto err; } - pr_debug("nvm: ver:%x nvm_vendor:%x\n", - dev->identity.ver_id, dev->identity.vmnt); - - if (dev->identity.ver_id != 1) { - pr_err("nvm: device not supported by kernel."); + if (dev->identity.ver_id != 1 && dev->identity.ver_id != 2) { + pr_err("nvm: device ver_id %d not supported by kernel.\n", + dev->identity.ver_id); goto err; } |