From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 24C0830FF2A for ; Tue, 2 Jun 2026 10:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780394635; cv=none; b=rgMoT2AcqVifoUk6tn7QBeKQQCyC+k2+RxgKgvon9fB+saE38SunAIrVN+CVtL6xJnq9KVvZV1KYR5CydaWC2qAbTFxUrCEl30BGjlrrRhkk/xEGr7QuQuiY/yUP7x1zchgf6kjkuPT470Tlj1yXgfb2dyCc62u/lz/+mOGI9UQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780394635; c=relaxed/simple; bh=ZoR84Qjh6EbTtv6XWIZVPPpSqElpMH384oZP1Tjbp9s=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=L/0vc2zeS6jSuXtgSzat4NV3QHf6rR7GZ4/9+zOrtqYx4lkYH0ts3yHBKBS7Rr1M2Nbd1ikWpKaeY2KrIaX8CPcWXnADLJ6i8hh8xUcm/n0HDFpNKK3d76xEannQnJjSEEJlkr4Z1IDHG4jJMjSbsdfnl52k623LCaR/QatAozU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=iCvsowvJ; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="iCvsowvJ" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 8AC324E42DC0; Tue, 2 Jun 2026 10:03:51 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 58A8C603BC; Tue, 2 Jun 2026 10:03:51 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 06EB61088817C; Tue, 2 Jun 2026 12:03:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1780394630; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=ZoR84Qjh6EbTtv6XWIZVPPpSqElpMH384oZP1Tjbp9s=; b=iCvsowvJnDXrj+AZCyPaHmi/wToKqKOpNNMyELAOIuYN8zB4+bz4Y9RO3JO+dsOIgLos7I Ghk1bzlCOnTx1m2WPtRm34ljV0sR0QCpOeiIHOL23Pu+ErlG2syMChROrmux4RrIxq6Q+7 IngT6WjpBwiskLBWKnmjYDw7iCJ9jaUEkCeiqftAPVy4eTpMpAQarDJc9YiAXmABWKesSr juE8412k8N4tk56b7RmpFd96+Or2WDqC5vJfgQmNz1WTGoVSI0iI59UMVrd9rkUjn28KOC SbTcx4QQvzc4u0nQI3t9z/62xcx+K0L6hCdh/tJqE4I4lr8pZzL5rnc9DiuWiw== From: Miquel Raynal To: Michael Walle Cc: Pratyush Yadav , Takahiro Kuwano , Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/3] mtd: spi-nor: Rework flash parameter initialization In-Reply-To: <20260601125438.3481722-1-mwalle@kernel.org> (Michael Walle's message of "Mon, 1 Jun 2026 14:52:42 +0200") References: <20260601125438.3481722-1-mwalle@kernel.org> User-Agent: mu4e 1.12.7; emacs 30.2 Date: Tue, 02 Jun 2026 12:03:47 +0200 Message-ID: <87tsrlmf7g.fsf@bootlin.com> 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 X-Last-TLS-Session-Version: TLSv1.3 Hi Michael, On 01/06/2026 at 14:52:42 +02, Michael Walle wrote: > Try to simplify the flash initialization and get rid of the legacy > handling. As default, all the flags of the in-kernel database are > taken and amended with the SFDP data. > > This might have the consequence that all the flashes now get a > RDSFPD opcode which might be an unknown opcode. But that was already > the case for any flashes which were unknown to the linux kernel. So > far, there was not a single complaint. > > See patch 3 for more information. If feedback is positive, this is > intended to be applied to the spi-nor tree after the next merge > window, so it will sit around in -next for quite some time and get > some testing. > > That being said, I've just did a quick test on my boards. Please > give it a test on your boards. Interesting cleanup, thanks for pushing it. I'll run some tests with some old and newer SFDP based flashes. I do not have chips without SFDP though. Thanks, Miqu=C3=A8l