Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4144356yba; Wed, 17 Apr 2019 05:39:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQCMP5zBrJ5OsWAaTcr2PZvRKue405ZmPlv/W6DgGf4lxBnJmw+Jz2y9Zk/xWzBZ0NzCf1 X-Received: by 2002:aa7:8719:: with SMTP id b25mr88917992pfo.90.1555504740624; Wed, 17 Apr 2019 05:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555504740; cv=none; d=google.com; s=arc-20160816; b=Slxfm2Wl/ZCpTCnW0BCcmCifYej2u+yUNSJkB/lai7vWNGCSJahJIXvc15Sj5L++8H XLhzl6hbcVMwhWlHrUWp6p+SS98zNfLcoJAG4luwjWzYHAATvMr+GWCZB037zailJVcD 7slZl5O9UC0PNpEKA57yDxXSrG6zntBczTCLPbDR264lOnurhlZjOpsZsQctjQ+L9Wcm GGgnR529Fd0XQ2LfgvXJA+5DlKGl8mqCMy30mUYCgQ1uAWYXFb18l7/nNxOlL782sxG8 EyhUwCnqhi+Qv+7K1CvjDsj/isucT5S6S74UZsMjio2nioBBAJwLVuXv2fzueyCHDRc9 6b4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=AigysWeRKQwaFl2TERuxHkiQjyCBZaLNt+ayE4NrEDw=; b=xF92gELmmWrEn9k/LaZhQNbSMctwI7fWZVwdWed8ilZxSLopPtg5j2AhYoPfeJKJlq 90dWF0+WKSA8IBNZrk8lGka7+9v2yEMlqP/RC+cV+7m7Bf029zg3JfQf9LvO4scK5HKY GL/8DilPVJqi7jdvDjFrNkj5lOmG3YZ3bECltXon60zZds765weJGcoWMainU/efy0mc y82FS2Mg6eGS+BdmfTc+/kxVUSi8WrZBz+xABIVrauj7HuUSFDT+DShk8L+wm/jlwzi2 kO5OxKRptuQI4xcalN/RTBUTlI2ohJMjUlJPN6e9UL/SJTjK2Agwgrd8LemsNgMN5u5G jo9Q== ARC-Authentication-Results: i=1; mx.google.com; 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 s18si50036964plq.244.2019.04.17.05.38.45; Wed, 17 Apr 2019 05:39:00 -0700 (PDT) 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; 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 S1732143AbfDQMgk convert rfc822-to-8bit (ORCPT + 99 others); Wed, 17 Apr 2019 08:36:40 -0400 Received: from skedge04.snt-world.com ([91.208.41.69]:55210 "EHLO skedge04.snt-world.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731932AbfDQMgi (ORCPT ); Wed, 17 Apr 2019 08:36:38 -0400 Received: from sntmail10s.snt-is.com (unknown [10.203.32.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by skedge04.snt-world.com (Postfix) with ESMTPS id 10C2D67A6EC; Wed, 17 Apr 2019 14:36:36 +0200 (CEST) Received: from sntmail12r.snt-is.com (10.203.32.182) by sntmail10s.snt-is.com (10.203.32.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 17 Apr 2019 14:36:35 +0200 Received: from sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305]) by sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305%3]) with mapi id 15.01.1713.004; Wed, 17 Apr 2019 14:36:35 +0200 From: Schrempf Frieder To: "bbrezillon@kernel.org" , "miquel.raynal@bootlin.com" , "richard@nod.at" , David Woodhouse , Brian Norris , Marek Vasut CC: "linux-mtd@lists.infradead.org" , "Schrempf Frieder" , "linux-kernel@vger.kernel.org" Subject: [PATCH v6 3/7] mtd: nand: Cleanup flags and fields for bad block marker position Thread-Topic: [PATCH v6 3/7] mtd: nand: Cleanup flags and fields for bad block marker position Thread-Index: AQHU9Roxb2A3ESCHo0O+hkiuuVmXDw== Date: Wed, 17 Apr 2019 12:36:35 +0000 Message-ID: <20190417123631.22545-4-frieder.schrempf@kontron.de> References: <20190417123631.22545-1-frieder.schrempf@kontron.de> In-Reply-To: <20190417123631.22545-1-frieder.schrempf@kontron.de> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.25.9.193] x-c2processedorg: 51b406b7-48a2-4d03-b652-521f56ac89f3 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-SnT-MailScanner-Information: Please contact the ISP for more information X-SnT-MailScanner-ID: 10C2D67A6EC.A3062 X-SnT-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-SnT-MailScanner-SpamCheck: X-SnT-MailScanner-From: frieder.schrempf@kontron.de X-SnT-MailScanner-To: bbrezillon@kernel.org, computersforpeace@gmail.com, dwmw2@infradead.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, marek.vasut@gmail.com, miquel.raynal@bootlin.com, richard@nod.at X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frieder Schrempf Now that we have moved the information to the chip level, let's remove all the unused flags and fields. Signed-off-by: Frieder Schrempf Reviewed-by: Miquel Raynal --- include/linux/mtd/bbm.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/include/linux/mtd/bbm.h b/include/linux/mtd/bbm.h index 3102bd754d18..010bc5544c54 100644 --- a/include/linux/mtd/bbm.h +++ b/include/linux/mtd/bbm.h @@ -93,10 +93,7 @@ struct nand_bbt_descr { #define NAND_BBT_WRITE 0x00002000 /* Read and write back block contents when writing bbt */ #define NAND_BBT_SAVECONTENT 0x00004000 -/* Search good / bad pattern on the first and the second page */ -#define NAND_BBT_SCAN2NDPAGE 0x00008000 -/* Search good / bad pattern on the last page of the eraseblock */ -#define NAND_BBT_SCANLASTPAGE 0x00010000 + /* * Use a flash based bad block table. By default, OOB identifier is saved in * OOB area. This option is passed to the default bad block table function. @@ -123,13 +120,6 @@ struct nand_bbt_descr { /* The maximum number of blocks to scan for a bbt */ #define NAND_BBT_SCAN_MAXBLOCKS 4 -/* - * Constants for oob configuration - */ -#define NAND_SMALL_BADBLOCK_POS 5 -#define NAND_LARGE_BADBLOCK_POS 0 -#define ONENAND_BADBLOCK_POS 0 - /* * Bad block scanning errors */ @@ -140,7 +130,6 @@ struct nand_bbt_descr { /** * struct bbm_info - [GENERIC] Bad Block Table data structure * @bbt_erase_shift: [INTERN] number of address bits in a bbt entry - * @badblockpos: [INTERN] position of the bad block marker in the oob area * @options: options for this descriptor * @bbt: [INTERN] bad block table pointer * @isbad_bbt: function to determine if a block is bad @@ -150,7 +139,6 @@ struct nand_bbt_descr { */ struct bbm_info { int bbt_erase_shift; - int badblockpos; int options; uint8_t *bbt; -- 2.17.1