diff options
author | Matias Bjørling <mb@lightnvm.io> | 2018-08-05 16:25:19 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-08-06 03:36:09 +0200 |
commit | f10fe9d85dc0802b54519c917716e6f0092b4ce7 (patch) | |
tree | b9d507a97a7c0078b620ad7726a176fdc71f54e6 /drivers/nvme/host/lightnvm.c | |
parent | Merge branch 'nvme-4.19' of git://git.infradead.org/nvme into for-4.19/block2 (diff) | |
download | linux-f10fe9d85dc0802b54519c917716e6f0092b4ce7.tar.xz linux-f10fe9d85dc0802b54519c917716e6f0092b4ce7.zip |
lightnvm: remove minor version check for 2.0
A minor version number increase should not break backwards
compatibility.
Fixes: 3cb98f84d368b ("lightnvm: add minor version to generic geometry")
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host/lightnvm.c')
-rw-r--r-- | drivers/nvme/host/lightnvm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index 7e4cf4eb9d66..6fe5923c95d4 100644 --- a/drivers/nvme/host/lightnvm.c +++ b/drivers/nvme/host/lightnvm.c @@ -414,12 +414,6 @@ static int nvme_nvm_setup_20(struct nvme_nvm_id20 *id, /* Set compacted version for upper layers */ geo->version = NVM_OCSSD_SPEC_20; - if (!(geo->major_ver_id == 2 && geo->minor_ver_id == 0)) { - pr_err("nvm: OCSSD version not supported (v%d.%d)\n", - geo->major_ver_id, geo->minor_ver_id); - return -EINVAL; - } - geo->num_ch = le16_to_cpu(id->num_grp); geo->num_lun = le16_to_cpu(id->num_pu); geo->all_luns = geo->num_ch * geo->num_lun; |