From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp11.infineon.com (smtp11.infineon.com [217.10.52.105]) (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 8405C35E1C9 for ; Fri, 10 Jul 2026 02:48:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.10.52.105 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783651704; cv=none; b=GrTsv3APSpDJwjlLhfKAW8keM8nNnsmfQQ6cBJ7EpacEjKamGtbzJ9ISAbcQLbd+VFI5UD9inSdSOYYAsq+sELm1Ze+w93QmJwZMUlR9LIc4OCGgOUV8s0cYBUYIr/u3PRfHQqyTZ41FwPt5l6hoCzeprNbBuaP7Ty+yvBelXsw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783651704; c=relaxed/simple; bh=oYzQqgDl8zkjDGEKvpUaO8lMsPhan55tEZ+6jGFiUBo=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=rCBIdYOojuXdEW5PLUhUzQUXUkOlMdqobkcOrVvnrzZVk5CmVLheKC1ZeOir6Kaup2KVHf1wNrQVI4FEzarBTCBSJE6uBvzIqxy6hUIx3F9+Im0hVZF3fK5bT3i+qczDPipwOq+5JCUZPVhidTNIKm4S4xO3NNMULiZ/AQPZku4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=infineon.com; spf=pass smtp.mailfrom=infineon.com; dkim=pass (1024-bit key) header.d=infineon.com header.i=@infineon.com header.b=AqGdgov9; arc=none smtp.client-ip=217.10.52.105 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=infineon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infineon.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=infineon.com header.i=@infineon.com header.b="AqGdgov9" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1783651703; x=1815187703; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=oYzQqgDl8zkjDGEKvpUaO8lMsPhan55tEZ+6jGFiUBo=; b=AqGdgov9gssC12y4pGqjsxueK0UcLdnyJyFwCBm0UjcL7tTdMoUEf3EU R6i2ulABIjGTYwsryOqFAwI2w+G4vru2IjHnUk8yZfNX3nRKl/9SsrrnT tDQgxbxpJXSTHdYJ1WV3GqxkTOXpF0LumsVRuQnwQXpil6O91tf91WPMm o=; X-CSE-ConnectionGUID: F2UcD3jfR42adX1AdllqVA== X-CSE-MsgGUID: y4ecJX41SFC9zqVjdq+b+g== X-IronPort-AV: E=McAfee;i="6800,10657,11841"; a="151034132" X-IronPort-AV: E=Sophos;i="6.25,154,1779141600"; d="scan'208";a="151034132" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO MUCSE814.infineon.com) ([172.23.29.40]) by smtp11.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2026 04:48:15 +0200 Received: from MUCSE815.infineon.com (172.23.29.41) by MUCSE814.infineon.com (172.23.29.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.43; Fri, 10 Jul 2026 04:48:14 +0200 Received: from MUCSE815.infineon.com ([fe80::b54c:c0bd:546c:c9be]) by MUCSE815.infineon.com ([fe80::b54c:c0bd:546c:c9be%12]) with mapi id 15.02.2562.043; Fri, 10 Jul 2026 04:48:14 +0200 From: To: , , , , , CC: , , Subject: RE: [PATCH v1 8/8] mtd: spi-nor: rework flash parameter initialization Thread-Topic: [PATCH v1 8/8] mtd: spi-nor: rework flash parameter initialization Thread-Index: AQHdCviJPRSKx17TTEOtTgvCkIfDb7ZmFOMw Date: Fri, 10 Jul 2026 02:48:14 +0000 Message-ID: <78462545a59c4c6490049db90296840d@infineon.com> References: <20260703143003.1809579-1-mwalle@kernel.org> <20260703143003.1809579-9-mwalle@kernel.org> In-Reply-To: <20260703143003.1809579-9-mwalle@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, > Rework how the flash parameters are initialized. It used to make a > difference whether a flash is in the in-kernel database, whether it > supports multi I/O and so on. Recently, that makes more and more > problems because flash IDs are reused among legacy flashes (w/o SFDP > support) and newer flashes [1,2,3,4]. >=20 > Simplify the whole parameter initialization, by starting with the > parameters we have in the in-kernel database and the try to parse SFDP > (and let it override any settings). >=20 > This has the consequence that all the flashes now get a RDSFPD opcode > which might be an unknown opcode from the perspective of the flash. With > the generic SPI NOR flash driver, this was already the case for any > flashes not listed in the in-kernel database. So far, there was not a > single complaint. >=20 > [1] https://lore.kernel.org/linux-mtd/CAAyq3SYX9UPwhC_Ume_S2yxhQwimRvB=3D= Y6O_+FFqokhNmw7jQg@mail.gmail.com/ > [2] https://lore.kernel.org/linux-mtd/DGB4745HRCFI.1DRYTHXURWZJO@kernel.o= rg/ > [3] https://lore.kernel.org/linux-mtd/DD10GE4EOCD7.CPTN7198QFUV@kernel.or= g/ > [4] https://lore.kernel.org/linux-mtd/DD6SI06QNEE4.2YCRTWJHEAAQM@kernel.o= rg/ >=20 > Signed-off-by: Michael Walle > Tested-by: Cheng Ming Lin > Tested-by: Miquel Raynal # w/ W25Q02JVFIM > --- Tested-by: Takahiro Kuwano Test log is here (I forgot a tag). https://lore.kernel.org/linux-mtd/28461250e841436e98e67fd7b0d02313@infineon= .com/