From patchwork Wed Feb 21 09:26:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= X-Patchwork-Id: 10231681 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C0E1960209 for ; Wed, 21 Feb 2018 09:32:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4CC328740 for ; Wed, 21 Feb 2018 09:32:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B84E52874F; Wed, 21 Feb 2018 09:32:30 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 3C9F128740 for ; Wed, 21 Feb 2018 09:32:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932392AbeBUJc3 (ORCPT ); Wed, 21 Feb 2018 04:32:29 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:36997 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753202AbeBUJ1M (ORCPT ); Wed, 21 Feb 2018 04:27:12 -0500 Received: by mail-wr0-f196.google.com with SMTP id z12so2446406wrg.4 for ; Wed, 21 Feb 2018 01:27:12 -0800 (PST) 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:in-reply-to:references :mime-version:content-transfer-encoding; bh=PpJ1VSA7545yyJGBTfXiP84bGTGL1OQMOaU4kVmFseQ=; b=lehxHUmDcA/ZjGZp7/DvHDQQCnsEjMw69wmzNwWVdAV6vgB6eyOzknYG9LeC5D/3zJ FKhQMv5UJzMFPzEL81MsJHo11OssEsC7VsHA5yYDU6UTsdGZmWZE4/4VlaJTfnKn4u1V e+mhamLF0u9JFbPhz3owmB5OXx6r5qBw3beZMUgnqBl3HQjs3ytIdKHYXXtEB3yxkvJf Lcn4Gah1Cb+DXWjuiEjMZMmQgSmk7ul4zado3zUlLUGaoa/agKkkhg8VIUL80g3L8JFM v9qtlnw43K8kQOMyRYb858tzlYqYbh0SgQZRWgTV+kOTOyDp8K3GLYROWN1JAfP0wHol fAAQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=PpJ1VSA7545yyJGBTfXiP84bGTGL1OQMOaU4kVmFseQ=; b=T+rbuiB6NZ8+HlznaZtBmR9/UTMX41Zs2gTAMYs5YtoxGUG/qIiDDPVUcHOfqo2gIa dso49vugc9hgMpPi+eDniuDCveqPcMzzdYyNNwR9p7IU+AvIVPlRxLtGEMUADTYqXYex i01ev5N4VrxAvidzvJK+wF9i+kHpynfA+7bOMp/6sozmSfcI5H2mkQesMuqFGK/733PP KeFMKjJnn6Okx3dLBEfHFu2PW0tRcJSYLCCNsfqNQgsWsHN9oXKn1AKejidDDhFpc/Pf UKrDRlADzIUS/7LEf5wI4hu7/i0KzokwyS5ZGQzn1wW0ImEew2BBx/xYGZW2w9hLmAhZ J6CQ== X-Gm-Message-State: APf1xPC7Pdfqzmig7WsHLqS7Rnu+aKdrzKVg2UjQm2VB1MAJ4y+Q2M+w sl1FnL+6Ow440CihrIZYA2y/jw== X-Google-Smtp-Source: AH8x226W1dxyrxJkaprdtBD7IoYbeKGaW5l8b0U4YLLni1uiV7GKwunBY5DB+ij2tMa/IFIfVRhOYw== X-Received: by 10.80.186.202 with SMTP id x68mr4090421ede.264.1519205231799; Wed, 21 Feb 2018 01:27:11 -0800 (PST) Received: from uHalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id a17sm3389955eda.42.2018.02.21.01.27.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Feb 2018 01:27:11 -0800 (PST) From: "=?UTF-8?q?Javier=20Gonz=C3=A1lez?=" X-Google-Original-From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= To: mb@lightnvm.io Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH 02/20] lightnvm: add controller capabilities to 2.0 Date: Wed, 21 Feb 2018 10:26:40 +0100 Message-Id: <1519205218-26994-3-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519205218-26994-1-git-send-email-javier@cnexlabs.com> References: <1519205218-26994-1-git-send-email-javier@cnexlabs.com> 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 Assign missing mccap value on 2.0 path Signed-off-by: Javier González --- drivers/nvme/host/lightnvm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index c81e64cc20d7..969bb874850c 100644 --- a/drivers/nvme/host/lightnvm.c +++ b/drivers/nvme/host/lightnvm.c @@ -392,6 +392,8 @@ static int nvme_nvm_setup_20(struct nvme_nvm_id20 *id, dev_geo->c.ws_opt = le32_to_cpu(id->ws_opt); dev_geo->c.mw_cunits = le32_to_cpu(id->mw_cunits); + dev_geo->c.mccap = le32_to_cpu(id->mccap); + dev_geo->c.trdt = le32_to_cpu(id->trdt); dev_geo->c.trdm = le32_to_cpu(id->trdm); dev_geo->c.tprt = le32_to_cpu(id->twrt);