From patchwork Tue Jul 18 16:33:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 1809703 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=OJBWMd/3; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=UCj/ztQp; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=CkuKsoKG; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R5T3z4Gy9z20FK for ; Wed, 19 Jul 2023 18:09:03 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HSWAMLTFGus+x9gXsSTNOA+UoDKb1fyYH9xIX/2tk2E=; b=OJBWMd/3StTqiU GbxHp7OTIO3QlVa7sb5TOjp+x0RMeHCMpK4mcut5Pcf3VFZ3QiEtassEXrnsOo2ifgRlkomNJ4QdV PWRHicgT02tsCtrYv0nabnrZ4hUsl6DYgQ0ayuB5CNQsMsVDi1T2QwQaGL2cdmFaWNrudp/qy7NFF t3jB4jtO2wwJbex1iJeV+qY0VN2T4qnvHQYzRgH2fvIKioCHKoprkC+udwcdyh8ocwLUus6ot7zQW V046UqiTE948unu954MtJ6jdakEN0zF04JsHvJcphbr35B/oL7Lwoikk7eVIUPYgrWjfGtNN1N3iu o7d3a8ewFUXw1EN+R4eA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM2Eb-006ENp-0L; Wed, 19 Jul 2023 08:08:34 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM2EZ-006EMn-28 for linux-mtd@bombadil.infradead.org; Wed, 19 Jul 2023 08:08:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=dms8vT3LbWV2xoMki+URj5TVToq0zQb0Wlc+IcwUy+w=; b=UCj/ztQpgizosHcLnbrwEqnY/k iFYvP6idze3fKCKi0jpfW2dtSp37AMZMOdP7JTQnQVjUJ6+imSA/TPKGuP0LHqg/czNHXgQ712K6u fzV6XsOC72v4XJa0t7G6ow7dS2YHhroRYIS3uqrq5nRjbDK2skPeRkYKjD9cCX6gwbFoFS2LvFewu r0JwSLGxNR7d/IrAmNMJ1fn1YXB+ms4DW0Bdu33fspUsur/hVvNrt/sp5ud0HieEGIOxulk1n+7mm wxcH9FXUBx/7nQHLufwyp36tRmVgTgYV3HniQMyi+h9ts0z/Ws6NzCIm2AgHb1Fp630Y5ZmOXXF8C f/Y5qfDg==; Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLnev-00Bl9Y-1y for linux-mtd@lists.infradead.org; Tue, 18 Jul 2023 16:34:47 +0000 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4fbaef9871cso9593836e87.0 for ; Tue, 18 Jul 2023 09:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689698023; x=1692290023; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dms8vT3LbWV2xoMki+URj5TVToq0zQb0Wlc+IcwUy+w=; b=CkuKsoKGX6U9dWhthd/X2vSZOpFFtXLPq00VVLFxhcUd6BlzcFADtoD8A19IAApk1x 8QQlUNcEfH/pohBc01/4E7JDOy2PBBI17XaEWxLbHBuJ1EzJh0KxZ0c2T/jqYnUMUTuY jFIOBRKBF3T7RJ78HzaMN6StHgs2Js3VoAgJnKwOHHiBws2fCKUw0cR8KLNsl+v/B1Sd GfOj0RYUG1DB9svWzgYDk/MLzHL9npl8JGyqSSw1gieYW4yiRdztVCJG1IBDKKtJvHzC ztBcVdtqyj+jtdUcTrW138jTEiCcTN5Vu2PNXJj4GNvI5wOhvdMl3aAZGbrJAUiSWu6L aqFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689698023; x=1692290023; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dms8vT3LbWV2xoMki+URj5TVToq0zQb0Wlc+IcwUy+w=; b=aZvEGKAWHRYIMSre+peS9zvqbEiPo7fXoLutX/d7LskdaCdzT45H/WqlOl+PGiYulB RMFVsaaKR2+lcxAMxn5VZqFN9kTNfNt83BoC15owaR0K4j3sGPKkQyg6NnPMx9R8lQ0n 4ExiDDP50SiKw0ymr7pAFVy6EANoFUvxKGnIW7iIbYnuksIEr3kJaETh2ypTX2yLY/h/ gSJ5h0Pr7RQ1OXDmB/OB8ro3jV5JLV/ZkptKhRrrwWxJ+BBe2dmgO4VZVq3JJHiOg+Z0 lrrh04m2bOqLg8ogbEmbL/G63GYhCiG9tR32tVRhTY1AbbB2pPdXMwXRkyfANSJYMnG5 2/eQ== X-Gm-Message-State: ABy/qLaOKyTh2PRxizMlHf9J5Wn0KdUXnMaGQacrYTFpdv4wS7+KZpOv K1D1JtMeE7j0XCkrGZGoRdE= X-Google-Smtp-Source: APBJJlGb4woUVSCroydLKZ8g8rJhad5FBI9Se4LpaN8EmrS121cPQMKA6pHwWWPHmxN0TKo62f6bDQ== X-Received: by 2002:a05:6512:210a:b0:4f6:6b:a43b with SMTP id q10-20020a056512210a00b004f6006ba43bmr9203838lfr.52.1689698022470; Tue, 18 Jul 2023 09:33:42 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id q26-20020ac2511a000000b004f76684329esm500480lfb.234.2023.07.18.09.33.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 09:33:41 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: Brian Norris , Kamal Dasu , linux-mtd@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH] mtd: rawnand: brcmnand: propagate init error -EPROBE_DEFER up Date: Tue, 18 Jul 2023 18:33:31 +0200 Message-Id: <20230718163331.9116-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230718_173445_959568_33589087 X-CRM114-Status: GOOD ( 11.14 ) X-Spam-Score: 0.1 (/) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22desiato=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__From=3A_Rafa=C5=82_Mi=C5=82ecki_MTD_su?= =?unknown-8bit?q?bsystem_may_return_-EPROBE=5FDEFER?= =?unknown-8bit?q?_if_something_isn=27t_ready_yet=2E_It=27s_important_to_pass?= =?unknown-8bit?q?_that_error_up_so_device?= =?unknown-8bit?q?_will_get_probed_later=2E_Signed-off-by=3A_Rafa=C5=82_Mi=C5?= =?unknown-8bit?q?=82ecki_---_drivers/mtd/nand/raw/brcmnand/brcmnand=2Ec?= =?unknown-8bit?q?_=7C_2_++_1_file_changed=2C_2_insertions=28+=29_?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=280=2E1_points=2C_5=2E0_req?= =?unknown-8bit?q?uired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-0=2E0_RCVD=5FIN=5FDNSWL=5FNONE_____RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_no_trust?= =?unknown-8bit?b?IFsyYTAwOjE0NTA6NDg2NDoyMDowOjA6MDoxMmQgbGlzdGVkIGluXQ==?= =?unknown-8bit?b?IFtsaXN0LmRuc3dsLm9yZ10=?= =?unknown-8bit?q?_0=2E2_FREEMAIL=5FENVFROM=5FEND=5FDIGIT_Envelope-from_freem?= =?unknown-8bit?q?ail_username_ends?= =?unknown-8bit?q?_in_digit?= =?unknown-8bit?q?_=5Bzajec5=5Bat=5Dgmail=2Ecom=5D?= =?unknown-8bit?q?_0=2E0_SPF=5FHELO=5FNONE__________SPF=3A_HELO_does_not_publ?= =?unknown-8bit?q?ish_an_SPF_Record?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_0=2E0_FREEMAIL=5FFROM__________Sender_email_is_commonly_ab?= =?unknown-8bit?q?used_enduser_mail?= =?unknown-8bit?q?_provider?= =?unknown-8bit?q?_=5Bzajec5=5Bat=5Dgmail=2Ecom=5D?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_envelope-from_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_author=27s_domain?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily?= =?unknown-8bit?q?_valid?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Rafał Miłecki MTD subsystem may return -EPROBE_DEFER if something isn't ready yet. It's important to pass that error up so device will get probed later. Signed-off-by: Rafał Miłecki --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 39661e23d7d4..cca2b153ae26 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c @@ -3245,6 +3245,8 @@ int brcmnand_probe(struct platform_device *pdev, struct brcmnand_soc *soc) ret = brcmnand_init_cs(host, NULL); if (ret) { + if (ret == -EPROBE_DEFER) + goto err; devm_kfree(dev, host); continue; /* Try all chip-selects */ }