Message ID | 20240711-macronix-mx25l3205d-fixups-v3-13-99353461dd2d@geanix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6BF33C3DA41 for <linux-arm-kernel@archiver.kernel.org>; Thu, 11 Jul 2024 13:06:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VUnP2F/GhNUBOAuGa/ZijGN9c4b7Ttg6SmdiH5XFDG8=; b=LzFXZ/nhY6juUJSy0LdiXR28bN hg56V2N7H9M92bVpDrPyhpdV9l50oYhQXRbqvwjg+WKus255SM2BRBvUiv2ynkdV3PWjJY6xUcCTK 13BgIM9K1a1qkDNthbUHpUtx+zMKnJre7BrCciKgX6vsIdTT2HY/rzuZ92LgZvAAAQmkj6d9PPKma 1CmgOocdmQlangaW2m4x/2oVQ+f1rD8pY2vLbDmRMuXcBUwsH22rLukkIXVom5mw782/1G5ZYsiab 36WQqzabXBjsJceU+zCu/3LaF6WrnVDMlPwGpthnHdN7jfh83CDO9nF50LbVYYYqikFGHsTy7ffZc TuDqsaQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRtUy-0000000E50V-3EWz; Thu, 11 Jul 2024 13:06:12 +0000 Received: from www530.your-server.de ([188.40.30.78]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRtPY-0000000E1aL-2ZWn; Thu, 11 Jul 2024 13:00:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=VUnP2F/GhNUBOAuGa/ZijGN9c4b7Ttg6SmdiH5XFDG8=; b=CJxJgiH3zo1A5oMh69WWXFdZ/v MHVbhtiVYEwh2F/8gqFySyxDCzki0bxQmCXz8egSkMfn7kz/5MppbhqRrj4BqHmZPRbcwQ7lGF9mz 99xTgU2N1bM/9nees3Ay2zl9rQAJuimmqcYVaZwAIMsA+SIkW16/JjUl0A0Qz2QCRJJApzEUXfs7u UN6le3h+E78Ehf6OjSt9PEkS5r4z21jEo0SR1e6WBT6xVVakn+cdAqtchINTDfw7BCH8MafDqk1ZX qnSqzCxfDqUT5qeeQ3U9H4u1lAO3XGJCTxE9utcPOjDJrqVbNjrcYZvgDDS3ijkK8Seuq8Zla4Jg8 E3jnVqPQ==; Received: from sslproxy02.your-server.de ([78.47.166.47]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <esben@geanix.com>) id 1sRtPX-000BX9-7W; Thu, 11 Jul 2024 15:00:35 +0200 Received: from [87.49.147.209] (helo=localhost) by sslproxy02.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <esben@geanix.com>) id 1sRtPX-0005O1-03; Thu, 11 Jul 2024 15:00:34 +0200 From: Esben Haabendal <esben@geanix.com> Date: Thu, 11 Jul 2024 15:00:13 +0200 Subject: [PATCH v3 13/15] mtd: spi-nor: xmc: Use new SPI_NOR_TRY_SFDP flag MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-13-99353461dd2d@geanix.com> References: <20240711-macronix-mx25l3205d-fixups-v3-0-99353461dd2d@geanix.com> In-Reply-To: <20240711-macronix-mx25l3205d-fixups-v3-0-99353461dd2d@geanix.com> To: Tudor Ambarus <tudor.ambarus@linaro.org>, Pratyush Yadav <pratyush@kernel.org>, Michael Walle <mwalle@kernel.org>, Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, Nicolas Ferre <nicolas.ferre@microchip.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Claudiu Beznea <claudiu.beznea@tuxon.dev> Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Rasmus Villemoes <rasmus.villemoes@prevas.dk>, linux-arm-kernel@lists.infradead.org, Esben Haabendal <esben@geanix.com> X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1720702815; l=1089; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=6sGOeGBjWQoa+lKaakmKJY3XXQ4BYB11RN1yRi3xMDA=; b=XiAissFDssg6IebkzSvdb8kE/Jn1sGzrKHeFXF4USrd1u6C8YdoJVSrNFcoBI76ElTKk3C5QX RduUBlvo78eDFw97VKeV5zHmUzPKWRUgjRQc4xIC9doZbsjXRsCJiFL X-Developer-Key: i=esben@geanix.com; a=ed25519; pk=PbXoezm+CERhtgVeF/QAgXtEzSkDIahcWfC7RIXNdEk= X-Authenticated-Sender: esben@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.10/27333/Thu Jul 11 10:35:59 2024) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240711_060036_699210_90C07E13 X-CRM114-Status: GOOD ( 10.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
mtd: spi-nor: macronix: workaround for device id re-use
|
expand
|
diff --git a/drivers/mtd/spi-nor/xmc.c b/drivers/mtd/spi-nor/xmc.c index d5a06054b0dd..527468630b99 100644 --- a/drivers/mtd/spi-nor/xmc.c +++ b/drivers/mtd/spi-nor/xmc.c @@ -13,12 +13,12 @@ static const struct flash_info xmc_nor_parts[] = { .id = SNOR_ID(0x20, 0x70, 0x17), .name = "XM25QH64A", .size = SZ_8M, - .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, }, { .id = SNOR_ID(0x20, 0x70, 0x18), .name = "XM25QH128A", .size = SZ_16M, - .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, }, };
This converts from the old (deprecated) implicit way of triggering an optional SFDP parse with fallback to the static configuration in the matching struct flash_info entry. Signed-off-by: Esben Haabendal <esben@geanix.com> --- drivers/mtd/spi-nor/xmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)