From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E36EA26F28A for ; Mon, 5 Jan 2026 21:06:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767647211; cv=none; b=T3g5yBTvyPdfU48vBcwEpWK9OYriJU0H6kfki+CKIDB4HuERei6/MAjL1sktnm+GcjgdaP3iTyx0tbV8+I+uCDMXqeWXjKvDf8eEzz63iNjlLs/zM2G6u3UICY7nvEfw5qkHtBoIl1+oGrNXvqPp9qKmG5s/f3L5dCNjaBBnLvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767647211; c=relaxed/simple; bh=vgIKhiITZo8Rsj2kJJV4QLNruYSdES9wetKIFYKZ3zE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=fI8uYKwVqZbQUV2V0javEYnSQzghEI8acNKDdRxbJae6Qvop8I+CWCWGpKYZavLhXkTigHTHW08BP0Mw31ddybaAhgTjG0rhQrJ/J0Xij/nE9UKMad9AZP470w50lynM8KPT0KlxdZ7r49zS1J54Kg97R+dvnw9/xMuAzPX95bM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o7IlEK8L; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o7IlEK8L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6883DC116D0; Mon, 5 Jan 2026 21:06:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767647210; bh=vgIKhiITZo8Rsj2kJJV4QLNruYSdES9wetKIFYKZ3zE=; h=From:Subject:Date:To:Cc:From; b=o7IlEK8L/KJCQTwTM4ke+O58lICYB0g8b8potUisdygO7Xnt6XX9spI/7ZO6Z6wye /TaM4fum5V5vKj0NmUiovIDou+FhAN3hFQC2EWn6hYeG5wXbfGBjsVQTs6Dq3oPzDG ehjbJ9FGV+CWzIwh1FVRpPAx3M31DzTigqulYSJlxD7z20KV50EODSaMgh+WYzgB1V jVsuAL14/UtlAxPaqoxPnfCfxcbxhY8P/RJIRGcf43efGL3zPw4GhlOqnYqar36nVM CiZZHrToJk2cTmbJLBw6pPYmBrnQQN0GK+ksO6NlHyEmkSjvGGJBBmdyHWAGrr6Xmy pPVSf4JHdA5wQ== From: "Rob Herring (Arm)" Subject: [PATCH v3 0/3] at91: Remove of_platform_default_populate() calls Date: Mon, 05 Jan 2026 15:06:42 -0600 Message-Id: <20260105-at91-probe-v3-0-594013ff2965@kernel.org> 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: 7bit X-B4-Tracking: v=1; b=H4sIAOInXGkC/23MQQ7CIBCF4as0sxYDY2rAlfcwXQAdWqIpzdAQT cPdxa5d/i953w6ZOFKGW7cDU4k5pqXF5dSBn+0ykYhja0CJvVIohd2MEisnRwJlcJ6MvY7KQTu sTCG+D+wxtJ5j3hJ/Drvgb/3LFBRSaK97g0Eiabo/iRd6nRNPMNRav/U2LYWlAAAA X-Change-ID: 20251120-at91-probe-20fbce9a6d1b To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Russell King Cc: linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.15-dev This is another attempt at removing of_platform_default_populate() calls on at91 platforms. The last attempts were in 2018[1] and 2023[2]. The problems reported are PM and NAND failures. Both of these depend on SRAM pool which doesn't have any fw_devlink tracking. Also, the PM code is not a driver, so fw_devlink wouldn't help. For the NAND driver, we can simply defer probe. For the PM init, we can move it to the .late_init hook. Rob [1] https://lore.kernel.org/all/20180712192222.32481-1-robh@kernel.org/ [2] https://lore.kernel.org/all/3908fa6f-dc33-4aac-c21f-4a676a3a6b23@microchip.com/ Signed-off-by: Rob Herring (Arm) --- Changes in v3: - Fixup mismatch in my author vs. Sob. - Fixup the split between patch 2 and 3 to fix bisection - Use dev_err_probe() in NAND driver - Link to v2: https://patch.msgid.link/20251120-at91-probe-v2-0-8c8592f02e8e@kernel.org --- Rob Herring (Arm) (3): mtd: nand: atmel: Defer probe if SRAM is missing ARM: at91: Move PM init functions to .init_late hook ARM: at91: remove unnecessary of_platform_default_populate calls arch/arm/mach-at91/at91rm9200.c | 12 +----------- arch/arm/mach-at91/at91sam9.c | 12 +----------- arch/arm/mach-at91/sam9x60.c | 12 +----------- arch/arm/mach-at91/sam9x7.c | 12 +----------- arch/arm/mach-at91/sama5.c | 21 +++------------------ arch/arm/mach-at91/sama7.c | 11 +---------- drivers/mtd/nand/raw/atmel/nand-controller.c | 6 ++---- 7 files changed, 10 insertions(+), 76 deletions(-) --- base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8 change-id: 20251120-at91-probe-20fbce9a6d1b Best regards, -- Rob Herring (Arm)