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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2F952CD6E4A for ; Tue, 2 Jun 2026 10:03:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eBrMT89BnCSsVxRURgPlBNigKq4u12s9IKZAVclXaJU=; b=j+i/Q89v8w3xGM 2boJo4KxMJAVrWp1rYvj7SzdFwAK5Qqqrq/9yfwb3BrWxpGz0gz6TSE6f+eV3udmzdqBNfMiyMbtY I9/5wA544JTqhf+F4M2jVfUF1cBG9Sw352U0JCrxWWD+YFuyAMG10Ggj0LvboPh2ntH3KfcEPxFwL MVm7RZ27XSZ7Vy9e8R4KoDoqOBrbwvlpk4KYu7Lv8vYIeKuWYKOZMLYwLAuOvMsUCfGot9jd46s6+ GttXmxc+7HwYkifAtOjiB0WY/XtrNfkyyKcrK2McY66KF6uQfelTj4rCMcWjRoMDt7Q1zF/V0ZBot dXV/xUS/G/8uDOqHQosQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wULyW-0000000CjPm-1xkN; Tue, 02 Jun 2026 10:03:56 +0000 Received: from smtpout-03.galae.net ([185.246.85.4]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wULyT-0000000CjP6-1Za8 for linux-mtd@lists.infradead.org; Tue, 02 Jun 2026 10:03:55 +0000 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> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260602_030353_544396_B07F4790 X-CRM114-Status: GOOD ( 15.82 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-mtd" Errors-To: linux-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