From patchwork Thu Jul 21 06:44:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2228 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5AC4044190 for ; Thu, 21 Jul 2022 08:45:08 +0200 (CEST) Received: by mail-wm1-f69.google.com with SMTP id v11-20020a1cf70b000000b003a318238826sf306138wmh.2 for ; Wed, 20 Jul 2022 23:45:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658385908; cv=pass; d=google.com; s=arc-20160816; b=gSXH97ogwRQKX0rgswdGiB8ECvcF+j7JfMdvORvSkwn7dzNtg/jQLrED56JJy78TEB jrcJHMvszzkSF//NrhQ9XTlQyHEO04vXg0o9rRU4xQRAOTJaKBUxWflGc6Z7Yk1EPgvD WS2454xFSEH1dsdkt1BUuJ8/zZIaW5ftbUUZA6NcItZ5u8y/LOeYjCP4/LN61usUVYsk I2D8d1aPtVEuH9wCUMjLXSWn9uRz7FM/TLgvyZwEffYNS3reSD1WLYglarL/958P64KB Rdy15bDP4gCE55v0QCtnIJdbS0eyhP+tsazeNJVXMllQGgmyroRgYJNOVDsLQnc/IqWn 7bqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=bkx6x1YAIV3j7XXntAHOO2V/0BaXfU41fLqdIp2vHcs=; b=PdslX9EH0neB6iGPpRstL0enoYKWs1C76tdw7z3g7AT9jvI7IdK9eGmCM7PpFtpMSW QbZ8jKExpLbMS4jmr7UgC3iIZovuVYVWNxWJfrI7bIRcWnsZu+HZDmswb5DVnYmIUg1h xMrteaPTSuDSkdOhvatnJaDrNlbkdlw2OS338lcg8dn4HBhEt3kv0AWp0Gv6kv5MLkM/ YGJLGp+yV3yarxOnCg94K20PpPghyCC85SC6K/ycGhnIBiHY8fY9voTIqYYp7DPEMTPA MiV6CP4mb150j1sqCV/rQYq15TKQifyTEiKpxN+VIEL1bI3enqMNa5wJDgsnuHYE+1qN 5f0Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LXgNQHX1; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=bkx6x1YAIV3j7XXntAHOO2V/0BaXfU41fLqdIp2vHcs=; b=G24PYTv/DZyndDWz0CR6XQog6WJ85VZ1GjVGd/KjSrJkPkpjnTE9FS6DLVom6V64/7 dFMV3vIZQ33ymE4VQ8Q2lRh1CPk7ecZjOgsa/LV8wrf5VxwhhNNbuO70hiKcd2JstlBn Z/nKmHZdiCZ8u/6Gf/qHL/d2DBJz5dicBQP2A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=bkx6x1YAIV3j7XXntAHOO2V/0BaXfU41fLqdIp2vHcs=; b=PZfTB62EYakxIhvQiOMekS2ao5hheVlNhp+InhYsE9V/F1m1MyP1rmALaDFP13cED4 koErh13rGh5HIrjsFLB+/yjjAK+zeMoDC8uGDWZJyVPnN91zLdlju4w2Uxsx236jrEAd 3cW67WG29WSpHOiaFyPftjxugYAFFdgPn3nadNtkLvOZsmJSpZrBUsNeDJBfS9gg37Qh dOh2i5KcPQOcLrtdXq9ABkmhcfjJEnwjGEnX0iLJHaan8YqOy3dLXiX5t1A9AsFEEeIf qoBit5KclVSBw0qvsvo/4rSaTFJbxrQoGoq9YxzjxZHahN3lysjImA6on2FiaN7ykHTD 86kA== X-Gm-Message-State: AJIora+rTJy1hKi7+9OQBKEkiWAClQ4mHGaqHVvAOxSNXN9XO87d9bI1 +CRXHk1HbHyfHEOWxJVE0Nq7/HAX X-Google-Smtp-Source: AGRyM1to7k43t9UKFeUWEQm7HV5OLtJkrQXnL7GCP9/xQ3s9y6ctAqPMckwGrXN5DWxHjY3NWn7hpw== X-Received: by 2002:a5d:5603:0:b0:21e:5136:34d with SMTP id l3-20020a5d5603000000b0021e5136034dmr2469293wrv.23.1658385908148; Wed, 20 Jul 2022 23:45:08 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6000:22a:b0:21d:a0b5:24ab with SMTP id l10-20020a056000022a00b0021da0b524abls244625wrz.1.-pod-prod-gmail; Wed, 20 Jul 2022 23:45:07 -0700 (PDT) X-Received: by 2002:a5d:4529:0:b0:21d:ce8e:7888 with SMTP id j9-20020a5d4529000000b0021dce8e7888mr23723631wra.705.1658385907034; Wed, 20 Jul 2022 23:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658385907; cv=none; d=google.com; s=arc-20160816; b=AjLIxhqxwl5phVXminMuTYCtBdNd6iFk+4ULcHyCcu/i59cZoP7pFFRa/IctPY1XP4 5TeSblNmfPjEI0eYbvpgqDbuUdAQ7ngIBh8xYrNlpgLVplCOtHO1794sr77iI2tEX9Ik VrvPSjjkpewY09MgbSVjp0+2LwiN8n2+NPBbEcdmVYEHMHg3DM4u45snwhBjfkMWA0j9 OjC1KjiRT4nJzkxwTG6ixDnM04ZdS/kvTqu3Z/H1Tko1e03d1z2af76GVvSKommMAGu3 D4HP3rt9K9nFpdqcKT9jqfTcyIDb/Ls7Xo8ZiuCmwFovqYLE2tipbRvZSxAT6aa6FPyr oWWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=gUisilg7L4dd/aI3OSlcyXi7Asy/u+I+uAPdQHFBF94=; b=0dW2JZ3+3PibYIOhILVETHvF6Uvm0fdm9wR7IzwhtvPc4hiRT4sA8uc3NeAc5ubSo0 TGOidooBYIG5yzBtWa10NSxsDkqzGE0H9BoVLgJ5gcQ2qTOAQ8l33OO6EATjB3ylMmI0 WMH31OiaPqkFiJG/cJw79T8P8yFjvk8DEc5OWvQ/PTlBDi95Gjr2vgl4v8eENlSssaCg Ka9iw3ARkWrZxcPbD3Qn0PVaBuBXBGiEVno8v8fTtSrCXVtS3UcaPT5xeIHnk3hBAhXm 6X3Ya/hmWJFBLAwkBg15GBQD7f9McjEfwMgjz6qHJX70EZiP0DtShEy3FnKjJZ6lUpoH AfAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LXgNQHX1; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id u2-20020adfb202000000b0021d92908400sor457413wra.7.2022.07.20.23.45.07 for (Google Transport Security); Wed, 20 Jul 2022 23:45:07 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a5d:5f01:0:b0:21e:5202:17f with SMTP id cl1-20020a5d5f01000000b0021e5202017fmr1980932wrb.392.1658385906760; Wed, 20 Jul 2022 23:45:06 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (mob-5-90-140-42.net.vodafone.it. [5.90.140.42]) by smtp.gmail.com with ESMTPSA id c18-20020a056000105200b0021e4f446d43sm903711wrx.58.2022.07.20.23.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 23:45:06 -0700 (PDT) From: Dario Binacchi To: u-boot@lists.denx.de Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi Subject: [PATCH v3 13/13] mtd: decommission the NAND museum Date: Thu, 21 Jul 2022 08:44:35 +0200 Message-Id: <20220721064435.2456601-14-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220721064435.2456601-1-dario.binacchi@amarulasolutions.com> References: <20220721064435.2456601-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LXgNQHX1; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Michael Trimarchi Upstream linux commit f7025a43a9da26. The MTD subsystem has its own small museum of ancient NANDs in a form of the CONFIG_MTD_NAND_MUSEUM_IDS configuration option. The museum contains stone age NANDs with 256 bytes pages, as well as iron age NANDs with 512 bytes per page and up to 8MiB page size. It is with great sorrow that I inform you that the museum is being decommissioned. The MTD subsystem is out of budget for Kconfig options and already has too many of them, and there is a general kernel trend to simplify the configuration menu. We remove the stone age exhibits along with closing the museum REMARK Don't apply this part from upstream: Some of the iron age ones are transferred to the regular NAND depot. Namely, only those which have unique device IDs are transferred, and the ones which have conflicting device IDs are removed. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Use commit sha1 with 13 digits. - Wrap commit description to a maximum of 75 chars. Changes in v2: - Use short-commit form. - Remove linux info. Uboot seems that backport without add this extra information. drivers/mtd/nand/raw/nand_ids.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd/nand/raw/nand_ids.c index 7602dd30f169..4dece1b20676 100644 --- a/drivers/mtd/nand/raw/nand_ids.c +++ b/drivers/mtd/nand/raw/nand_ids.c @@ -24,16 +24,6 @@ * extended chip ID. */ struct nand_flash_dev nand_flash_ids[] = { -#ifdef CONFIG_MTD_NAND_MUSEUM_IDS - LEGACY_ID_NAND("NAND 1MiB 5V 8-bit", 0x6e, 1, SZ_4K, SP_OPTIONS), - LEGACY_ID_NAND("NAND 2MiB 5V 8-bit", 0x64, 2, SZ_4K, SP_OPTIONS), - LEGACY_ID_NAND("NAND 1MiB 3,3V 8-bit", 0xe8, 1, SZ_4K, SP_OPTIONS), - LEGACY_ID_NAND("NAND 1MiB 3,3V 8-bit", 0xec, 1, SZ_4K, SP_OPTIONS), - LEGACY_ID_NAND("NAND 2MiB 3,3V 8-bit", 0xea, 2, SZ_4K, SP_OPTIONS), - LEGACY_ID_NAND("NAND 4MiB 3,3V 8-bit", 0xd5, 4, SZ_8K, SP_OPTIONS), - - LEGACY_ID_NAND("NAND 8MiB 3,3V 8-bit", 0xe6, 8, SZ_8K, SP_OPTIONS), -#endif /* * Some incompatible NAND chips share device ID's and so must be * listed by full ID. We list them first so that we can easily identify