From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C9B415ECDF for ; Thu, 11 Jul 2024 13:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702831; cv=none; b=jnGtXVm+s8ZcpW/y4ch7x/vN8drmMS2m1WJE4xXolltUzwEfjYJM31nGYJKD9vcPp60konr05TtYmi6XxIew5k6qOKD4uHB0VlY4eO+Zx4YTjEnSbTdjbegg6kufONSfbocRmXPwHPfaGBwRZbCvdXlos1JHK37Li4tY8iYKAJI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702831; c=relaxed/simple; bh=WHJBUERZdI5anYsL4qiSt3EgClUaLQjxdDb2lFpx5J4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GfJaQJAif2DGO+QXpZ/S/N276VmnLM/u8WVg/oJ6gmd+0buEJ2rGnZ/5OgUg16LFN62HuH9HKKZXnsU7nllELVXcz2Ey1BH4RGVJ6lcp/Bb1zfXMnEd3zHAcbXZZB28aZYLi04hQTX20RB3t9r0qH+xn1uiB8hX7vB/cYgWa1Uk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=oj2PWEA3; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="oj2PWEA3" 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=pxA3/BuB6HUs2tgm/oJDzWCo9cDxy9kfseU0w3KrlBM=; b=oj2PWEA3AHARezlANl6lNDnw3f DvU0ld7f7gMyTCCX+XqI8sRYOGGAYOMJJpthQAdWjFiXWr1cAZ/STJF+cORLJiTwDpA26BJZXTVxo jRIU5rSUyaBOCGp1ykEb1/YoFRaUVUlLHOSkWgHvspJvDRzM7pDI18ZPEQhg9SpTosyurS1DlwZNI XF06pNTYOCpQITU3znkVgtuP4IozyRVUJlV/bDMeWhJnGvkNvftx9dHMPPE7gE4oRo/FeM9T+4FFu vIEOcUzf/UZqEFVPFWJ9H/UJh1+6Bz03hnj3ENbWp8W3kc9nZi1reKPe6NwAYGQSkPPeJzWqtfkFP RqWluiTQ==; 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 1sRtPF-000BRh-6r; Thu, 11 Jul 2024 15:00:17 +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 1sRtPF-000325-05; Thu, 11 Jul 2024 15:00:16 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:01 +0200 Subject: [PATCH v3 01/15] mtd: spi-nor: core: add flag for doing optional SFDP parsing Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-1-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=7503; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=WHJBUERZdI5anYsL4qiSt3EgClUaLQjxdDb2lFpx5J4=; b=aPo3kjmNJg4ZG/Jk8HSE8b2OJJtk00MAsuWZNutgFfPkLAhHZ8msjdGZnka1BMxpq5bmZ47GR 3xzfEdOiyJ/DQsOR5bAp9sTfDtPhmBbCyPvZWxPLJeqT63Yb09IbR/m 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) This is the first step in replacing the old deprecated mechanism for initializing flash parameters and settings based on SFDP, with fallback to static parameters from struct flash_info. A dedicated SPI_NOR_TRY_SFDP flag is used to request this handling, where as the deprecated mechanism relies on the setting of either of the SPI_NOR_DUAL_READ, SPI_NOR_QUAD_READ, SPI_NOR_OCTAL_READ or SPI_NOR_OCTAL_DTR_READ bits. Compared to the deprecated mechanism, SPI_NOR_TRY_SFDP flags allow optional SFDP parsing for flashes where the fallback does not include dual/quad/octal read. This kind of mechanism is needed for flashes that reuses flash id from old non-SFDP flashes for newer flashes with SFDP, with different parameters and settings required. Macronix is known to reuse flash ids for replacement parts, so for those lines where the initial part did not have SFDP, this mechanism is needed. Signed-off-by: Esben Haabendal --- drivers/mtd/spi-nor/core.c | 49 ++++++++++++++----------------------------= ---- drivers/mtd/spi-nor/core.h | 35 ++++++++++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 35 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 3e1f1913536b..39b28700ce28 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -2717,11 +2717,10 @@ static void spi_nor_manufacturer_init_params(struct= spi_nor *nor) =20 /** * spi_nor_no_sfdp_init_params() - Initialize the flash's parameters and - * settings based on nor->info->sfdp_flags. This method should be called o= nly by - * flashes that do not define SFDP tables. If the flash supports SFDP but = the - * information is wrong and the settings from this function can not be ret= rieved - * by parsing SFDP, one should instead use the fixup hooks and update the = wrong - * bits. + * settings based on nor->info->sfdp_flags. This method is for flashes tha= t do + * not define SFDP tables. If the flash supports SFDP but the information = is + * wrong and the settings from this function can not be retrieved by parsi= ng + * SFDP, one should instead use the fixup hooks and update the wrong bits. * @nor: pointer to a 'struct spi_nor'. */ static void spi_nor_no_sfdp_init_params(struct spi_nor *nor) @@ -2899,14 +2898,15 @@ static int spi_nor_late_init_params(struct spi_nor = *nor) } =20 /** - * spi_nor_sfdp_init_params_deprecated() - Deprecated way of initializing = flash - * parameters and settings based on JESD216 SFDP standard. + * spi_nor_try_sfdp_init_params() - Try to initialize flash parameters and + * settings based on JESD216 SFDP standard, with fallback to pre-initializ= ed + * flash parameters and settings if SFP parsing fails. * @nor: pointer to a 'struct spi_nor'. * * The method has a roll-back mechanism: in case the SFDP parsing fails, t= he * legacy flash parameters and settings will be restored. */ -static void spi_nor_sfdp_init_params_deprecated(struct spi_nor *nor) +static void spi_nor_try_sfdp_init_params(struct spi_nor *nor) { struct spi_nor_flash_parameter sfdp_params; =20 @@ -2918,28 +2918,6 @@ static void spi_nor_sfdp_init_params_deprecated(stru= ct spi_nor *nor) } } =20 -/** - * spi_nor_init_params_deprecated() - Deprecated way of initializing flash - * parameters and settings. - * @nor: pointer to a 'struct spi_nor'. - * - * The method assumes that flash doesn't support SFDP so it initializes fl= ash - * parameters in spi_nor_no_sfdp_init_params() which later on can be overw= ritten - * when parsing SFDP, if supported. - */ -static void spi_nor_init_params_deprecated(struct spi_nor *nor) -{ - spi_nor_no_sfdp_init_params(nor); - - spi_nor_manufacturer_init_params(nor); - - if (nor->info->no_sfdp_flags & (SPI_NOR_DUAL_READ | - SPI_NOR_QUAD_READ | - SPI_NOR_OCTAL_READ | - SPI_NOR_OCTAL_DTR_READ)) - spi_nor_sfdp_init_params_deprecated(nor); -} - /** * spi_nor_init_default_params() - Default initialization of flash paramet= ers * and settings. Done for all flashes, regardless is they define SFDP tabl= es @@ -3046,13 +3024,16 @@ static int spi_nor_init_params(struct spi_nor *nor) if (spi_nor_needs_sfdp(nor)) { ret =3D spi_nor_parse_sfdp(nor); if (ret) { - dev_err(nor->dev, "BFPT parsing failed. Please consider using SPI_NOR_S= KIP_SFDP when declaring the flash\n"); + dev_err(nor->dev, "BFPT parsing failed. Please consider using SPI_NOR_S= KIP_SFDP or SPI_NOR_TRY_SFDP when declaring the flash\n"); return ret; } - } else if (nor->info->no_sfdp_flags & SPI_NOR_SKIP_SFDP) { - spi_nor_no_sfdp_init_params(nor); } else { - spi_nor_init_params_deprecated(nor); + spi_nor_no_sfdp_init_params(nor); + if (!(nor->info->no_sfdp_flags & SPI_NOR_SKIP_SFDP)) + spi_nor_manufacturer_init_params(nor); + + if (spi_nor_try_sfdp(nor)) + spi_nor_try_sfdp_init_params(nor); } =20 return spi_nor_late_init_params(nor); diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h index 442786685515..dfc81716e068 100644 --- a/drivers/mtd/spi-nor/core.h +++ b/drivers/mtd/spi-nor/core.h @@ -485,9 +485,12 @@ struct spi_nor_id { * * @no_sfdp_flags: flags that indicate support that can be discovered via= SFDP. * Used when SFDP tables are not defined in the flash. Th= ese - * flags are used together with the SPI_NOR_SKIP_SFDP fla= g. + * flags are used together with the SPI_NOR_SKIP_SFDP or + * SPI_NOR_TRY_SFDP flag. * SPI_NOR_SKIP_SFDP: skip parsing of SFDP tables. * SECT_4K: SPINOR_OP_BE_4K works uniformly. + * SPI_NOR_TRY_SFDP: try parsing SFDP tables before using the + * parameters specified in this struct. * SPI_NOR_DUAL_READ: flash supports Dual Read. * SPI_NOR_QUAD_READ: flash supports Quad Read. * SPI_NOR_OCTAL_READ: flash supports Octal Read. @@ -535,6 +538,7 @@ struct flash_info { u8 no_sfdp_flags; #define SPI_NOR_SKIP_SFDP BIT(0) #define SECT_4K BIT(1) +#define SPI_NOR_TRY_SFDP BIT(2) #define SPI_NOR_DUAL_READ BIT(3) #define SPI_NOR_QUAD_READ BIT(4) #define SPI_NOR_OCTAL_READ BIT(5) @@ -706,6 +710,35 @@ static inline bool spi_nor_needs_sfdp(const struct spi= _nor *nor) return !nor->info->size; } =20 +/** + * spi_nor_try_sfdp() - returns true if optional SFDP parsing should be tr= ied + * for this flash, with fallback to static parameters and settings based on + * flash ID if SFDP parsing fails. + * + * Return: true if optional SFDP parsing should be tried + */ +static inline bool spi_nor_try_sfdp(const struct spi_nor *nor) +{ + if (nor->info->no_sfdp_flags & SPI_NOR_SKIP_SFDP) + return false; + if (nor->info->no_sfdp_flags & SPI_NOR_TRY_SFDP) + return true; + + /* Deprecated/legacy way for triggering optional SFDP parsing. + * If one of the no_sfdp_flags indicating dual, quad or octal read is + * set, SFDP parsing will be tried. + * When all drivers have been converted to set SPI_NOR_TRY_SFDP where + * needed, this deprecated mechanism can be removed. + */ + if (nor->info->no_sfdp_flags & (SPI_NOR_DUAL_READ | + SPI_NOR_QUAD_READ | + SPI_NOR_OCTAL_READ | + SPI_NOR_OCTAL_DTR_READ)) + return true; + + return false; +} + #ifdef CONFIG_DEBUG_FS void spi_nor_debugfs_register(struct spi_nor *nor); void spi_nor_debugfs_shutdown(void); --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECB6415ECF8 for ; Thu, 11 Jul 2024 13:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702831; cv=none; b=HO13riYfJisi/y74tM+073K061fZtG5cTz9SBeQvg5ZiA5a1dr8HS7rWa9VFClSWrsQyAAriRTnoRD41h3/n+SxGuGdjAj4lfuLSixkWw3/vUmw7KDzayHDAjyOAvXb6KhNzXsIBXB9FETr69xSmOi6VkkCoKjAQx90DA6g7rx0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702831; c=relaxed/simple; bh=JrPkztMV1oVuJInQdJCGTwXrnR2sny7JLQNFMwZiGqI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iggZw0Bpuis6XRDsH4DXe6u1aEaJc9rkyweb0duwNx7mifMANVyQ0Y8J1z9N1SS2uf4wc1ijueEQuSzpe+/H775vnP0MacjQryNX2LgJ4eTEPZvbLWIhjwUP5snT7WDXZWWHShBeltvIZmJ7BaRwEVCiZH8o5VNLoMByzmPkFG0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=qm2cgKsc; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="qm2cgKsc" 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=yWPnlogaHh1JsL53cSK4pYNGOrysHKRUndRnVu5uc+I=; b=qm2cgKsc04djIe+T+t/T4PrZAl XA/YTkOz03/j7brnLnj3eP3aKCF/Fy4OSk57EPv4HG5kUILHcftrj0UMK1SEqeJQvaNzWgNmuUlV1 q6cfglywoU/xSvwDT46pNPyIKwp0w4WhuXNZpzvcl6EhQJ/8oJsZ+wtJEpJab173wAqmGksEWr+W9 b97sMRyZgrWWkM+Q2ubkWgo8mwik7vG7GagS6Evq/b3p7L3mzHzIrvRnkeeiIkD/uqVIlUih2Tyjf 5fjHqOhDxVZ2vZcKw9GwU/LIxA4n/PBgeLAa/P4DVQgdtHszJj44GwSSFmKdXFc/QtHZ9i3kZEeHB mhtMMISg==; 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 1sRtPF-000BS8-Rl; Thu, 11 Jul 2024 15:00:17 +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 1sRtPF-00037C-2D; Thu, 11 Jul 2024 15:00:17 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:02 +0200 Subject: [PATCH v3 02/15] mtd: spi-nor: macronix: enable quad/dual speed for mx25l3205d chips Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-2-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=2314; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=JrPkztMV1oVuJInQdJCGTwXrnR2sny7JLQNFMwZiGqI=; b=jO03AmXp0U1Nh+VMBJv8f0MdVICx6OYPq8mRIR1HA6jgera3Lq58jHoP+eLaFtWBiMdB0nVmp bD+RRvKAFi1AidmK2ckr/aV7iqu0vDFS3tumjbHR/Qdy2gHt5QBTW92 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) Macronix engineers apparantly do not understand the purpose of having an ID actually identify the chip and its capabilities. Sigh. The original Macronix SPI NOR flash that identifies itself as 0xC22016 with RDID was MX25L3205D. This chip does not support SFDP, but does support the 2READ command (1-2-2). When Macronix announced EoL for MX25L3205D, the recommended replacement part was MX25L3206E, which conveniently also identifies itself as 0xC22016. It does not support 2READ, but supports DREAD (1-1-2) instead, and supports SFDP for discovering this. When Macronix announced EoL for MX25L3206E, the recommended replacement part was MX25L3233F, which also identifies itself as 0xC22016. It supports DREAD, 2READ, and the quad modes QREAD (1-1-4) and 4READ (1-4-4). This also support SFDP. So far, all of these chips have been handled the same way by the Linux driver. The SFDP information have not been read, and no dual and quad read modes have been enabled. The trouble begins when we want to enable the faster read modes. The RDID command only return the same 3 bytes for all 3 chips, so that doesn't really help. Instead, we can use the SPI_NOR_TRY_SFDP flag, which forces the spi-nor system to try using SFDP, but fallback to the parameters specified in struct flash_info. This way, boards using MX25L3205D will continue as before this change. That is without taking advantage of the 1-2-2 that it supports. For MX25L3206E and MX25L3233F, the SFDP parameters are used, and they will therefore be using the optimal dual or quad mode supported by the flash and the SPI controller it is attached to. Signed-off-by: Esben Haabendal --- drivers/mtd/spi-nor/macronix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index ea6be95e75a5..090f28e05a5d 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -61,7 +61,7 @@ static const struct flash_info macronix_nor_parts[] =3D { .id =3D SNOR_ID(0xc2, 0x20, 0x16), .name =3D "mx25l3205d", .size =3D SZ_4M, - .no_sfdp_flags =3D SECT_4K, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc2, 0x20, 0x17), .name =3D "mx25l6405d", --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C624615ECE8 for ; Thu, 11 Jul 2024 13:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702831; cv=none; b=JT1cH+DqDarMJ+MFimxRa+MuGoWFF/av/n67dBeik2bpy/JRHnbit0Zuygp0yru5BGut3R4BbNMznHyfFGhzjY7mr8MEZa4NOsvahH1UOSlYwQpNlrjIIcuJUMDzcV/YuTdl1/0G85dYmrHUb3mJ2pTE3WxOkR5r1p791aYDzlY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702831; c=relaxed/simple; bh=E9Xx4YsmdLPl9JM6Nb956eFYmxW+WJmiJqnM9qnOYgU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Z2nktgJxj7NEBztIz3xEO4xpme4Ix5TSKxdqqPIatnCtfffA6BI/1KSuF0JPPXvOYu3LxajQKejd3ZlKP9n8OYVAEXvibPxmTNjWOHYJR/mSVlNygoQK8NNxMAOV7CaaGKsM6Oi1onWbj8tsrUuSmpqrvyc2oTONevESv3tRpc4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=1EIEvOmv; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="1EIEvOmv" 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=XeZX/fN1JLnmI+FO4xROcdTsrgS/vV35tYbkT3yOVA8=; b=1EIEvOmvQ7ULVcq45LRry6nK+v VWNoV6X660XoREPEAEvVqgKdJ68SLIs6yKVHRwIOgq9d6avjydiTEOwFd9+9ds2HWkFYTdBY+qVCJ 4f2VRs1dG9MMp6DHEGCzSuIYTQZKu2JeelQZtDfR9e+ZFTsQBx5dzSgLN8linWJDHfgJNT8yC4Whs c/m6KpDD80YNKKl22TY0clTUz8JEsw1LdtlRVLVIBnDH0Fp1nYC3FAbFwoQqiSQFRXh9opvBzjpAw OxnXbMEmrjNaSJmD6F5ygxKJsUj6pSOzhYigSnwEZHhjwwC1ZbTfzXJzRN+kxyOzOj/ROEvA78AgE UR4K5seQ==; 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 1sRtPG-000BSC-IH; Thu, 11 Jul 2024 15:00:18 +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 1sRtPG-0003Cy-14; Thu, 11 Jul 2024 15:00:17 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:03 +0200 Subject: [PATCH v3 03/15] mtd: spi-nor: Align default_init() handling for SPI_NOR_SKIP_SFDP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-3-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=1243; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=E9Xx4YsmdLPl9JM6Nb956eFYmxW+WJmiJqnM9qnOYgU=; b=iK/XDkcF02QhGwuqjgh2t6l5BJL/gsQcEG0/ScrlXESFe8xr/g+CctSmS5HLiXLNi/HxeDhFX 5CtBi7zMusPB9+er3muBMrXmcaN/Ifhs4E9uKWeaWXMdIXDmshi6FUW 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) Currently, flashes declared with size !=3D 0 in struct flash_info and witho= ut SPI_NOR_SKIP_SFDP in no_sfdp_flags is initialized using struct flash_info. Flashes declared with size !=3D 0 and SPI_NOR_SKIP_SFDP set is handled similarly, with the only difference being that the ->default_init() hooks is ignored. With the only in-tree user of SPI_NOR_SKIP_SFDP is the Spansion s25fl256s0 flash, which does not have either manufacturer or flash_info ->default_init() hooks, it should be safe to align this, so that they are handled in the same way. Signed-off-by: Esben Haabendal --- drivers/mtd/spi-nor/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 39b28700ce28..d58f107f62ec 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -3029,8 +3029,7 @@ static int spi_nor_init_params(struct spi_nor *nor) } } else { spi_nor_no_sfdp_init_params(nor); - if (!(nor->info->no_sfdp_flags & SPI_NOR_SKIP_SFDP)) - spi_nor_manufacturer_init_params(nor); + spi_nor_manufacturer_init_params(nor); =20 if (spi_nor_try_sfdp(nor)) spi_nor_try_sfdp_init_params(nor); --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 819C615ECE6 for ; Thu, 11 Jul 2024 13:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702832; cv=none; b=ZYj7bsvBdyv1GPH1yamSZdVHgpVOsLGfTuth/3tkkQ2As6Nl+i2w+wkWfogEpTHH/DNLtMOX6SMGI9xdZ4YChs9B94VnCqMEBCcJbt78/a3Y1c4+H0pjEr6+OMF8OuQSfHkcQn7cUFBov3GVc32kNx88S3thRbba7k6CptnLmno= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702832; c=relaxed/simple; bh=Ob5pJLtErmzw/PEIKu46fWtb7DMNCAxcd8QknAftFds=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UJ3uAQjop6MWygR7C4mBaAbQswJE6VW+1I/bh+ax1b76QCeti5bXL+AI0/1yRALrafGfGsAqtPIEjpr0uoDI5UUUvi3Sz7Cz+eqaI4up82WMqVvGO2owu4kxvSkf1EfbLNO/eTlYlsq/1s0TjoqFaY1Vy9oM6XbDAfTQkIniXMQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=z23R1L0o; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="z23R1L0o" 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=9ZrZJLS1DLB4jv/UMX2sL8nP6E/alEgCBVlU2XvWCHA=; b=z23R1L0o1zjmTbzlPIwov0PFJE lhi3iMgGLOiRExSNJDqSnTD3PDgq1PBhKeUKBvBvBmdCtPkWha60fArzZMVYNhoCeYponQcAQwnjJ lSEPGEtqRLnRVt2NZ6cxC9bCzl5DWPfv0ynlguI9P4SZcly/4e6xxRbw4VB0Gu8KI78eeeTpnIHV3 25Q9oreBwE0Ty/EF4Oob+TBLqJET/GWsoy/U5NSeOStw1PuGinvO8HIb5nNYbEnaTroeIUdt6gDX1 To60aVZIm7yM/zj7Qdzc5R2nHuGTrxde+R/MDNwgVYEawc7USc4PAn9cLgVtJy1/szkH1zUREV6gu J3Kke4uQ==; 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 1sRtPH-000BSd-6S; Thu, 11 Jul 2024 15:00:19 +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-0003Iu-06; Thu, 11 Jul 2024 15:00:18 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:04 +0200 Subject: [PATCH v3 04/15] mtd: spi-nor: atmel: Use new SPI_NOR_TRY_SFDP flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-4-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=904; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=Ob5pJLtErmzw/PEIKu46fWtb7DMNCAxcd8QknAftFds=; b=6fpJfGaww/bYkfwhAzRE1TJ6E/AkqJ+9CFbDEezK6EgmHnXqdB0LfnfLFFgSoNyg5MTiHE6oh j3/VXzy6xVECOYw4rWOFcavu67K0J/sHILjlLRXjVwzy/w0zqWAFybe 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) 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/atmel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/atmel.c b/drivers/mtd/spi-nor/atmel.c index 45d1153a04a0..cfd6a406b33a 100644 --- a/drivers/mtd/spi-nor/atmel.c +++ b/drivers/mtd/spi-nor/atmel.c @@ -175,7 +175,7 @@ static const struct flash_info atmel_nor_parts[] =3D { .id =3D SNOR_ID(0x1f, 0x42, 0x16), .name =3D "at25sl321", .size =3D SZ_4M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x1f, 0x44, 0x01), .name =3D "at25df041a", --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C9FC15ECE2 for ; Thu, 11 Jul 2024 13:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702831; cv=none; b=jvdH1UN2PB0mssdENhYp6rhHnjE1500eB23iK2prU1PtiuRwc8fVrFl/H9jE1v/lFtHq8nwo24/j83JdaptblFVJkB0glQMgm3AlWBvw5fMRvjBqOlP9dYmcmvwHRFDnPalwhSlmajBHj7wkpCuYcxL4I2lWCenLa9xdrPPGx+Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702831; c=relaxed/simple; bh=yDfyY8snkJSmluAtxiaEP/s2vlNRcQJPO6SAUBJaRIQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tOu0Qjwe794fuvjA85Q8CrTp7zLjeSwj6VlKeOgRkyx3rUl7JdrC3GQjtagktTiHdyY/C6CaIh/WR71UljnGpNgdqKLcgK2cH1Tg/MFaEOLfKmO4o/UPkscOWXVJa8E4XWpgx0GauYv31SmirQrJ9v3WN63JWQ5nPqXPP8J9aL8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=mba9LSHj; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="mba9LSHj" 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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) 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[] =3D { .id =3D SNOR_ID(0x1c, 0x30, 0x14), .name =3D "en25q80a", .size =3D SZ_1M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x1c, 0x30, 0x16), .name =3D "en25q32b", @@ -45,7 +45,7 @@ static const struct flash_info eon_nor_parts[] =3D { .id =3D SNOR_ID(0x1c, 0x70, 0x15), .name =3D "en25qh16", .size =3D SZ_2M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x1c, 0x70, 0x16), .name =3D "en25qh32", @@ -54,7 +54,7 @@ static const struct flash_info eon_nor_parts[] =3D { .id =3D SNOR_ID(0x1c, 0x70, 0x17), .name =3D "en25qh64", .size =3D SZ_8M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x1c, 0x70, 0x18), .name =3D "en25qh128", --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F4D21E504 for ; Thu, 11 Jul 2024 13:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702831; cv=none; b=OR63z8O32uhHUkEBolu3fcvtvnpYIvXUuetZzOwRLQfXIjdS68woOB07JDgmgpbyK9XW8LX3AKEvdo1PpQr+OmeWxZxObEV2+kLun8hErnHAhveYlI/9BC+WmcorrXTi2e+bQCW5mEw/LKnU27NgI/5tj0+03/+uudZ3vtKWEJs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702831; c=relaxed/simple; bh=6MX4eIXlY3UWuzb6ohIZb1wVqVRypjimxT99p/j9DBc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JOqZ96uk2vq3JXbZExdQZDfpUKUSJfyoCxuXPXCazfSquOZ3vkbBmYKn2FCrLa+IYEtk+8gvK2BCSDTpTt+4Glm07MVOseObnj/qteO/LytVIs22oaAzN2Z4k6WK3f+812osS8Y1jIlDlm4Zn1tsGaX3rd3A6uExiEv/HwBEnxE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=ZRhYbAib; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="ZRhYbAib" 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=ppLgZmwRM8c0ykYORNd+WlBtKewamkLLMhiNg/fbsuE=; b=ZRhYbAib1qUkcon8Opsf/ifyr/ YdGWlMHigua8wC8qvfybG2XIK5K2am7oUnyVNX0jBu7XR7hQPCnM8ld8pEtsSM4abBmzs8yr75FIB 2sfRkehEg2qPOG1t6xB9SgzSn0ZTO5ITCc9lRozXl39V4VUZhoGBIdJVM5r+mWHGzzyVorsIMixdh 2rpq4F7U2X/TFHiHJpR9rCViec66pnDSRsSqkg6YpB/xnw3yiK2nB8i3ovo4/71Zq5Y2+QL6ci/M0 b+SQbfFtVlWYLbR1UG1rdZBviYe0b4DPPI8jb407BdwM3ZuQKu0gzLK3lL09NdQbOwcd2xaEqXH3l qyDL+aMQ==; 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-000BTD-Q2; 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 1sRtPI-0003XS-21; Thu, 11 Jul 2024 15:00:20 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:06 +0200 Subject: [PATCH v3 06/15] mtd: spi-nor: gigadevice: Use new SPI_NOR_TRY_SFDP flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-6-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=3015; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=6MX4eIXlY3UWuzb6ohIZb1wVqVRypjimxT99p/j9DBc=; b=R+4tYMKNX3qUqddrsczMwsqlbiLfxg1IA2r7g6QcfsfYTa9tNVQ2bA2iIUTf1VjKNPrYf7Kp+ kEIMgmxqmCHDmqOOHNh6hffL5zJ0rRETZ/VdCnZ2naWjYDH3MvRJlCn 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) 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/gigadevice.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/spi-nor/gigadevice.c b/drivers/mtd/spi-nor/gigadev= ice.c index ef1edd0add70..c0f2d74ede01 100644 --- a/drivers/mtd/spi-nor/gigadevice.c +++ b/drivers/mtd/spi-nor/gigadevice.c @@ -39,29 +39,29 @@ static const struct flash_info gigadevice_nor_parts[] = =3D { .name =3D "gd25q16", .size =3D SZ_2M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc8, 0x40, 0x16), .name =3D "gd25q32", .size =3D SZ_4M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc8, 0x40, 0x17), .name =3D "gd25q64", .size =3D SZ_8M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc8, 0x40, 0x18), .name =3D "gd25q128", .size =3D SZ_16M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc8, 0x40, 0x19), .name =3D "gd25q256", - .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6, + .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_= NOR_TRY_SFDP, .fixups =3D &gd25q256_fixups, .fixup_flags =3D SPI_NOR_4B_OPCODES, }, { @@ -69,19 +69,19 @@ static const struct flash_info gigadevice_nor_parts[] = =3D { .name =3D "gd25lq32", .size =3D SZ_4M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc8, 0x60, 0x17), .name =3D "gd25lq64c", .size =3D SZ_8M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc8, 0x60, 0x18), .name =3D "gd25lq128d", .size =3D SZ_16M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, }; =20 --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9430815ECF9 for ; Thu, 11 Jul 2024 13:00:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702832; cv=none; b=ei/nDJFKBGBLAYQWz23S2yAEyIt+RcSDw/rFH2OFqLWSbwfbSCh/NQEiKrlLIGQr7ylwP56Uu0vr7WjSo1e0XfbmTbCPfI57l0gnLXZ0nOc0wJYT4wUxbtlnnflF/cSSaPi1/OwpqLlsika4hyyFZWF2P+veODrRCSR0tNDilNk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702832; c=relaxed/simple; bh=ZRmVQqdG+HwMnflnXqK8Hne0XXJ7bmicarecuxtLmbc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nxz2P89tZoH6oe3aJsfKo++CUVRNVDhFYdMMxAlO3FxDqbIRoeIHov7bRFk8iR9SdYbHggcQnwhKkQwwl6WKhD3HR8SwLCAQQk6i80mKd7V/E8DkYVoSIJwVkxoatCcE6sy0q3UMqSu7h6R6BHlOvHRXvXOKXYqJGeTZjl/Oga8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=LO+8NzSM; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="LO+8NzSM" 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=+KKqiIe0zAVzdlcV1iQJgODjeG08/S9xkthtZjiraRg=; b=LO+8NzSMUa0B01z926WP3iP0dh W6PemI2pS+Zl7n1EsQDbqHqLvjXq/DjC4L3P7z2nq1zShSlwqFRwOfvsQHurJM8PaepVyXssIZIH1 cpnWIqRWyfOdKpj8+0rsH7J8nLR7z7FSoYgO2M+ZuAoHANHox1kR64y6muOJj5AuYsAyuGwFhN640 74YGrJCyDMtrwZT518P17akLDRJJ9Ak1T/fLQxyU4xAGr4CUDsyR8/l4nBYX0T5PISpqbjeRP/Mju gKrgm1LmK3v/a9nQibIDwgVMINq9epxBxb6rLKd3TdY3jUiDgnm6e7ccgTVe/ZfCcUaxppjpQVVzO ZuXJqKTw==; 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 1sRtPJ-000BTR-Gh; Thu, 11 Jul 2024 15:00:21 +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 1sRtPJ-0003ci-0u; Thu, 11 Jul 2024 15:00:20 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:07 +0200 Subject: [PATCH v3 07/15] mtd: spi-nor: issi: Use new SPI_NOR_TRY_SFDP flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-7-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=2924; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=ZRmVQqdG+HwMnflnXqK8Hne0XXJ7bmicarecuxtLmbc=; b=gaG7Mtcl26BC8GhIEQZ7aWtgbhUzbNHEeYiqbJNLvhGEE4ky99WdyrXyOM7R/ZKrkAvPxQhuz sTz3IjkZueDC8Wu8/KhcG6dXzOc4WPa+KGeRalZTRedZCtVoV1wpt+Z 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) 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/issi.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi.c index 18d9a00aa22e..7867489e214a 100644 --- a/drivers/mtd/spi-nor/issi.c +++ b/drivers/mtd/spi-nor/issi.c @@ -74,32 +74,32 @@ static const struct flash_info issi_nor_parts[] =3D { .id =3D SNOR_ID(0x9d, 0x40, 0x13), .name =3D "is25lq040b", .size =3D SZ_512K, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x9d, 0x60, 0x14), .name =3D "is25lp080d", .size =3D SZ_1M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x9d, 0x60, 0x15), .name =3D "is25lp016d", .size =3D SZ_2M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x9d, 0x60, 0x16), .name =3D "is25lp032", .size =3D SZ_4M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x9d, 0x60, 0x17), .name =3D "is25lp064", .size =3D SZ_8M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x9d, 0x60, 0x18), .name =3D "is25lp128", .size =3D SZ_16M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x9d, 0x60, 0x19), .name =3D "is25lp256", @@ -109,17 +109,17 @@ static const struct flash_info issi_nor_parts[] =3D { .id =3D SNOR_ID(0x9d, 0x70, 0x16), .name =3D "is25wp032", .size =3D SZ_4M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x9d, 0x70, 0x17), .size =3D SZ_8M, .name =3D "is25wp064", - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x9d, 0x70, 0x18), .name =3D "is25wp128", .size =3D SZ_16M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x9d, 0x70, 0x19), .name =3D "is25wp256", --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7003615FA96 for ; Thu, 11 Jul 2024 13:00:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702834; cv=none; b=lbd8nPkriZKBlteZn+gzmieYgtVsLhlZ0Ads7Z6tbwXMsj4pi2Ih8gXCcA85QjAtnPsJROR0FFTgiXcKkTyFO+i6ySEyWgDyNr4xdm4PmQBYOxypirbKOhcMgCEbcs864bnh5iwWxlX3lFkyeQKK6aHqJrwdH+EGoxoRuhO9MAk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702834; c=relaxed/simple; bh=tSRHJerrgIY/xhP42g5Z+NiohX0lf8pP4THxPt55rtI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jLw5p+hvCGKlx+XBznlGV8FeFWOHZjfS9WMH9JnMmWIjUzvaMvjI36GWwXOoPgnYjQUtW1Tj5cVRhaF3nEMCjyEWHAMop1k1pL/e/P/SuSnk35uSCf0MoKXu01gUJKuQkEWL1ao2JMwJDCC7/qG1qCdwlPjVcYXP6BIw6IVgjUw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=r9PHbn2i; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="r9PHbn2i" 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=1gViG0Am9XFir/+Rywn/yPhuXM8ueFi7r8F4u7hLGcU=; b=r9PHbn2iadCNsW8/DN/aTa1lh7 LMiIiCF0E0EEQsWxkvrbf3AEbP5g0qraIE1dPACZc0qk44Yh+uNYvPtnoMA7t1IV3lG7tbhYL6HpM LJ4KZLCOvVedSXiU8pqqNfuhP0816lPZ9tXWFfCIW7ZQqXHKU0qBPxZinuXXY0WRt/n/AmaMomeUt ZymDUbeobDl+x0ugoMwVx+idnlLcAc0P+FuqFHGZ2SykspPCUiDKQ47DPQ9717M324dPoIbNZP+WP MRDPTgbZcA98P5dP3d99y62GUGKseNQi5/a9sl7kwBjm2uqJKgLwsnmkmJ1VOAVaoUy811VsBXokw M+B7j2sg==; 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 1sRtPK-000BTb-4j; Thu, 11 Jul 2024 15:00:22 +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 1sRtPJ-0003hl-2w; Thu, 11 Jul 2024 15:00:21 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:08 +0200 Subject: [PATCH v3 08/15] mtd: spi-nor: macronix: Use new SPI_NOR_TRY_SFDP flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-8-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=4335; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=tSRHJerrgIY/xhP42g5Z+NiohX0lf8pP4THxPt55rtI=; b=POonLqbqEcbbcx3n9p07EI157zH05Ksrj6WAkr7zW1glmn8qp4PctNakp1ER7wxdUQzL5brsR ldgQ642NXXAB2a4LC3M2acfCgo7nLhQUi3jOOCFqHE6dT681NYWq9g2 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) 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/macronix.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 090f28e05a5d..d31abdbe916f 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -77,24 +77,24 @@ static const struct flash_info macronix_nor_parts[] =3D= { .id =3D SNOR_ID(0xc2, 0x20, 0x19), .name =3D "mx25l25635e", .size =3D SZ_32M, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .fixups =3D &mx25l25635_fixups }, { .id =3D SNOR_ID(0xc2, 0x20, 0x1a), .name =3D "mx66l51235f", .size =3D SZ_64M, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .fixup_flags =3D SPI_NOR_4B_OPCODES, }, { .id =3D SNOR_ID(0xc2, 0x20, 0x1b), .name =3D "mx66l1g45g", .size =3D SZ_128M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc2, 0x23, 0x14), .name =3D "mx25v8035f", .size =3D SZ_1M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc2, 0x25, 0x32), .name =3D "mx25u2033e", @@ -114,7 +114,7 @@ static const struct flash_info macronix_nor_parts[] =3D= { .id =3D SNOR_ID(0xc2, 0x25, 0x36), .name =3D "mx25u3235f", .size =3D SZ_4M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc2, 0x25, 0x37), .name =3D "mx25u6435f", @@ -124,7 +124,7 @@ static const struct flash_info macronix_nor_parts[] =3D= { .id =3D SNOR_ID(0xc2, 0x25, 0x38), .name =3D "mx25u12835f", .size =3D SZ_16M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc2, 0x25, 0x39), .name =3D "mx25u25635f", @@ -135,19 +135,19 @@ static const struct flash_info macronix_nor_parts[] = =3D { .id =3D SNOR_ID(0xc2, 0x25, 0x3a), .name =3D "mx25u51245g", .size =3D SZ_64M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .fixup_flags =3D SPI_NOR_4B_OPCODES, }, { .id =3D SNOR_ID(0xc2, 0x25, 0x3a), .name =3D "mx66u51235f", .size =3D SZ_64M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .fixup_flags =3D SPI_NOR_4B_OPCODES, }, { .id =3D SNOR_ID(0xc2, 0x25, 0x3c), .name =3D "mx66u2g45g", .size =3D SZ_256M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .fixup_flags =3D SPI_NOR_4B_OPCODES, }, { .id =3D SNOR_ID(0xc2, 0x26, 0x18), @@ -161,17 +161,17 @@ static const struct flash_info macronix_nor_parts[] = =3D { .id =3D SNOR_ID(0xc2, 0x26, 0x1b), .name =3D "mx66l1g55g", .size =3D SZ_128M, - .no_sfdp_flags =3D SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc2, 0x28, 0x15), .name =3D "mx25r1635f", .size =3D SZ_2M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc2, 0x28, 0x16), .name =3D "mx25r3235f", .size =3D SZ_4M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xc2, 0x81, 0x3a), .name =3D "mx25uw51245g", --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74EEF16B3B4 for ; Thu, 11 Jul 2024 13:00:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702838; cv=none; b=B50ggC4t5VEwp5y7SspXgQMGEskA7kKE+ehIapOafyU6o2tB2uyYp0jQTU7sWVFh6Ed439a4TZi6p3KMiWMqwKZfvPfLIaczLs5N8DXAzUUvogSi4eeHd7U5x7bnq7cDLxJgs60tb4OoIWP7yW3zQiKEB8woE9kUhe5HPOp67hA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702838; c=relaxed/simple; bh=8gRxmjbNJOt6+hI1qXw+SxmSI/YFHve+jCyTXkZDUNI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gXDHytIyTtk3kfNaf9Qm2DkPIgHOgpVcTE0IZkg1f8C8c/5nfr7Gw3cpJj2nfWZZvEU6UpnFBER1VAEqMCZ+ccDcKymzSw3bQb0BoAB2OOAL39vLVbBSHRhxS799pa3BTJB8l+GgTDkZ4qhjWwsuH82EbQwkgELF38OIUhGsQsw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=NJAPg+nu; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="NJAPg+nu" 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=6Udo75OjxMB/GImXQS4AFYjVsw/wVAePEtyqQJPRUb4=; b=NJAPg+nu9OiKm4SUoX2pf7ZF0g 5QQNBl7mPeyukQ7zWMWyoY/WKkwUBzp/l+SewpZkbAOH60X4S6Dd7GuPpFX2eyQDn5FLwuvYZXOmj ChuLz7+vYYeGGfqI6Z86MdlftUNDWfYsfGM/QW8LYXqvzI17oFFdRnYmQFbf1mhOUit3sJtgeIrgX 3Fxb0eMam7Ecoww4STzELhmr4MS+PpK51po6Y/Fo2Qap2fqpCmzzY9/OaNTulWGmp2fMfk4+aYR2+ NDEnIupBPOM2ENS66bZVy9i+0AmPI1V1aiTUR2iFkbJGeukGQOIYc9BVx5RTZK6t3W9LMUBOU4Pj/ WVeaptPg==; 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 1sRtPP-000BVF-Mo; Thu, 11 Jul 2024 15:00:27 +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 1sRtPP-0003my-1c; Thu, 11 Jul 2024 15:00:27 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:09 +0200 Subject: [PATCH v3 09/15] mtd: spi-nor: micron-st: Use new SPI_NOR_TRY_SFDP flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-9-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=6842; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=8gRxmjbNJOt6+hI1qXw+SxmSI/YFHve+jCyTXkZDUNI=; b=xaFoGar83fLOcfyMUbhb096+1G1ELXt+OevuCtRGTnEF+V+0NY7avO0ZwWxCcb7qt/1kcl8UG zeAl5FRakuYCm30WJ0mfrYOnw/5K5FmAKd9WwFF9Bs5PuC+g5BUIZfJ 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) 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/micron-st.c | 41 +++++++++++++++++++++----------------= ---- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-s= t.c index 3c6499fdb712..c40e02b4f030 100644 --- a/drivers/mtd/spi-nor/micron-st.c +++ b/drivers/mtd/spi-nor/micron-st.c @@ -166,7 +166,8 @@ static const struct flash_info micron_nor_parts[] =3D { .sector_size =3D SZ_128K, .size =3D SZ_64M, .no_sfdp_flags =3D SECT_4K | SPI_NOR_OCTAL_READ | - SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP, + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, .fixup_flags =3D SPI_NOR_4B_OPCODES | SPI_NOR_IO_MODE_EN_VOLATILE, .fixups =3D &mt35xu512aba_fixups, @@ -175,7 +176,7 @@ static const struct flash_info micron_nor_parts[] =3D { .name =3D "mt35xu02g", .sector_size =3D SZ_128K, .size =3D SZ_256M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_OCTAL_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_OCTAL_READ | SPI_NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, .fixup_flags =3D SPI_NOR_4B_OPCODES, }, @@ -364,38 +365,38 @@ static const struct flash_info st_nor_parts[] =3D { .id =3D SNOR_ID(0x20, 0xba, 0x16), .name =3D "n25q032", .size =3D SZ_4M, - .no_sfdp_flags =3D SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x20, 0xba, 0x17), .name =3D "n25q064", .size =3D SZ_8M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x20, 0xba, 0x18), .name =3D "n25q128a13", .size =3D SZ_16M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, }, { .id =3D SNOR_ID(0x20, 0xba, 0x19, 0x10, 0x44, 0x00), .name =3D "mt25ql256a", .size =3D SZ_32M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .fixup_flags =3D SPI_NOR_4B_OPCODES, .mfr_flags =3D USE_FSR, }, { .id =3D SNOR_ID(0x20, 0xba, 0x19), .name =3D "n25q256a", .size =3D SZ_32M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, }, { .id =3D SNOR_ID(0x20, 0xba, 0x20, 0x10, 0x44, 0x00), .name =3D "mt25ql512a", .size =3D SZ_64M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .fixup_flags =3D SPI_NOR_4B_OPCODES, .mfr_flags =3D USE_FSR, }, { @@ -404,7 +405,7 @@ static const struct flash_info st_nor_parts[] =3D { .size =3D SZ_64M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, }, { .id =3D SNOR_ID(0x20, 0xba, 0x21), @@ -412,38 +413,38 @@ static const struct flash_info st_nor_parts[] =3D { .size =3D SZ_128M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, .fixups =3D &n25q00_fixups, }, { .id =3D SNOR_ID(0x20, 0xba, 0x22), .name =3D "mt25ql02g", .size =3D SZ_256M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, .fixups =3D &mt25q02_fixups, }, { .id =3D SNOR_ID(0x20, 0xbb, 0x15), .name =3D "n25q016a", .size =3D SZ_2M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x20, 0xbb, 0x16), .name =3D "n25q032a", .size =3D SZ_4M, - .no_sfdp_flags =3D SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x20, 0xbb, 0x17), .name =3D "n25q064a", .size =3D SZ_8M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x20, 0xbb, 0x18), .name =3D "n25q128a11", .size =3D SZ_16M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, }, { .id =3D SNOR_ID(0x20, 0xbb, 0x19, 0x10, 0x44, 0x00), @@ -451,14 +452,14 @@ static const struct flash_info st_nor_parts[] =3D { .size =3D SZ_32M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .fixup_flags =3D SPI_NOR_4B_OPCODES, .mfr_flags =3D USE_FSR, }, { .id =3D SNOR_ID(0x20, 0xbb, 0x19), .name =3D "n25q256ax1", .size =3D SZ_32M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, }, { .id =3D SNOR_ID(0x20, 0xbb, 0x20, 0x10, 0x44, 0x00), @@ -473,7 +474,7 @@ static const struct flash_info st_nor_parts[] =3D { .size =3D SZ_64M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, }, { .id =3D SNOR_ID(0x20, 0xbb, 0x21, 0x10, 0x44, 0x00), @@ -484,14 +485,14 @@ static const struct flash_info st_nor_parts[] =3D { .id =3D SNOR_ID(0x20, 0xbb, 0x21), .name =3D "n25q00a", .size =3D SZ_128M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, .fixups =3D &n25q00_fixups, }, { .id =3D SNOR_ID(0x20, 0xbb, 0x22), .name =3D "mt25qu02g", .size =3D SZ_256M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .mfr_flags =3D USE_FSR, .fixups =3D &mt25q02_fixups, } --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 019D816B751 for ; Thu, 11 Jul 2024 13:00:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702838; cv=none; b=KiCtcMiNA/6oAhidhzMcYIwOmJ/6Easy85ab3wpzbcph7TJ5JoJRyerDb3z/5S+pk3DO0FD3ygCV9N1bypOHXI2JqOvrmsA0JFMcJ1yQQyN+l2cFwbWUCZuT4S7/rGxG7GHofLdNfbSOpavvaxLhHFiGLEAvD5decFdj7/Bj7YY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702838; c=relaxed/simple; bh=fAIpiW/bdt8BU9xFIQGA8empyKumWS0/y9ClBynUg70=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jhsyU19O349kIAA0Jt89Q+hwfoM4FMPVs662BYv2mObig8enoImEZPUa0wbTJyPCsM2avV+lcQm3BF7XQwV7W3ie1ItlzhPvVl1cT4r1jknEUodqBDvuhHD6WZjIxNUwWGhzMQuJT30TjkwBVK+6EmybDDkByRxcNjgn5PQKdrU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=CSxwaAAb; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="CSxwaAAb" 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=7IfeIKnf8bb4+3ONceR0JYXiJvxgBdavyiSexx2x3/E=; b=CSxwaAAbj32Y+GsD6BG2MpjGGS HKL/j4+VK7/NNfUXdhBMzMtl5w3nBpZE6p75ciCERwR8ojpGE7z+Ou4X8g+gJKqfmoeW8/InYzImg 0dbWiv3ZUut2ZXmmJtb1lExRSN33VmBxkTY85W6By/ba7UcxGDTyg3fDoA8dghBtHeWQjQN4UoUpM KzresWG90ll7T2O/MYx1fkrp/W862j5CrUrrDRswGHsZh10jcYPTI3GYDK6Up8hfygZ9uIc67YNci k86bQUhXNK4cU33YWxbFCJxGa3t2inuuBoiiAxy8JKzv79eXWJ+1OnYXOPfpANNRFRzUc4p60NYhi Wir3vFjQ==; 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 1sRtPQ-000BVR-CG; Thu, 11 Jul 2024 15:00:28 +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 1sRtPQ-0004aF-0S; Thu, 11 Jul 2024 15:00:27 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:10 +0200 Subject: [PATCH v3 10/15] mtd: spi-nor: spansion: Use new SPI_NOR_TRY_SFDP flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-10-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=7219; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=fAIpiW/bdt8BU9xFIQGA8empyKumWS0/y9ClBynUg70=; b=exjvJVt+ssM+J2waBaGaAT5g6AHzwq1ZKSYzDh24d228YMqcvW2cBp2EXGuNOYNE5fE+xMngx a01LEHK3myxALe3mDmFZEU1A47TdR0DLlyCgPMygU8SSgOlah5EJqat 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) 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/spansion.c | 44 +++++++++++++++++++++-----------------= ---- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index 6cc237c24e07..a58c0229003d 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -774,7 +774,7 @@ static const struct flash_info spansion_nor_parts[] =3D= { .id =3D SNOR_ID(0x01, 0x02, 0x15, 0x4d, 0x00), .name =3D "s25sl032p", .size =3D SZ_4M, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, }, { .id =3D SNOR_ID(0x01, 0x02, 0x15), .name =3D "s25sl032a", @@ -783,7 +783,7 @@ static const struct flash_info spansion_nor_parts[] =3D= { .id =3D SNOR_ID(0x01, 0x02, 0x16, 0x4d, 0x00), .name =3D "s25sl064p", .size =3D SZ_8M, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, }, { .id =3D SNOR_ID(0x01, 0x02, 0x16), .name =3D "s25sl064a", @@ -800,19 +800,19 @@ static const struct flash_info spansion_nor_parts[] = =3D { .name =3D "s25fs256s0", .size =3D SZ_32M, .sector_size =3D SZ_256K, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .mfr_flags =3D USE_CLSR, }, { .id =3D SNOR_ID(0x01, 0x02, 0x19, 0x4d, 0x01, 0x80), .name =3D "s25fl256s1", .size =3D SZ_32M, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .mfr_flags =3D USE_CLSR, }, { .id =3D SNOR_ID(0x01, 0x02, 0x19, 0x4d, 0x01, 0x81), .name =3D "s25fs256s1", .size =3D SZ_32M, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .mfr_flags =3D USE_CLSR, }, { .id =3D SNOR_ID(0x01, 0x02, 0x20, 0x4d, 0x00, 0x80), @@ -820,14 +820,14 @@ static const struct flash_info spansion_nor_parts[] = =3D { .size =3D SZ_64M, .sector_size =3D SZ_256K, .flags =3D SPI_NOR_HAS_LOCK, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .mfr_flags =3D USE_CLSR, }, { .id =3D SNOR_ID(0x01, 0x02, 0x20, 0x4d, 0x00, 0x81), .name =3D "s25fs512s", .size =3D SZ_64M, .sector_size =3D SZ_256K, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .mfr_flags =3D USE_CLSR, .fixups =3D &s25fs_s_nor_fixups, }, { @@ -844,49 +844,49 @@ static const struct flash_info spansion_nor_parts[] = =3D { .name =3D "s25fl128s0", .size =3D SZ_16M, .sector_size =3D SZ_256K, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .mfr_flags =3D USE_CLSR, }, { .id =3D SNOR_ID(0x01, 0x20, 0x18, 0x4d, 0x00), .name =3D "s25fl129p0", .size =3D SZ_16M, .sector_size =3D SZ_256K, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .mfr_flags =3D USE_CLSR, }, { .id =3D SNOR_ID(0x01, 0x20, 0x18, 0x4d, 0x01, 0x80), .name =3D "s25fl128s1", .size =3D SZ_16M, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .mfr_flags =3D USE_CLSR, }, { .id =3D SNOR_ID(0x01, 0x20, 0x18, 0x4d, 0x01, 0x81), .name =3D "s25fs128s1", .size =3D SZ_16M, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .mfr_flags =3D USE_CLSR, .fixups =3D &s25fs_s_nor_fixups, }, { .id =3D SNOR_ID(0x01, 0x20, 0x18, 0x4d, 0x01), .name =3D "s25fl129p1", .size =3D SZ_16M, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_TRY_S= FDP, .mfr_flags =3D USE_CLSR, }, { .id =3D SNOR_ID(0x01, 0x40, 0x13), .name =3D "s25fl204k", .size =3D SZ_512K, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x01, 0x40, 0x14), .name =3D "s25fl208k", .size =3D SZ_1M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x01, 0x40, 0x15), .name =3D "s25fl116k", .size =3D SZ_2M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x01, 0x40, 0x16), .name =3D "s25fl132k", @@ -901,19 +901,19 @@ static const struct flash_info spansion_nor_parts[] = =3D { .id =3D SNOR_ID(0x01, 0x60, 0x17), .name =3D "s25fl064l", .size =3D SZ_8M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .fixup_flags =3D SPI_NOR_4B_OPCODES, }, { .id =3D SNOR_ID(0x01, 0x60, 0x18), .name =3D "s25fl128l", .size =3D SZ_16M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .fixup_flags =3D SPI_NOR_4B_OPCODES, }, { .id =3D SNOR_ID(0x01, 0x60, 0x19), .name =3D "s25fl256l", .size =3D SZ_32M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .fixup_flags =3D SPI_NOR_4B_OPCODES, }, { .id =3D SNOR_ID(0x04, 0x2c, 0xc2, 0x7f, 0x7f, 0x7f), @@ -985,22 +985,22 @@ static const struct flash_info spansion_nor_parts[] = =3D { .id =3D SNOR_ID(0xef, 0x40, 0x13), .name =3D "s25fl004k", .size =3D SZ_512K, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x40, 0x14), .name =3D "s25fl008k", .size =3D SZ_1M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x40, 0x15), .name =3D "s25fl016k", .size =3D SZ_2M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x40, 0x17), .name =3D "s25fl064k", .size =3D SZ_8M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, } }; =20 --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B927516C68C for ; Thu, 11 Jul 2024 13:00:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702839; cv=none; b=sdiihpfNTJHuuCSDlbr1YaUM7FdiZ5OYqiI2MbQsCyBbC2Z9M33ap/Sp8dR1ji8GpJCPDgVuM2lzKlrPRoz2TA39gp+v6XxMDuwG3QDm6drQy5Kf8s0b7oHizwEDOQpNmJumHz34Mg7mxUn/s6yytFMQFu/t2SIdau7uXcPjdOk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702839; c=relaxed/simple; bh=ljG3r26u3NWW/rRWWrTsFxrJ5qKb4+lQAH18feZYI74=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rBmt2SzMixAJxp9erqso733PrNXWS3QMtzcfuqZdmcYb9mep8TkDWfVOv4+F3Vdu3FqPGs07bPffcF3j8QeGREvg4IJoFoTs//9vb/mp7cPtguuAtgUaI9LZ0u0UE3pFG8SvfhXXJ1kSLqwIgOXmLT3gx6mPFiNgEXPkRtR/1/Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=lNMTe/g+; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="lNMTe/g+" 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=Iaiuq01WZqY1WjmLd9MSC9VUF3H2g1ho967hHMq1cSs=; b=lNMTe/g+MPV27Y9bXCVzRVwFyy Pk7fyTn3D8N6rxdGkyx4xsUU0c426emWxGcBgJThXWQf9wd0KqBw3kfZq3f4Fc+bLlTh6hQdmcojX nd2C8wiK02xcBn90n1LwfgXXKBTx6T2/e/okYN80vytpdG0Pb0DgNnKeqTAA3M5y5sDN6mQ+Obt1H PlqeINYoX+kuS586+pTkugm/DrTe7lJQ2mX3PEK2OVOOJ41d7N7uxxu5gG4pNHjnYFYxLK3g4D1Fq bQDpI+w8U54BEcdqARDg2jFby0lP5Vy4l78jCY8DvTPNAcfm5guQ/ADYp9feglW2H31jK6UpSvj3c XIT7sLbQ==; 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 1sRtPQ-000BVs-U8; Thu, 11 Jul 2024 15:00:28 +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 1sRtPQ-0004e5-2M; Thu, 11 Jul 2024 15:00:28 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:11 +0200 Subject: [PATCH v3 11/15] mtd: spi-nor: sst: Use new SPI_NOR_TRY_SFDP flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-11-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=1495; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=ljG3r26u3NWW/rRWWrTsFxrJ5qKb4+lQAH18feZYI74=; b=kuHOxZiK5BJO4gpOctj5rGZOrOg18d08fVjYk3yinG0AKzGrCIgyMRc89GYjVMEljgg4zK3eE Yc+x6CYl0FhC38EMd56YnQrydnA7l9yLh0sblAlMTAAolHceQo45Pl0 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) 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/sst.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi-nor/sst.c b/drivers/mtd/spi-nor/sst.c index 180b7390690c..bfebef62dd36 100644 --- a/drivers/mtd/spi-nor/sst.c +++ b/drivers/mtd/spi-nor/sst.c @@ -146,7 +146,7 @@ static const struct flash_info sst_nor_parts[] =3D { .id =3D SNOR_ID(0xbf, 0x26, 0x41), .name =3D "sst26vf016b", .size =3D SZ_2M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xbf, 0x26, 0x42), .name =3D "sst26vf032b", @@ -157,13 +157,13 @@ static const struct flash_info sst_nor_parts[] =3D { .name =3D "sst26vf064b", .size =3D SZ_8M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .fixups =3D &sst26vf_nor_fixups, }, { .id =3D SNOR_ID(0xbf, 0x26, 0x51), .name =3D "sst26wf016b", .size =3D SZ_2M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, } }; =20 --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3817B16CD2E for ; Thu, 11 Jul 2024 13:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702844; cv=none; b=A7u8Hky3GjtPJoe92hRFwA9Yc4my8BvJUWYVc3Jsb8SwLsyQ1+ECf9ty5W3rS1y+2ll3cxsBTSBUy0eeKexm9xAOn+KC0hW5YcR7WK+53I2qA/l0dGjNCzaUK8gCTEJsvFC3qPlFpYDWo7H40GZopP8ZcrGhlPqM4CVym3/Jxws= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702844; c=relaxed/simple; bh=rW3a7ipFPyWa9DZI305j2H7A6+s/aEtUMkP08XIBa2Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=R0tOErE7t3EZqiILMfe4YEw6bwTiUbku+8ZxE11Z18LrNQDeFr9qD+9ClTX3uZPICFoqDB8jSC8UqR63cDaPsPqJJT2RYQKk/HBlrdNp2vsUwWjxFlDaZGq8YG2mpniwd9UOkRQfyYUrkSgM45VbHCzioNbg/XeKP7OGRqZt/xg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=S7gsYmEG; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="S7gsYmEG" 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=IK4l41sD/FRDaezgs+l6z4765eA6ACLdhNcpzaUhaU0=; b=S7gsYmEGwhnqosGOr57AECD2fi c1UrjS+gt2lCId6ZyjVDCyVYX6mh6a7jDNYsICGMdZ0IVTmVBL6SSSVix9vg/caysBtPbIp8VJ7Y8 hFFZOosD9C2HhNYa7QgaC7VQwQjXuMI8lHDKXzaOPGtGSn80N5gZFBaisXiWOr0cB8IvoSxS6rO3O 5NgP5Dtq1vzG47rVkQzAdypp6VOpOpLPyz789w0PbB1deh+BopqaNQX3Wf0rB5t5O1GghFvF8Wrfd Iixyn+MRGetiVPsNQksyiPIYHskNOnWEflUDXCC8aWTC+SDPx8Ybd8po6xbIvvvY2eM324da8/ebE AjVa0SJA==; 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 1sRtPW-000BX5-JU; Thu, 11 Jul 2024 15:00:34 +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 1sRtPW-0004iJ-1F; Thu, 11 Jul 2024 15:00:33 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:12 +0200 Subject: [PATCH v3 12/15] mtd: spi-nor: winbond: Use new SPI_NOR_TRY_SFDP flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-12-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=5913; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=rW3a7ipFPyWa9DZI305j2H7A6+s/aEtUMkP08XIBa2Y=; b=/ZXrx04LhEavsH5lGJMhRg3brHTT4chz7hClrZGAFV7ZMK0lktR35hBwhgaH0kmi3/d9bPZ5F jMr2vpwsPUXDVf86NNVcaGQP+yw3IpJvopo6jRWEqXw030ZnazYFG1R 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) 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/winbond.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 142fb27b2ea9..42160257e270 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -101,7 +101,7 @@ static const struct flash_info winbond_nor_parts[] =3D { .id =3D SNOR_ID(0xef, 0x40, 0x17), .name =3D "w25q64", .size =3D SZ_8M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x40, 0x18), .name =3D "w25q128", @@ -110,13 +110,13 @@ static const struct flash_info winbond_nor_parts[] = =3D { .id =3D SNOR_ID(0xef, 0x40, 0x19), .name =3D "w25q256", .size =3D SZ_32M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .fixups =3D &w25q256_fixups, }, { .id =3D SNOR_ID(0xef, 0x40, 0x20), .name =3D "w25q512jvq", .size =3D SZ_64M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x50, 0x12), .name =3D "w25q20bw", @@ -137,31 +137,31 @@ static const struct flash_info winbond_nor_parts[] = =3D { .name =3D "w25q16dw", .size =3D SZ_2M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x60, 0x16), .name =3D "w25q32dw", .size =3D SZ_4M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .otp =3D SNOR_OTP(256, 3, 0x1000, 0x1000), }, { .id =3D SNOR_ID(0xef, 0x60, 0x17), .name =3D "w25q64dw", .size =3D SZ_8M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x60, 0x18), .name =3D "w25q128fw", .size =3D SZ_16M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x60, 0x19), .name =3D "w25q256jw", .size =3D SZ_32M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x60, 0x20), .name =3D "w25q512nwq", @@ -171,13 +171,13 @@ static const struct flash_info winbond_nor_parts[] = =3D { .name =3D "w25q16jv-im/jm", .size =3D SZ_2M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x70, 0x16), .name =3D "w25q32jv", .size =3D SZ_4M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x70, 0x17), .name =3D "w25q64jvm", @@ -188,7 +188,7 @@ static const struct flash_info winbond_nor_parts[] =3D { .name =3D "w25q128jv", .size =3D SZ_16M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x70, 0x19), .name =3D "w25q256jvm", @@ -196,32 +196,32 @@ static const struct flash_info winbond_nor_parts[] = =3D { .id =3D SNOR_ID(0xef, 0x71, 0x19), .name =3D "w25m512jv", .size =3D SZ_64M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x80, 0x16), .name =3D "w25q32jwm", .size =3D SZ_4M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, .otp =3D SNOR_OTP(256, 3, 0x1000, 0x1000), }, { .id =3D SNOR_ID(0xef, 0x80, 0x17), .name =3D "w25q64jwm", .size =3D SZ_8M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x80, 0x18), .name =3D "w25q128jwm", .size =3D SZ_16M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x80, 0x19), .name =3D "w25q256jwm", .size =3D SZ_32M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0xef, 0x80, 0x20), .name =3D "w25q512nwm", --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D931E16CD30 for ; Thu, 11 Jul 2024 13:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702845; cv=none; b=aKFuzhUBpvco1LyK+Io8k9TJsDWQsW1UivJAwJgm+RdpoFEl6TKK9RSbJPtGPvvpayz2MizJ3DKZn2oZ023RC/RWqbbqTBINOaapHzWPK8PtE9TXzUHizusqxhF7V0n/l+uc/X7wyJK0p/FP9WYROlntoIXGurQsEPVh6zeyWdE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702845; c=relaxed/simple; bh=6sGOeGBjWQoa+lKaakmKJY3XXQ4BYB11RN1yRi3xMDA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ww9vFzTIY8AGnC8ml2LBOeUoIABrcTlu86jT672DqGgHSWm9TPbPH41HilZdLBX3cHsmsVGG/pjAH1weyuSF/2QubSf/JMU7uUEPzRtw1Xlor4R650Z2GsEWxmqgsdGwqft937cMNkUjujQ4C8NkH3hlu1SpTxRr84pJtbZ5/r4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=CJxJgiH3; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="CJxJgiH3" 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 ) 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 ) id 1sRtPX-0005O1-03; Thu, 11 Jul 2024 15:00:34 +0200 From: Esben Haabendal 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 , 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=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) 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/xmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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[] =3D { .id =3D SNOR_ID(0x20, 0x70, 0x17), .name =3D "XM25QH64A", .size =3D SZ_8M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, { .id =3D SNOR_ID(0x20, 0x70, 0x18), .name =3D "XM25QH128A", .size =3D SZ_16M, - .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, + .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI= _NOR_TRY_SFDP, }, }; =20 --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEA2A16CD31 for ; Thu, 11 Jul 2024 13:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702845; cv=none; b=UzZUSurUghKHEc9LYusYe6p26oGVHO/9YFagTw/tOz2+UIZxm3FDkNDajRjhnABlWbvaGmOAg79ampI8FAdJvcWKNopxo28QqSu6pczsV2ZfImUvWHLqlmfFBbtqw8IQhQaNKMDkOgbIPmquj5HZ0bwUuVwmFfKov1AFasxvWz8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702845; c=relaxed/simple; bh=lx0qh4MEN+MdnHMi3c/iFde5nWg07mHVMzlT3b+knLE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s/shqqIicol9GHnjmRVVQyCni21z7MiUZPRSGr/NT+EtZLBYw8bLph8n2Ib4zyvojQMRUleR6IxMrxX7f8t2f45zsixO88ikQm0jorio/iPnPpqcbSE2XLE7za7FWDM+wWy08Hyp9kNxCQTcyr61QvOT5keFwnTsXgjZrLnRbQ4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=aCUl1B0v; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="aCUl1B0v" 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=7xyZ8HHn0IZWh6egUhr+Bg7rKb1uk2wj2zFy5v+GCaQ=; b=aCUl1B0v47gN1/uvq5rteboPaf apgKX4cWeUJ1cYM32MyHLdlDJESJUuiLLgMW4S1RyGVoSDXgk4wZft8hih4YdXBh3BOsLzDh4eIuh f2K2mVj1rLvmlZMhgo+RGeU9qpIvexglBb8udkC4tbdWbUWnM9rXMfTrcAMTXyTsp6sWSJ0CmKKSf 3ZSPh2ll6k3Jn6C0fJOxtsAsLTKWcoJxtMyEOhR43GLLA7n1srtlYjwYOauHX2i0dgybu9gptBMiQ 4xLdfBq5M+CBTc+C+orAi5NifFulIJ1qcqctB+5lp67LgmWUnHlU4smsdxG0J2QQPhs5ziEzKakGy s2RjH2bA==; 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 1sRtPX-000BXO-QP; 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 ) id 1sRtPX-0005Sd-21; Thu, 11 Jul 2024 15:00:35 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:14 +0200 Subject: [PATCH v3 14/15] mtd: spi-nor: Drop deprecated mechanism for optional SFDP parsing Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-14-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=1575; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=lx0qh4MEN+MdnHMi3c/iFde5nWg07mHVMzlT3b+knLE=; b=a22i1tAFizJHUc1rtMZlDS3qeje8OHPMmoxGx1U79ayOl1Y1paFDvuxTl14XxgibUqAhjI2GE 3QVO/Fqm3/vDgMHVi2ms0gY4AJahWN7z2IuAAJ364aL4LqcjxyC/tvc 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) With all drivers converted to the new SPI_NOR_TRY_SFDP flag, we can remove the old deprecated mechanism for triggering optional SFDP parsing. New flashes must use SPI_NOR_TRY_SFDP to get this behavior. Hopefully, all new drivers will be fore pure SFDP flashes, so no or at least very few new users of this flag is expected. Signed-off-by: Esben Haabendal --- drivers/mtd/spi-nor/core.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h index dfc81716e068..f4a76f42051a 100644 --- a/drivers/mtd/spi-nor/core.h +++ b/drivers/mtd/spi-nor/core.h @@ -719,24 +719,7 @@ static inline bool spi_nor_needs_sfdp(const struct spi= _nor *nor) */ static inline bool spi_nor_try_sfdp(const struct spi_nor *nor) { - if (nor->info->no_sfdp_flags & SPI_NOR_SKIP_SFDP) - return false; - if (nor->info->no_sfdp_flags & SPI_NOR_TRY_SFDP) - return true; - - /* Deprecated/legacy way for triggering optional SFDP parsing. - * If one of the no_sfdp_flags indicating dual, quad or octal read is - * set, SFDP parsing will be tried. - * When all drivers have been converted to set SPI_NOR_TRY_SFDP where - * needed, this deprecated mechanism can be removed. - */ - if (nor->info->no_sfdp_flags & (SPI_NOR_DUAL_READ | - SPI_NOR_QUAD_READ | - SPI_NOR_OCTAL_READ | - SPI_NOR_OCTAL_DTR_READ)) - return true; - - return false; + return (nor->info->no_sfdp_flags & SPI_NOR_TRY_SFDP) } =20 #ifdef CONFIG_DEBUG_FS --=20 2.45.2 From nobody Fri Dec 19 18:46:47 2025 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D49F16D4CC for ; Thu, 11 Jul 2024 13:00:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702851; cv=none; b=kZ/2UPImIEfGPYGXXbrT4I5kEfUaSoWy1Qd4gtv3RIifzWNm+78SpITWaZs1eBQbLPtedPMwLLtia3Xb/9+c4LhDQ/7MW+NMRcogDBx0H0B4aDAv0LYwiyOEcB0RViQrl186lQh8yxC8klLfa45Fv87B+Aqhomole8/txoNEzRQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720702851; c=relaxed/simple; bh=32WUeUrKPTK1On8oYr52pGY8kKKsIcbyD/ktcMgTl0I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iCPlRkzFK4HFPpAZnNgPuOiacCH4ghjgPKHTgAVsbQNQdnDH58SGDs5a/umkaqzKYGWZGSlFCiJK0GTXSi/ByWX8txq7hFT+mps2yaD3nQ6Twsz7gpuH2wCGm8Xon04INBNpZcQyXL+/q76GpVVCXLTvDRquhbee1LaMvmdsfgk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=0R5/4YvH; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="0R5/4YvH" 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=/x3Xwhy/zD+b8/iFmghy0uZLwRTAG0iaB95lyFsIrSY=; b=0R5/4YvH1GzTT+eLqA1zYwGrfo DHt9Ex2kTaC1MkaMxG62DZghwUbzo3kanJQeIIxBrzxb2L5+dHn0jZJit/QJnWqAjHJ0kYF+5V3cE x2SumkbwFgM33pGdjIqHg7INNR206RI9h8tPryTgQUQWbMUiHtZrlIyAHf39asq2x/InRnBucqs57 RlvZb5thdESwRGcEal4g5o3oHIHpdpO0doNPulnfdfd9dQ8HU3mRgeX5vj386JwFAWITYpKBCSlsh ZniLxpsvHXN8UgxBwSPbMEnx4ezxzw5goP6nGI5HrxLCR1y/5O2h8Yi0Vboj2v0dyOxn2Xri5IrNP 4b345A3Q==; 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 1sRtPd-000BXZ-EN; Thu, 11 Jul 2024 15:00:41 +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 1sRtPY-0005XX-0j; Thu, 11 Jul 2024 15:00:35 +0200 From: Esben Haabendal Date: Thu, 11 Jul 2024 15:00:15 +0200 Subject: [PATCH v3 15/15] mtd: spi-nor: spansion: Drop redundant SPI_NOR_SKIP_SFDP flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240711-macronix-mx25l3205d-fixups-v3-15-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=2782; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=32WUeUrKPTK1On8oYr52pGY8kKKsIcbyD/ktcMgTl0I=; b=kv2cu/A4E4HA+a4EuZNTqqPIMM+PoYEAWa3H1GKwKtiJ/oVRh7A0CWiRoFQt8GBkr8psS8Pbl WfhMZzwLWsNAHxwdFNHKEg4bHEN1i00QOJnEkQduDBUG3+bN44oIiZC 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) With the implementation of SPI_NOR_TRY_SFDP flag, the removal of the deprecated mechanism for trying SFDP parsing, and the alignment of ->default_init() hooks handling, the SPI_NOR_SKIP_SFDP flag has become a no-op, so it can safely be removed. Signed-off-by: Esben Haabendal --- drivers/mtd/spi-nor/core.c | 2 +- drivers/mtd/spi-nor/core.h | 5 +---- drivers/mtd/spi-nor/spansion.c | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index d58f107f62ec..518b2707ce80 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -3024,7 +3024,7 @@ static int spi_nor_init_params(struct spi_nor *nor) if (spi_nor_needs_sfdp(nor)) { ret =3D spi_nor_parse_sfdp(nor); if (ret) { - dev_err(nor->dev, "BFPT parsing failed. Please consider using SPI_NOR_S= KIP_SFDP or SPI_NOR_TRY_SFDP when declaring the flash\n"); + dev_err(nor->dev, "BFPT parsing failed. Please consider using SPI_NOR_T= RY_SFDP when declaring the flash\n"); return ret; } } else { diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h index f4a76f42051a..ae10e12e9078 100644 --- a/drivers/mtd/spi-nor/core.h +++ b/drivers/mtd/spi-nor/core.h @@ -485,9 +485,7 @@ struct spi_nor_id { * * @no_sfdp_flags: flags that indicate support that can be discovered via= SFDP. * Used when SFDP tables are not defined in the flash. Th= ese - * flags are used together with the SPI_NOR_SKIP_SFDP or - * SPI_NOR_TRY_SFDP flag. - * SPI_NOR_SKIP_SFDP: skip parsing of SFDP tables. + * flags are used together with the SPI_NOR_TRY_SFDP flag. * SECT_4K: SPINOR_OP_BE_4K works uniformly. * SPI_NOR_TRY_SFDP: try parsing SFDP tables before using the * parameters specified in this struct. @@ -536,7 +534,6 @@ struct flash_info { #define SPI_NOR_RWW BIT(9) =20 u8 no_sfdp_flags; -#define SPI_NOR_SKIP_SFDP BIT(0) #define SECT_4K BIT(1) #define SPI_NOR_TRY_SFDP BIT(2) #define SPI_NOR_DUAL_READ BIT(3) diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index a58c0229003d..afcb684ffe4d 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -793,7 +793,7 @@ static const struct flash_info spansion_nor_parts[] =3D= { .name =3D "s25fl256s0", .size =3D SZ_32M, .sector_size =3D SZ_256K, - .no_sfdp_flags =3D SPI_NOR_SKIP_SFDP | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_= READ, + .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, .mfr_flags =3D USE_CLSR, }, { .id =3D SNOR_ID(0x01, 0x02, 0x19, 0x4d, 0x00, 0x81), --=20 2.45.2