From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 378AD3A5E6C for ; Wed, 29 Apr 2026 09:42:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777455746; cv=none; b=LyB8DKRWubIYryfgpNXWfEKxQwmV4eulaqO2swiOMzRVuvnHC83+S19u+5jnQ2Jj2zHeFastURnklX25AC1ccNYR8X+wiuWE8YjwX+wBM0qlDJkvsSga2zeZyzM/+t83mN9b9p1opQSsarE/3KoSbgOxhgveMNXYuIGk4yAh16U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777455746; c=relaxed/simple; bh=VPdZI+aEebszpYroakYIJfM/yOLikDGI5jzYRN5waP4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=blHQpis7JaoWKjMAGDvDKct75OvsygXf0+qeQSP+pr6ioW/8NInGGzJ8ooDqK/lBVUqXzAjMHxW1oHWbjYpz4kuRsfscUYICl1YXUeBhrWC70OcBihj/DuR2kaa6Kd4h1DrrwCwbSMG+Y+1Ct4OGxqf26BUWY+9F/uqeQiZEAoE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=itAreS11; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="itAreS11" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id A7F351A347B; Wed, 29 Apr 2026 09:42:22 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 673E4601DF; Wed, 29 Apr 2026 09:42:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9764510729AB0; Wed, 29 Apr 2026 11:42:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1777455741; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=v/NHAdqcAIjrljj0o3r/rYGwX1SP5NW5sDQNpjnh8ik=; b=itAreS11Ry6MEWWqWOYHc1aSTrU6m9Qq4JBLgvZon8eOjxMlu5Y39z8tvF69EPy1LzeRZi aCyGs6XkIMz5o8jwV4WM5v1y/2Jb/HfWZtPSKZnsMqb1oW8EdL4LENANSiQbn9XqA3KRNE tO9szqPFMjgNu2MEvYDzg2fFdimpsdwyOxJopylgjaPfOvkSBGJGFfT7Uy3lWOq5JPhc+7 Y1JuOjJl3A/KzjoiR6CaxeIHTThQBtm8T8XlTr8cLzCDcQdgcvEgtUapVBJhYUBBRCc1fp ktlO2a1Qm+MUzEUTJAjMQNcMOhfRI9/o/vKslhFOBmZyPq9fcTPyIM/GBzx25A== From: Miquel Raynal To: "Rob Herring (Arm)" Cc: Richard Weinberger , Vignesh Raghavendra , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Russell King , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/3] ARM: at91: remove unnecessary of_platform_default_populate calls In-Reply-To: <20260429-lushly-greasily-c14c01c1aee8@thorsis.com> (Alexander Dahl's message of "Wed, 29 Apr 2026 10:02:28 +0200") References: <20260105-at91-probe-v3-0-594013ff2965@kernel.org> <20260105-at91-probe-v3-3-594013ff2965@kernel.org> <20260423-stoke-ocean-139dbe306256@thorsis.com> <20260424-worried-renewal-924d34ed945c@thorsis.com> <87tsswfnmy.fsf@bootlin.com> <20260429-lushly-greasily-c14c01c1aee8@thorsis.com> User-Agent: mu4e 1.12.7; emacs 30.2 Date: Wed, 29 Apr 2026 11:42:19 +0200 Message-ID: <87lde6cdc4.fsf@bootlin.com> 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: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Hi Alexander, > [ 0.958298] bus: 'platform': add driver atmel-ebi > [ 0.958451] platform 10000000.ebi: bus: 'platform': __driver_probe= _device: matched device with driver atmel-ebi > [ 0.958566] platform 10000000.ebi: error -EPROBE_DEFER: wait for s= upplier /ahb/apb/pinctrl@fffff400/ebi/ebi-data-lsb > [ 0.958649] platform 10000000.ebi: Added to deferred list > [ 0.959429] bus: 'platform': remove driver atmel-ebi > [ 0.959540] driver: 'atmel-ebi': driver_release Interesting. If you look at the very last line of the driver, the EBI driver does not use a standard "module_platform_driver" macro, it uses some kind of run-once probe that is kept in an __init section: https://elixir.bootlin.com/linux/v7.0.1/source/drivers/memory/atmel-ebi.c#L= 637 And this seems to be incompatible with probe deferrals: https://elixir.bootlin.com/linux/v7.0.1/source/drivers/base/platform.c#L948 I would suggest trying something alone these lines: --- a/drivers/memory/atmel-ebi.c +++ b/drivers/memory/atmel-ebi.c @@ -633,5 +633,6 @@ static struct platform_driver atmel_ebi_driver =3D { .of_match_table =3D atmel_ebi_id_table, .pm =3D &atmel_ebi_pm_ops, }, + .probe =3D atmel_ebi_probe, }; -builtin_platform_driver_probe(atmel_ebi_driver, atmel_ebi_probe); +builtin_platform_driver(atmel_ebi_driver); Memory taken by the probe function will remain mapped. That seems to be the drawback. Thanks, Miqu=C3=A8l