From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=68.232.154.123 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796024716; b=h91rTLlG4dH9Nb+R7DmMGbOM4W0bNMaPLBnllI+uQF7tM7d2ii39X/iqSN95gKj5YtVM Es4ZIhZQdqzuFKoAEbpCSVLUfoSfXHpT8aTRdSlsMQqsnYNdH0EZ4FXlsZ8mukXv//zdv 3v8MG2PU5LV8v1ArSDkYojKaeN0WEi0/pW4dIFz6Kv32x0SybhyzNi0SXQvRBojZWj0qN iUhhwFAPODrw8TS5/CotOXb8UfN8CYYdSHL99viHS+96zGDCsMJJw0aZoaqXHusl7nLE9 0w5kDzyPssCrnt6JYXMmL3OiYTamySnEBq1ZHmbXGIE5GYaIEhlgflSI/HFxv+FZzjA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796024716; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-Amp-Result:Received:Received:Received:From:To:CC: Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=LEyeMfXgqfhMW/XRkMyTFzyNRMsXQzUq+FzEgWPvY24=; b=T5fBzcdIX2Nna7/yKVUUVG2mqNnTOBIkHJMS+Pxq4EVWJxqQ8WHTCFvlvaNIZ206eM2c MtpWqwWkmo86yU5AY30rvriHJjW/a04Drcqn5Lllrd+0wgwwqJaSJgv+L+bMpHo3L6/dY b+v0jzas4x8V+SZkKUI+gkgcvm3RRnjLwcgbYAPI5ys6F4KlWSWgzX/z6w1ObbxMJmAPu arwmo6mzgJte06DWeEUMXpgiZcxEHmqWQMmR3f+A0fNc0gwMu9SE0Byl62fK18bwSWntp Nt4OBI6rHH3e0kOC/V4h0gJMCezOlmS4huNJ47o4++Ha4+CeZVoJpw38Tz1dNvbTdLw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=oYauW+Ol; arc=none smtp.remote-ip=68.232.154.123 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 498FA606A32E for ; Mon, 30 Nov 2026 07:45:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 498FA606A32E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (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; 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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