Message ID | 20230807-mtd-flash-info-db-rework-v2-40-291a0f39f8d8@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp3667134vqi; Tue, 22 Aug 2023 07:35:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHD3oqaNmXjC1AU6UtBWJf7eul8nHYYas9C0eACC1BmTkTkQfZNAuX4Xs2tfXdc7L2T+tvN X-Received: by 2002:a05:6a00:1a93:b0:68b:a137:372c with SMTP id e19-20020a056a001a9300b0068ba137372cmr1056620pfv.25.1692714900897; Tue, 22 Aug 2023 07:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692714900; cv=none; d=google.com; s=arc-20160816; b=SffOMAJ3pCEkfD9ynAs3NIaYHbt1vag99hKk1mZ8MPUpHsEkVWoQlzpF4kQ5WpBI0H P9BNSuN+BktXieMt2Z2tLdoBlsJWlfMkyILrCSymHtDBIERpzSRIkhKBlVuqePGFXPDW sUz0DEHPfRN3ePd4QTj1T+rEGTXy+fvUduAHNfpXF7KWJ/PbcixK69unaHJiUao2O5gw ZF1MjFgEI0NX4xi1SK3VwoEMPkvR0wlbtaytNNKPq3JH/qmzv68ObJ9gLuvpJG8IkLPy JjJ0OlnpEoGV+XdAEzcZz9JrHWuLkWYH1iN1QLJ1s8ABJBR8vz0GXLQ431yFalBFZyiG xwJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=e+M3LG11CnsOkQZG/RStwdXzVxpXYR+r0TJhy1/HMgo=; fh=sGokzmqN/xaL6jGbf+JSrC0JTDwjZ5He1xJ0SScZpXk=; b=ljMLT9p01IKJGW2M7oB5v16LR2WCWn4tk1aWh1iX1zSoQxs9WGD0K8I6YWgjo74nPj o8+sXT06xQTA1ZGrChORfQvJDdm4DFoLIhGfeT7eRmgEc4T29KKxcmWRkjVX9rIW4ZUR PwvHsBGkFehCh1U4YJ6WaKOf+t6jpRVMYOqTAty771hnbQgL91F/Xtw11Ui4kji9j7LG tbCPSlbkEYeH4Ah9KL8b9ZTKioL30U15InZGdMTyPb2wf/t60BiDN+/pMJyIDoIEBjLW 7CQH8pIU5VHErVaXqj9uizQcGBEYTUBYgMTpw9QGbKlBRD/MnOM8Kl5adrXhXXdEtkyM aQMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YE1Mib6U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a636c03000000b0056c2f508886si4014007pgc.423.2023.08.22.07.34.46; Tue, 22 Aug 2023 07:35:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YE1Mib6U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233524AbjHVHMY (ORCPT <rfc822;kjyul0303@gmail.com> + 99 others); Tue, 22 Aug 2023 03:12:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233348AbjHVHL5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 22 Aug 2023 03:11:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFFCDCD9 for <linux-kernel@vger.kernel.org>; Tue, 22 Aug 2023 00:11:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7795164D8D for <linux-kernel@vger.kernel.org>; Tue, 22 Aug 2023 07:10:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3631AC43395; Tue, 22 Aug 2023 07:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692688255; bh=fjBFDwKo3KO8ngc80qTC0rIJuf+fwM3TGfE20y77Uv8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YE1Mib6Ug8Ta3uwzoFl9oucsyTd3ubHd4ane/x3GVAUQFLgbwbfGI6TiqJQvKOZor t0NsdwnM/kuXLGwbyp8ZZaI1mW1Al6QVqhK5uuZ6YJ8cZFdC3J2PSHFSselo3xGzDf ocnDua792rRtXfkNuAlXZlPVWcWNl+rJJ1TgtDsJnPMsBKPL7fClWXhzHBZauQML6X BE8Zb0pCv+hNUrFIEaSCviO3hDkSTe6Q0ZXNMysQLroC2mx5b9RxtFgwpvHJhT1DvS fr6r32BnzLS5X2tJckXiokL45nDK/6PETGjJNftVvZM5x4slXAQwaf3aKSSUyrbV+Z M0/J62162vJmA== From: Michael Walle <mwalle@kernel.org> Date: Tue, 22 Aug 2023 09:09:56 +0200 Subject: [PATCH v2 40/41] mtd: spi-nor: atmel: drop duplicate entry MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230807-mtd-flash-info-db-rework-v2-40-291a0f39f8d8@kernel.org> References: <20230807-mtd-flash-info-db-rework-v2-0-291a0f39f8d8@kernel.org> In-Reply-To: <20230807-mtd-flash-info-db-rework-v2-0-291a0f39f8d8@kernel.org> To: Tudor Ambarus <tudor.ambarus@linaro.org>, Pratyush Yadav <pratyush@kernel.org>, Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com> Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Michael Walle <mwalle@kernel.org> X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774940219724545463 X-GMAIL-MSGID: 1774940219724545463 |
Series |
mtd: spi-nor: clean the flash_info database up
|
|
Commit Message
Michael Walle
Aug. 22, 2023, 7:09 a.m. UTC
The Atmel AT26DF321 and AT25DF321 have the same ID. Both were just
discovered by reading their IDs, that is, there is no probing by name.
Thus only the first one in the list was ever probed. The AT25DF is the
newer series. Drop the older one.
Signed-off-by: Michael Walle <mwalle@kernel.org>
---
drivers/mtd/spi-nor/atmel.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/mtd/spi-nor/atmel.c b/drivers/mtd/spi-nor/atmel.c index 18e904962d0e..95f0e139284e 100644 --- a/drivers/mtd/spi-nor/atmel.c +++ b/drivers/mtd/spi-nor/atmel.c @@ -206,13 +206,6 @@ static const struct flash_info atmel_nor_parts[] = { .flags = SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE, .no_sfdp_flags = SECT_4K, .fixups = &atmel_nor_global_protection_fixups - }, { - .id = SNOR_ID(0x1f, 0x47, 0x00), - .name = "at26df321", - .size = SZ_4M, - .flags = SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE, - .no_sfdp_flags = SECT_4K, - .fixups = &atmel_nor_global_protection_fixups }, { .id = SNOR_ID(0x1f, 0x47, 0x01), .name = "at25df321a",