From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.thorsis.com (mail.thorsis.com [217.92.40.78]) (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 F371D3BED7F; Wed, 29 Apr 2026 12:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.92.40.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777467582; cv=none; b=V9J/3V0YW7egbQkGTwFmHIVFxTfIHPLVolJxVlxQzVJ5nja+gsJSNPWrbWOz22/Hq4zDG0Dqj1uBLsUO+iOxMLQk5s1S1y58qFQvUHQoRQzv3DCCogad3Se9UOj520kMA+cVjwgj40nVmTuGNj5Y8IK2+nU5+BHcI98ttK4F7IY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777467582; c=relaxed/simple; bh=yUFqmtizZf68TsJODx5f65B8FDi8dsrINukRhWTQF4E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OAdtRGh80mHLPV+RXGrSm9A2OcfT1tet0v1crRp22AXulFguyGJvNetj/f6GWaBeHIgk/STw8d22WXdxLLUdNhkaVk6+4GBQoKJ9pzrUZgX2iWLxiC4T/FXSiPOTW6xAZ5gKrb7WhQT5qwCaIGgys2U5d6v1oOlBPSmbQZ6K+Zg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=thorsis.com; spf=pass smtp.mailfrom=thorsis.com; dkim=pass (2048-bit key) header.d=thorsis.com header.i=@thorsis.com header.b=ObJFC/W0; arc=none smtp.client-ip=217.92.40.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=thorsis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thorsis.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=thorsis.com header.i=@thorsis.com header.b="ObJFC/W0" Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 5F4EA14841E0; Wed, 29 Apr 2026 14:59:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1777467573; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=qwddamSpISS9kQ0XccY8Pom5+hI9vPTaYag3qzKHulY=; b=ObJFC/W0mewdEriwwA7IT9ixFazieJhEYi4CzKknr59WWueuXM6YbeU5uQJVkwBAXFq0Y0 jmhpW2NZptFKIsEmOG3HA9be/2H4gXuxqTUCgJW/Z2Cyah3ak2kOXxXqolsuM5uQZlQvIK XLscspxcBiRo+vis18kYBJkKBjduZKwjnzQzcg/wJxErerVEAlQFt7cGvcS5zNpjsBst+0 4qGUPRSuyY0DSgLa3Aw8rK2lTW/W/Mk6SPOM9ZW5WahDQNxbwbfLk86gOIHdeugaEvrQ76 h6Y4v6J5ZX8bZBXHfYLRF7InDvy+8vQG/M6gn7JTPjFb6MqVEuPlYVZUThpJOA== From: Alexander Dahl To: linux-kernel@vger.kernel.org Cc: Miquel Raynal , linux-mtd@lists.infradead.org, stable@vger.kernel.org, Krzysztof Kozlowski , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , "Rob Herring (Arm)" , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Microchip (AT91) SoC support) Subject: [PATCH] memory: atmel-ebi: Allow deferred probing Date: Wed, 29 Apr 2026 14:59:30 +0200 Message-ID: <20260429125930.844790-1-ada@thorsis.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 After removing of_platform_default_populate() calls the atmel-ebi driver was affected by deferred probing. platform_driver_probe() is incompatible with deferred probing. This led to atmel-ebi driver eventually not being probed on at91 sam9x60-curiosity and other sam9x60 based boards. Subsequently the nand-controller driver (nand-controller being a child node of ebi) on that platform was not probed and thus raw NAND flash was inaccessible, preventing devices to boot with rootfs on raw NAND flash (e.g. with UBI/UBIFS). Fixes: 0b0f7e6539a7 ("ARM: at91: remove unnecessary of_platform_default_populate calls") Cc: stable@vger.kernel.org Suggested-by: Miquel Raynal Signed-off-by: Alexander Dahl --- Notes: Successfully tested on sam9x60-curiosity board, and on two custom boards based on sam9x60 and sama5d2. drivers/memory/atmel-ebi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/memory/atmel-ebi.c b/drivers/memory/atmel-ebi.c index 8db970da9af96..1e8e8aba2542d 100644 --- a/drivers/memory/atmel-ebi.c +++ b/drivers/memory/atmel-ebi.c @@ -628,10 +628,11 @@ static __maybe_unused int atmel_ebi_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(atmel_ebi_pm_ops, NULL, atmel_ebi_resume); static struct platform_driver atmel_ebi_driver = { + .probe = atmel_ebi_probe, .driver = { .name = "atmel-ebi", .of_match_table = atmel_ebi_id_table, .pm = &atmel_ebi_pm_ops, }, }; -builtin_platform_driver_probe(atmel_ebi_driver, atmel_ebi_probe); +builtin_platform_driver(atmel_ebi_driver); base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731 -- 2.47.3