Received: by 10.223.176.5 with SMTP id f5csp4335598wra; Tue, 30 Jan 2018 05:55:00 -0800 (PST) X-Google-Smtp-Source: AH8x226UyLcO3oHVddaMOv4cotOAZeA6TSSBClkdpv312g6fkBxejytmLNyXZdDnqoAgOIt5zrHP X-Received: by 2002:a17:902:36a:: with SMTP id 97-v6mr26003458pld.365.1517320500009; Tue, 30 Jan 2018 05:55:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517320499; cv=none; d=google.com; s=arc-20160816; b=E4fWwHv+oaaQJuc5xhRJpkMuv+U72xZyw9XwMAxDUReiajLcZf+NPFFN94jh9OqC5i gDHxmNY7/BR4oSX8kCR8nRInx7Kvb+GF+DdukIUWY/2+RZgAiAywUCqEL2jnPJaI8mk9 20LN9Oa/S8hO7xGvbknx4NfOrYQDX30hpGuLMu0Cg0S0/+CB4GjQZAo8DBys2jVUtvCA dXa5iu5ShjfQiy/fPzPVGLOjkBw4hsjDMpOPNfW2JRCiCRvyefAh0UQC+X0bbQHkU8X3 KmkYJkGuQb4/i8a2/qF9i6bNjt8thGRcdRAparOzOMblfIuXVulvwXDHO4t9vrTbFr6G PV+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=cKiG+1YHUdkqzcN8Nsi8F5H8/Wyn2y8Z4wrayZKkN/o=; b=es9tZPgNFOomsyhIE/CUH4X9nDElFrM9k1CJmHIRonprs1jB/qHnzkan/r8v0kUBlC GBtJNk3CmRAkGNehlLWybNXu+Qis3tld5dJx8azN9qj3Sa5LnIoLeh+xsGZQiOdgptO/ zWPRqSs+8HyegkZf0GqKK6HmJw94do2gGD6XSrvPW/SWT/ltc7+TC5FJypOeMwBbdCx5 ECgMwOhsF2VVSsxz0gWW6v+huhlRKKkqbmtwC59f99O+pCud2u0swnV+PEUJbXOFTsd8 bRJWy6YgZhuXOviAxFvDahfznS78s9EXZtDwE5VOjzlBGTwOx27rnmjhg7rzKYuCpIlP /ZOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bjorling.me header.s=google header.b=ZEv4D24j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6-v6si3731647plr.428.2018.01.30.05.54.45; Tue, 30 Jan 2018 05:54:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bjorling.me header.s=google header.b=ZEv4D24j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752584AbeA3N0S (ORCPT + 99 others); Tue, 30 Jan 2018 08:26:18 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:42573 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751897AbeA3N0Q (ORCPT ); Tue, 30 Jan 2018 08:26:16 -0500 Received: by mail-lf0-f65.google.com with SMTP id q17so15308267lfa.9 for ; Tue, 30 Jan 2018 05:26:15 -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=MuSo2MX/8azDNzn5CCZKQiRAIUiL7m7xkg2xfsz+6U79tbXaZ+ZdRtctAp4QhJxund 4+SbjVHgxHYlCxws2EaM3Mp3vFBiKaqH9yZMAYbpzLrlf13yVfBlFRNOKc3f19EI9zzw 9iWTuxP6qqdgJDrwpFna45MXNcu69m/VJ5aRhmZghwoXw1ZvgxJNEcwfuvWrm88bvJdg mV0ezdfFbqZNQcJnxAzeUtLiYC/6hGT4DF5alQZPQxbZYLDz+F3mYvm2+0YFqW+wawCU MYhWgPtwDOMNFXLJ6Ylj79n2chDohfV5nFstK35E5nZ4fTvoJpqkPMZRUWLtYhl+yfZN jBZg== X-Gm-Message-State: AKwxytdU7Iaap6hdLBbxyesyUoJkgrDlyVbP3HW0Wq8deCIo7u3pDzrL J4S5sssMIVzxUpNP00XrYOhhE0nT 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 { -- 2.11.0