From patchwork Tue Jan 30 13:26:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matias_Bj=C3=B8rling?= X-Patchwork-Id: 10191823 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 45FBE60375 for ; Tue, 30 Jan 2018 13:26:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3982E2884A for ; Tue, 30 Jan 2018 13:26:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C0DD289D3; Tue, 30 Jan 2018 13:26:31 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=unavailable 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 0C50F2884A for ; Tue, 30 Jan 2018 13:26:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751986AbeA3N0R (ORCPT ); Tue, 30 Jan 2018 08:26:17 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:39398 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752185AbeA3N0Q (ORCPT ); Tue, 30 Jan 2018 08:26:16 -0500 Received: by mail-lf0-f65.google.com with SMTP id w27so15332440lfd.6 for ; Tue, 30 Jan 2018 05:26:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bjorling.me; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cKiG+1YHUdkqzcN8Nsi8F5H8/Wyn2y8Z4wrayZKkN/o=; b=ZEv4D24jVpWDfGwMRuGlBdccKoAW4r+pYpgThtEVsKg57syxiqKvCfOM9UzF3B6WJ2 zt49a5y1WCzQ5Jrs4m0BB0J2OLuNXnBXZtjXVmFuKiZy0oh/YLkBYaLpUJriiHjXIYHv LKYpoJ0oXSQiCpPpSbEL1Olx9FlzDyAT65ikg= 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=cKiG+1YHUdkqzcN8Nsi8F5H8/Wyn2y8Z4wrayZKkN/o=; b=X+uBBTmHz4b9Il5mizM6N+p6ETa+hgdtkg/9f2STJ8iC4AqT/LnQm+Q8ohJBdiisLJ pvrhcJtK6jr+t57p7GCXQiFuRwRASuSOIAiiiJL/i3r1y0kNJFK9V0auEJPWtKSvFi08 6QolWSKgsCbie+HqN40Ve1vtNv9vuQT8EVetGqKdGgfLWQDiqAwdMU3nPoDAeyrtSB3Z 3IXQkx+RBom2nx1axUeFfyMmids0alF5lMN8XtiDncTSjHrOwitBJhiOrC8su3+8XKoQ Azg/KD4hWsF2kXGJyS8mvbQau5J10lL/pvRMEr4KSOuj4uu8EnSEJDZmK+RDUqHIVQuB RhGw== X-Gm-Message-State: AKwxytePn/Ptq6KNFSTeQbrB8OT5XQT8d/wSpvVBjAqDkT411C7OI4fO IKZMmMjZ4XClt/MN4fyX84JJ79CJ X-Google-Smtp-Source: AH8x224oJbfMOQ0/BEiiRB6/fnSeVBgT3oa2u8G1OVzRb1aYfQHPBgnIbNuKO8il/k36IwG6X+UOgQ== X-Received: by 10.25.41.9 with SMTP id p9mr15400880lfp.7.1517318775050; Tue, 30 Jan 2018 05:26:15 -0800 (PST) Received: from Macroninja.cnexlabs.com (x1-6-a4-08-f5-18-3c-3a.cpe.webspeed.dk. [188.176.29.198]) by smtp.gmail.com with ESMTPSA id 28sm3434870lfw.57.2018.01.30.05.26.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 05:26:14 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 1/2] lightnvm: remove mlc pairs structure Date: Tue, 30 Jan 2018 14:26:04 +0100 Message-Id: <20180130132605.28635-1-m@bjorling.me> 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 The known implementations of the 1.2 specification, and upcoming 2.0 implementation all expose a sequential list of pages to write. Remove the data structure, as it is no longer needed. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index 50ef71ee3d86..16906327645e 100644 --- a/drivers/nvme/host/lightnvm.c +++ b/drivers/nvme/host/lightnvm.c @@ -116,17 +116,6 @@ struct nvme_nvm_command { }; }; -#define NVME_NVM_LP_MLC_PAIRS 886 -struct nvme_nvm_lp_mlc { - __le16 num_pairs; - __u8 pairs[NVME_NVM_LP_MLC_PAIRS]; -}; - -struct nvme_nvm_lp_tbl { - __u8 id[8]; - struct nvme_nvm_lp_mlc mlc; -}; - struct nvme_nvm_id_group { __u8 mtype; __u8 fmtype; @@ -150,8 +139,7 @@ struct nvme_nvm_id_group { __le32 mpos; __le32 mccap; __le16 cpar; - __u8 reserved[10]; - struct nvme_nvm_lp_tbl lptbl; + __u8 reserved[906]; } __packed; struct nvme_nvm_addr_format {