From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08368606A32A for ; Mon, 30 Nov 2026 07:45:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=jgTPWUtM; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=oYauW+Ol 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:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=92ZrwbJHAUqRIQBNbM7Ntkt3dAYd4c8Q+/pdZeOgIpI=; b=jgTPWUtMEJ5VYz3NJmJ9PmTS/C OAbdN8YFJbvEDei2ReMoT53tBvOsUnplTeuo56Ckq/uW0UAgn/2MxCCHAZAOf5TfXijbogZgkenJo 1BA5qbq8Y1+sSkiWbouMsIrRsd7oRFDg94SLKJf6A9ozjH+QDo3H6lNGUeTU3xo4solhDYXBY2l5E fdVUWIYQj3Zgx8+SxIBOdXkHo5j38Mrq1cSIUaaSN1aKZcZ9uMIy4cFpO4vTEzxfS7eyoIEsPcVBK YO/D60owXMwgPtLfXcbofy9VlraovtgJfLm10XjT6YKIkP7NpLQLqk+ba4V6cHf0uzjSUg3STgD2w wkGE2Gfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXw4i-00000003dXp-2kZn; Mon, 30 Nov 2026 07:45:24 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXw4a-00000003dTW-1iI5 for linux-mtd@lists.infradead.org; Mon, 30 Nov 2026 07:45:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1796024716; x=1827560716; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zSNDZIWG1tEytdSoH3nCzMJIWXFqiaiDXoV7dETKH50=; b=oYauW+OlJch/Y2hpdHCxBiLZ0TnbPPSEOIfEZtNyH4UvmB6/U9RAJy6h s8QkJq1gcWgTusayCwCOd6lk9ufRg2kqCyLsu3kajQCVWUtf7dXuOi0Ae OF/W3DtJMcDrM1GlNYvwEfv/DWpJoWs1ToZbBVyAadZBfuSMZfLSLVHPq BlEPo2o4GAo/sg+G1Pelsbyd4rUHrFrCx0HT1TpQn66QTgtFRljCqbMbs 0jyC1E+zInUTq3N9ms92skIVVpQcyeHj2wBKKPm+aRP1NWNmIXI0ry2Q1 lWt69bldQ0glmGdFlG0XpLA52f43jMJx8PC6IHkDDjmBFHZVYV+eOMuQk A==; X-CSE-ConnectionGUID: aI4dASElQmOcHoAB+Q1WiA== X-CSE-MsgGUID: w6QPZms/RXOD3LNNuYs7RA== X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="234244649" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 30 Nov 2026 00:45:15 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Mon, 30 Nov 2026 00:45:14 -0700 Received: from che-ll-i67131.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Mon, 30 Nov 2026 00:45:11 -0700 From: Manikandan Muralidharan To: , , , , , , , , CC: Subject: [PATCH v2 0/2] mtd/nvmem: don't defer forever on absent NVMEM suppliers Date: Mon, 30 Nov 2026 13:15:05 +0530 Message-ID: X-Mailer: git-send-email 2.43.0 X-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261129_234516_507572_EBBE34BE X-CRM114-Status: GOOD ( 12.77 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 A consumer that gets its MAC address from an NVMEM cell can be deferred forever when the cell will never appear, instead of falling back to another address source. These came up while testing the SFDP EUI-48 series [1], where macb reads its MAC address from a cell exposed by the QSPI flash, but both are generic: - 1/2: when the SPI NOR flash is not populated or not reachable, nothing below its node is ever registered, yet fw_devlink keeps the consumer from probing. Drop the fw_devlink links below a flash that failed to probe. - 2/2: the NVMEM lookup keeps returning -EPROBE_DEFER for a provider that never shows up, or for a cell that a bound layout did not add, e.g. when the data it describes is not programmed on the device. Once the deferred probe timeout has expired, return -ENOENT instead. In both cases the consumer then falls back once the deferred probe timeout has expired (10 seconds by default), e.g. macb uses the address left by the bootloader or a random one. This series depends on the SFDP EUI-48 series [1] and applies on top of it. Changes in v2: - 1/2 - Drop the FWNODE_FLAG_NOT_DEVICE check in of_nvmem_cell_get(): The patch now only touches the SPI NOR core. - 2/2 - Replace the "layout is bound" check with a fallback once the deferred probe timeout has expired. This covers both the absent flash and the missing cell without touching the layout device, so it no longer races with the layout probe or removal. Renamed from "nvmem: core: don't defer for a missing cell once the layout is bound". v1: https://lore.kernel.org/all/cover.1794391847.git.manikandan.m@microchip.com/ [1] https://lore.kernel.org/all/cover.1796023049.git.manikandan.m@microchip.com/ Manikandan Muralidharan (2): mtd: spi-nor: drop fw_devlink suppliers below a flash that failed to probe nvmem: core: stop deferring for a cell after the deferred probe timeout drivers/mtd/spi-nor/core.c | 26 +++++++++++++++++++++++++- drivers/nvmem/core.c | 9 +++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244 prerequisite-patch-id: 76d8b1168f88c3e7912ac2ce01a705f7e69d8a3b prerequisite-patch-id: b360d0d00ac1a6feb76d4b3f9412b6f1741f6161 prerequisite-patch-id: 659801d6f415ba79ce51f21b3a4f5e132348c150 prerequisite-patch-id: 902c67d8bcfad07fc6424ee551557eeab87efaa4 prerequisite-patch-id: 94ede38b6c2480cb1e0e102e9bbeb6ffd5b276ef prerequisite-patch-id: ae3977b6c56c5bd4f352d77bd8a7883a69d390af prerequisite-patch-id: 58d0ad25e81f16f60864d624eed7ff481607e960 prerequisite-patch-id: ba140b71fdbfc992861ae4c34b6acc737d4e4528 -- 2.43.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/