From patchwork Thu Jul 11 13:00:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Esben Haabendal X-Patchwork-Id: 13730678 Return-Path: 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 9A9B3C3DA49 for ; Thu, 11 Jul 2024 13:02:25 +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=d+8V3/rKaunu+zG+Ahpl7K1m4zxvyurqkU+URN+F9Hk=; b=1d+tL8TcjuBvE7L9t0VLdTctS3 ec9WYVb01qOGEpuxmbGnlQHnq2uzuXeAIr/ZIxY6YeTwX13fMG9c3gr80C8XKhhbJmQq20r8HptXd 2Bubo6f2gbUe8FwtE4DYxBYa8J3gxr3lbhF3SAF0EQ6tIIbuaSOrm6KQnHOPyCSHbD4erU8gVy3lE Cy6weYa+MZa3lByoj8gMoq1LWwDMb48nz4SY4eWzJcgxD+2EzO/EHz8fc0imyATbtQxf0Ii2z7rKp 60pl2QoRdllXN2o1ofpj1Flh0PUumkIYm9BR3asfGwymVDdvZK9cL2lI9BbsEo4ud5K2a7rXWJHeV GOi15NHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRtR5-0000000E2Tk-1imP; Thu, 11 Jul 2024 13:02:11 +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 1sRtPJ-0000000E1Vf-2q8z; Thu, 11 Jul 2024 13:00:24 +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=d+8V3/rKaunu+zG+Ahpl7K1m4zxvyurqkU+URN+F9Hk=; b=mba9LSHjnOmPPJUiaW2yasyzp0 44oiDVzH1IhYeGMMPxR95O5L1ZbL0jQtQ/mZ+QHy9DIpvZCnCAUfET2OJdBM3AjnPOlktgB+SzQSA iDyqwQTbC45hXNmTv5+Zaq31N7cZuxYgQ5I7wDDz/M0eVt4Ab8DZWHmYC4608ULy0bO+kcFgnOJ2b v6PiFp3j0Nsgk0QP+cD3J0ic/uCbP2acI9vUcwuviZ0EM5QbBOn9ODg9UvkIXfG3p4aL2aV+P1p/V 25NJWrvWQYa5zI8Dv/JAv2joEpij/dbWIaIXhHChWDZmrDEGrSxscW5Vta5P6oveladSfBqjf+WUR UuByuKOg==; 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 ) id 1sRtPI-000BT5-3v; Thu, 11 Jul 2024 15:00:20 +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 ) id 1sRtPH-0003ON-2S; Thu, 11 Jul 2024 15:00:19 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:05 +0200 Subject: [PATCH v3 05/15] mtd: spi-nor: eon: Use new SPI_NOR_TRY_SFDP flag MIME-Version: 1.0 Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-5-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 , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Rasmus Villemoes , linux-arm-kernel@lists.infradead.org, Esben Haabendal X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1720702815; l=1530; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=yDfyY8snkJSmluAtxiaEP/s2vlNRcQJPO6SAUBJaRIQ=; b=L3n3Tl5TJSue3j3s7PtAlTmOF8/qAmNf1K3er6bHO/RBI9LcjRtBeEuzJfswXoZFabE+FLt2W 9D4pUeTqnHpCq/UQX7TQExnpe6Edt4rJ3g2yPZQ+CbidyERSIj+R06D 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_060021_748853_7BFA5B51 X-CRM114-Status: GOOD ( 10.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- drivers/mtd/spi-nor/eon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi-nor/eon.c b/drivers/mtd/spi-nor/eon.c index c1ddf662f782..0200e564f087 100644 --- a/drivers/mtd/spi-nor/eon.c +++ b/drivers/mtd/spi-nor/eon.c @@ -21,7 +21,7 @@ static const struct flash_info eon_nor_parts[] = { .id = SNOR_ID(0x1c, 0x30, 0x14), .name = "en25q80a", .size = SZ_1M, - .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id = SNOR_ID(0x1c, 0x30, 0x16), .name = "en25q32b", @@ -45,7 +45,7 @@ static const struct flash_info eon_nor_parts[] = { .id = SNOR_ID(0x1c, 0x70, 0x15), .name = "en25qh16", .size = SZ_2M, - .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id = SNOR_ID(0x1c, 0x70, 0x16), .name = "en25qh32", @@ -54,7 +54,7 @@ static const struct flash_info eon_nor_parts[] = { .id = SNOR_ID(0x1c, 0x70, 0x17), .name = "en25qh64", .size = SZ_8M, - .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id = SNOR_ID(0x1c, 0x70, 0x18), .name = "en25qh128",