{"id":2230215,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2230215/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-mtd/patch/20260429125930.844790-1-ada@thorsis.com/","project":{"id":3,"url":"http://patchwork.ozlabs.org/api/1.1/projects/3/?format=json","name":"Linux MTD development","link_name":"linux-mtd","list_id":"linux-mtd.lists.infradead.org","list_email":"linux-mtd@lists.infradead.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260429125930.844790-1-ada@thorsis.com>","date":"2026-04-29T12:59:30","name":"memory: atmel-ebi: Allow deferred probing","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"8aa2ff9f4b1512f5678850fe4aa1578020492cce","submitter":{"id":70459,"url":"http://patchwork.ozlabs.org/api/1.1/people/70459/?format=json","name":"Alexander Dahl","email":"ada@thorsis.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-mtd/patch/20260429125930.844790-1-ada@thorsis.com/mbox/","series":[{"id":502055,"url":"http://patchwork.ozlabs.org/api/1.1/series/502055/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-mtd/list/?series=502055","date":"2026-04-29T12:59:30","name":"memory: atmel-ebi: Allow deferred probing","version":1,"mbox":"http://patchwork.ozlabs.org/series/502055/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2230215/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2230215/checks/","tags":{},"headers":{"Return-Path":"\n <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=mJof9t4s;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=thorsis.com header.i=@thorsis.com header.a=rsa-sha256\n header.s=dkim header.b=ObJFC/W0;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5HTG2tNNz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 22:59:57 +1000 (AEST)","from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wI4Vz-00000003cnl-2Vvn;\n\tWed, 29 Apr 2026 12:59:43 +0000","from mail.thorsis.com ([217.92.40.78])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wI4Vw-00000003cmp-3kel;\n\tWed, 29 Apr 2026 12:59:42 +0000","from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id 5F4EA14841E0;\n\tWed, 29 Apr 2026 14:59:31 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=zFvgcK9wWyXxS7TjyN4hRfmrIxcEOYXkuU8afQZOxFI=; b=mJof9t4sgHabSa\n\tmz5SggU4WYmNkqM5gImbbLIC8ea/kkNP8YS5ugnarKmJL+TFsvFuhUbDNq5vt1+XEkj8FZkFq6inK\n\tso0IFVrnnwraXy/fF1jMYpktxn9KkiamsnhfF9fdb9/jPQyc+zEMz8qR47KP0SIVUO5fLagQKEGw+\n\thnZicp6hmxxawq0YL99ki9TzJOLOP7zA4wr0PJ3rN+hQ/3HQBVt2xrV/AYbqF9FeYDPG+m7x99I1G\n\thYd86DKnTWq6V3y/O9J/nz+kkz9SoVRL6rbi0D6K7bh+1g5QeAaAVMz2wcXEtIuF8r/fbDHAfjbJl\n\thokScAZbn0D/V475EcPA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim;\n\tt=1777467573; h=from:subject:date:message-id:to:cc:mime-version:\n\t content-transfer-encoding; bh=qwddamSpISS9kQ0XccY8Pom5+hI9vPTaYag3qzKHulY=;\n\tb=ObJFC/W0mewdEriwwA7IT9ixFazieJhEYi4CzKknr59WWueuXM6YbeU5uQJVkwBAXFq0Y0\n\tjmhpW2NZptFKIsEmOG3HA9be/2H4gXuxqTUCgJW/Z2Cyah3ak2kOXxXqolsuM5uQZlQvIK\n\tXLscspxcBiRo+vis18kYBJkKBjduZKwjnzQzcg/wJxErerVEAlQFt7cGvcS5zNpjsBst+0\n\t4qGUPRSuyY0DSgLa3Aw8rK2lTW/W/Mk6SPOM9ZW5WahDQNxbwbfLk86gOIHdeugaEvrQ76\n\th6Y4v6J5ZX8bZBXHfYLRF7InDvy+8vQG/M6gn7JTPjFb6MqVEuPlYVZUThpJOA=="],"From":"Alexander Dahl <ada@thorsis.com>","To":"linux-kernel@vger.kernel.org","Cc":"Miquel Raynal <miquel.raynal@bootlin.com>,\n\tlinux-mtd@lists.infradead.org,\n\tstable@vger.kernel.org,\n\tKrzysztof Kozlowski <krzk@kernel.org>,\n\tNicolas Ferre <nicolas.ferre@microchip.com>,\n\tAlexandre Belloni <alexandre.belloni@bootlin.com>,\n\tClaudiu Beznea <claudiu.beznea@tuxon.dev>,\n\t\"Rob Herring (Arm)\" <robh@kernel.org>,\n\tlinux-arm-kernel@lists.infradead.org (moderated list:ARM/Microchip (AT91) SoC\n 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","MIME-Version":"1.0","X-Last-TLS-Session-Version":"TLSv1.3","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20260429_055941_095495_99CE301B ","X-CRM114-Status":"GOOD (  10.28  )","X-Spam-Score":"-2.1 (--)","X-Spam-Report":"Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  After removing of_platform_default_populate() calls the\n atmel-ebi\n    driver was affected by deferred probing. platform_driver_probe() is\n incompatible\n    with deferred probing. This led to atmel-ebi driver e [...]\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]","X-BeenThere":"linux-mtd@lists.infradead.org","X-Mailman-Version":"2.1.34","Precedence":"list","List-Id":"Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-mtd/>","List-Post":"<mailto:linux-mtd@lists.infradead.org>","List-Help":"<mailto:linux-mtd-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>","Errors-To":"linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"},"content":"After removing of_platform_default_populate() calls the atmel-ebi driver\nwas affected by deferred probing.  platform_driver_probe() is\nincompatible with deferred probing.  This led to atmel-ebi driver\neventually not being probed on at91 sam9x60-curiosity and other sam9x60\nbased boards.  Subsequently the nand-controller driver (nand-controller\nbeing a child node of ebi) on that platform was not probed and thus raw\nNAND flash was inaccessible, preventing devices to boot with rootfs on\nraw NAND flash (e.g. with UBI/UBIFS).\n\nFixes: 0b0f7e6539a7 (\"ARM: at91: remove unnecessary of_platform_default_populate calls\")\nCc: stable@vger.kernel.org\nSuggested-by: Miquel Raynal <miquel.raynal@bootlin.com>\nSigned-off-by: Alexander Dahl <ada@thorsis.com>\n---\n\nNotes:\n    Successfully tested on sam9x60-curiosity board,\n    and on two custom boards based on sam9x60 and sama5d2.\n\n drivers/memory/atmel-ebi.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)\n\n\nbase-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731","diff":"diff --git a/drivers/memory/atmel-ebi.c b/drivers/memory/atmel-ebi.c\nindex 8db970da9af96..1e8e8aba2542d 100644\n--- a/drivers/memory/atmel-ebi.c\n+++ b/drivers/memory/atmel-ebi.c\n@@ -628,10 +628,11 @@ static __maybe_unused int atmel_ebi_resume(struct device *dev)\n static SIMPLE_DEV_PM_OPS(atmel_ebi_pm_ops, NULL, atmel_ebi_resume);\n \n static struct platform_driver atmel_ebi_driver = {\n+\t.probe = atmel_ebi_probe,\n \t.driver = {\n \t\t.name = \"atmel-ebi\",\n \t\t.of_match_table\t= atmel_ebi_id_table,\n \t\t.pm = &atmel_ebi_pm_ops,\n \t},\n };\n-builtin_platform_driver_probe(atmel_ebi_driver, atmel_ebi_probe);\n+builtin_platform_driver(atmel_ebi_driver);\n","prefixes":[]}