From patchwork Fri Aug 3 09:02:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matias Bjorling X-Patchwork-Id: 10554793 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B0211708 for ; Fri, 3 Aug 2018 09:02:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A08A2AD30 for ; Fri, 3 Aug 2018 09:02:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C956285BE; Fri, 3 Aug 2018 09:02:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77BF7285BE for ; Fri, 3 Aug 2018 09:02:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732251AbeHCK6I (ORCPT ); Fri, 3 Aug 2018 06:58:08 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:42835 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728442AbeHCK6I (ORCPT ); Fri, 3 Aug 2018 06:58:08 -0400 Received: by mail-lf1-f65.google.com with SMTP id u202-v6so3528411lff.9 for ; Fri, 03 Aug 2018 02:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O0OpAgXoC48voistp5eGYhBCPmn+bfP0qzVOWmU+Aao=; b=r92bUmNV2rA6bW7iIyqNbPQzweUhqrd7kxd1FMSX4VQEiUMnAfyFSERPaRAHjHTb7J gH1fWz39hAtD4d7dxKlmwxebm/62okB5wTK+yIFtU9YaYPtFFBzTqR+6BoVXojGWcIjm wK8Wt8VCFZ+/JDytDi/uPgOf4jyxXlch0idHQX5qAXTMMDQZSD0nAj1zvg6aJ/4J8AVO JuvoNCPCcdWm1MJ+P3jNciG1m/ZVEejuH38qMv1MhCMkTCRBmiHCiC/cEchKsnM73xHa aqA8SLLymN+18VxS3VJ71NAkKHE2YJw5wzVPN5rhWsvZeJkKx7mBFBuE1LcmXX+eowbO 0wbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O0OpAgXoC48voistp5eGYhBCPmn+bfP0qzVOWmU+Aao=; b=pdQ/l0p+ZqmEgOk9Wfw6/ckFg/e3YdzYAvqiyT29U8/0IVWe35n5nuHSupJ87uYZO6 QLSgcJ4YL+gQhoqHqiw0s44oLc3vRsu6acVEmhBMne49g06rM3MAmBJfnN8owj5svQda +k3NpQ0p3wR59e9BHXV8VwdOkCbpieP6mz0QB4N5TNlIcWJ7ipNCrlP5R0/kmNwIAMwE 6hTXrzvlb80Bx5J0rd+7k/QHKJZ8nYqmv5ehRNhLkCiugRcuG1OZX4gQJmmuxX/lrKU9 Sv8yr7sIIShYAxJrcfAGIJu2/97zaJie01V44V4BUKe1CVkapcnKaJCmi+6/00Sd1C3Q IpQA== X-Gm-Message-State: AOUpUlHladcG89lY6TKFAFVZXUObJDnZSzAkTxeQS/lqd338FxTnhfGh G7qomLwX9885/YFW3dDP0IC5/A== X-Google-Smtp-Source: AAOMgpdDfbmVXIiNWlpc37SjzZqg/iHjQuWv8LBkXxkYL1SvCy1EFLCgCxFoJzi52kj5fgnmi4tL0w== X-Received: by 2002:a19:238d:: with SMTP id j135-v6mr4203540lfj.58.1533286965795; Fri, 03 Aug 2018 02:02:45 -0700 (PDT) Received: from localhost.localdomain (95-166-82-66-cable.dk.customer.tdc.net. [95.166.82.66]) by smtp.gmail.com with ESMTPSA id m29-v6sm628851lfj.45.2018.08.03.02.02.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Aug 2018 02:02:44 -0700 (PDT) From: =?utf-8?q?Matias_Bj=C3=B8rling?= To: igor.j.konopko@intel.com, marcin.dziegielewski@intel.com, javier@cnexlabs.com, hans.holmberg@cnexlabs.com, hlitz@ucsc.edu, youngtack.jin@circuitblvd.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Mat?= =?utf-8?q?ias_Bj=C3=B8rling?= Subject: [PATCH] lightnvm: remove minor version check for 2.0 Date: Fri, 3 Aug 2018 11:02:37 +0200 Message-Id: <20180803090237.2022-1-mb@lightnvm.io> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A minor version number increase should not break backwards compatibility. Fixes: 3cb98f84d368b ("lightnvm: add minor version to generic geometry") Signed-off-by: Matias Bjørling Reviewed-by: Javier González --- drivers/nvme/host/lightnvm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index d9e4cccd5b66..a156fe3ca7d3 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;