From patchwork Fri Jul 15 05:57:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nazzareno Trimarchi X-Patchwork-Id: 2179 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A3C7E3F07C for ; Fri, 15 Jul 2022 07:57:57 +0200 (CEST) Received: by mail-wr1-f69.google.com with SMTP id m7-20020adfa3c7000000b0021d7ae39d1dsf921352wrb.12 for ; Thu, 14 Jul 2022 22:57:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657864677; cv=pass; d=google.com; s=arc-20160816; b=vF6tRN/+Lco3O3btCzTKKkOl2g+QQHjUpUJVsVuKRFSRqft2ER9v0aLs7M+wMNlkKZ VZImwlEjFTes0bukoEmum3XcOt/hpS90s171fD6QnQT9VfjJ8CJe64RYPwoL1KkrXSQl bxvgZMn3T63mDheXDuLtdpR7pn6aAiwCWU7v21q2LqStBohw/NlvCww351AqJ7zUii+j GLQ5Pp/ZftKgtBBFjxWUcPxhKnc9Cx7axJj7ktBTDFuN9OtaKuPfsJsXWBNUGhd76gfV cKnN3KuT3FDLceux+0qK1qrNOxSwXewn3jDZ3DxO729/AVBVd+haDk2E0zjB+DvkR7hM 4tFA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=bkzb3euo16+xkMF2N/88yJDP4g2uo29BwnDHAy7Fwj0=; b=BbH5QQRL6c0nWS7FehtFJewe8gZFYpMHau7mKyH4nJCfsUgDVPMtENjsMGfwwdQC8c olhJqswuHWBH0pEtpNa2gheeZuEvjkBpEFILFDHsUQAzesAzKXvoEkmS6vBKQIz8W1a4 v47k1EguKtGKAGyYPFyXvO/c6j4wCtn1eT4/qw4TEMYnDP/UCjUcvgok7s0DGdETj7VY pOzf7Tl7X00kEowaiU5owqzTVsNUb+AGugIFqbqifE65YIpOhR9n9iV6GI4nXZjYCDJq 2BNdwT5hWmXGpuk9YBlxvT2W8FY9RPCQii6UlY1Py67nGmP7nc8ssM+HeIvjDa9eSFci AcUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OQzBpJge; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=bkzb3euo16+xkMF2N/88yJDP4g2uo29BwnDHAy7Fwj0=; b=PLymTIh1bw+jvCvjZZPu4Jm9UGQSMJ3tkCWdrL/MxxFqtp/lE4Gm+4bew4kMnOZwoY 9DTGXCGFwb/LBS4Ha/PZBZwF+FHJd5N6gTq+jTk5wfpPNA38jIDzEhN3RMa3tQW2cxlQ vfCtWURw3wRKpwAkEGg9j/pKYN2EdhLygVxWg= 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: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=bkzb3euo16+xkMF2N/88yJDP4g2uo29BwnDHAy7Fwj0=; b=4AV8eYGomISCE+avGWPIPmH4rOZaftHGDZUlQPgQ7jWEvQdZVxzCwt1IirsDT+P6Sp mGJEpDAsw2cZxaA01pcFjIIF7cSK6vyCeqo3jeP0/w7igxtAQr78NGJ9A6L1AxtD491b tLvmf6wj3eZgF2+/RGjil2Rvwt5KOV1aZHdhQRgut/GJgs5R6i3aMcZQdQ3/1gw3KaIl u3rEEvsu9rrKDPHBhMWdgguqI7xOKMWK4Dqv57jgdhXXlZj8xUzrzR+UzVBv1D88TA4E 8bpVLyCPR68prCZ1oM3Ps2fcwXe8bc0QVR78T/LyEj/JvPuHy9WmLZZ5f/egi97FVFti 6SuQ== X-Gm-Message-State: AJIora/rNQ3W2dTfodAh/q5xVrMHsBDT4FVv+zl9U7fNPWtkQX0t7Hk9 FfRQCCKeHvLKb+Mt/q/MME1ZC8Uu X-Google-Smtp-Source: AGRyM1s0DeGZrO2BwgGkbxDWHKrK216NIFISjL8YwA4MoSh1DWDCTfHba4ioTqj7Iv5J0p3bj+xpUw== X-Received: by 2002:a1c:e902:0:b0:3a0:2d95:49d4 with SMTP id q2-20020a1ce902000000b003a02d9549d4mr12694816wmc.189.1657864677213; Thu, 14 Jul 2022 22:57:57 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:3485:b0:3a2:e5bf:aeec with SMTP id a5-20020a05600c348500b003a2e5bfaeecls7066313wmq.0.canary-gmail; Thu, 14 Jul 2022 22:57:56 -0700 (PDT) X-Received: by 2002:a7b:ce06:0:b0:3a0:39e0:b322 with SMTP id m6-20020a7bce06000000b003a039e0b322mr19026802wmc.55.1657864675852; Thu, 14 Jul 2022 22:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657864675; cv=none; d=google.com; s=arc-20160816; b=m1A6eJqJ3JdTiOTFqjYsZLy2X9IS0o3KRulZulqVYD0uXHSeLOjqjKxkfU8u2mOQZC AWiO3eHpoNvF+j9eVRgq3Vd5IaMaWE2qXfDRKvFfUpPv9G4qH+gCHtYemMXf/dfU63Oe v9F3Qg27a2WMOGQJCArW1hOybmq+qGV9UEwELz85eHMWhM3mev+K3tpJD8W6GoXs48hF oSwgr25RmZv3Ej1Yi9AKbuDYklBv7nc5LIpMsaLUah1Dkk4fPJK6T996g+gDNU7jyway yeD8tMO6ecNaiuFKEYEWLvPV9Z+s+YGry3jU0Y7mqfc9Ml31qiA3Xn5JYBBlLAnMmc/r E9Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=qg61Ps3Mwq/dnHK1H6nN/BVg6kx2Rj1KXGnAcT91Zfk=; b=AQFs6qRViPYaAQCSwxIP9SXoJOR8gBJHx070XCmbFHIgulINQea+H/Qo/WYklmDjwJ 8RPSK9f2VcT16JAe2RoN46yrUToWbMM12X3fFzjl4Wef7IMbXsXhJ1rr8iD1U8HH0747 vu/lgHERzDuLScRc+ytYTq8YVeCBYAR2UUSOCL/GhWoXrURURUbEAwk1ds8Z8xKopkmy uVe8fAtxxHftV1fHu9o3cMQ75KZHRhke34Drk8X212g7s9kUB+Zs/cVV41ZSiY3OtoR4 F35vr02QTYUZoIUC8iRlcaZNxVd0KCvpxKFPnyuoamVYMFeR1DSLhREst5IsX1SaqwW8 3xqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OQzBpJge; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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 i1-20020a05600c400100b003a2eb147b22sor945553wmm.34.2022.07.14.22.57.55 for (Google Transport Security); Thu, 14 Jul 2022 22:57:55 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a7b:c84a:0:b0:3a2:cf6b:290d with SMTP id c10-20020a7bc84a000000b003a2cf6b290dmr19155777wml.137.1657864675003; Thu, 14 Jul 2022 22:57:55 -0700 (PDT) Received: from panicking.. ([2.198.242.86]) by smtp.gmail.com with ESMTPSA id m24-20020a05600c461800b0039ee51fda45sm3908526wmo.2.2022.07.14.22.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 22:57:54 -0700 (PDT) From: Michael Trimarchi To: linux-amarula@amarulasolutions.com, Dario Binacchi , Tommaso Merciai Cc: u-boot@lists.denx.de Subject: [PATCH] mtd: decommission the NAND museum Date: Fri, 15 Jul 2022 07:57:49 +0200 Message-Id: <20220715055749.489319-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OQzBpJge; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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: , Upstream commit f7025a43a9da26fb79684c6b75ddfe6b1b5986bf 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, but 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: Artem Bityutskiy Signed-off-by: David Woodhouse Signed-off-by: Michael Trimarchi --- 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 7602dd30f1..4dece1b206 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