Received: by 2002:ab3:689a:0:b0:1da:d01c:d2b2 with SMTP id t26csp331ltj; Fri, 19 Aug 2022 15:40:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Dz9or/kylO9wpGaz0sUJxGj0yUy8Q8S93UeaTgmPJDx1sSmUmUDK4hhPBhEtztPvAgZHC X-Received: by 2002:a05:6402:358a:b0:43d:aa71:3033 with SMTP id y10-20020a056402358a00b0043daa713033mr7621797edc.248.1660948832910; Fri, 19 Aug 2022 15:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660948832; cv=none; d=google.com; s=arc-20160816; b=Bm6aYun4ZOjPHWiRwDRLgyh9JzhGYgpy3lYrwH96UspHYp+XzeGUuQb0K5OZSvcaBm 5K270DyYQ3RQo9PyTCf7PsCUQsOxZ+4KCBsPJr3kJIddUj/YzP9+F9NtKtr3vzGz4cJ9 4jVa+reTFlpKrXyKCMOYvZa4CHDUZs+y/OcP0Rugaq2ZXWkGPH1qh1cjDaUvH5ZRwUr6 aQ8CGCnWXzSnuI1UqoFytINqAZIms6uPUs8cnzkYrSjQp63clPDCPeFNxjaxO/JdVaud Ea7Wcr/yU7tnV1RyuzdY0ZbYXVMwO30sstNxVYs1x7sxXs78AFtCeQD3d8lScbmAnzlm EbpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=UEHQVTWtY0L8HbB+rn9ayHruCFvSoeqhTJ8tjVlmltk=; b=I+KUTauKVITkzecnjLb7j9tX5IaVqH6Cyojr3Su9Xt6BSM+0Ftl6Xozbg4nypit0lT MwMqGQ3Ik3IeuFsLSN4TqKFWAuFurjKpn0FReAf6rWfhGZiZIC2JcqaUaeAfo3nkvIk5 R35TPzYCOAoSnfdW1BOz6wIg7hCBGcOrK2VFE68c1eNDsisuroU6Wq4MNK0QQwjAmvkU 33HRAd7YYVwnDOxDrT1hD23vxAJoCoJKcFl3vX4cu60J61e2FT+yPIT47qRiz5BHnmY6 +bOfHJpygpTJBbli4/cvqRAuiW42H1zrFCRksTXAXsMFLu5hBTLqiyQYpo9/wjPLuGC/ VBmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=G2nd61G3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp15-20020a170906c14f00b0073cf90eb884si2377533ejc.490.2022.08.19.15.40.04; Fri, 19 Aug 2022 15:40:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=G2nd61G3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239874AbiHSWQi (ORCPT + 99 others); Fri, 19 Aug 2022 18:16:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239810AbiHSWQb (ORCPT ); Fri, 19 Aug 2022 18:16:31 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7456C2767 for ; Fri, 19 Aug 2022 15:16:26 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-336c3b72da5so93543367b3.6 for ; Fri, 19 Aug 2022 15:16:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc; bh=UEHQVTWtY0L8HbB+rn9ayHruCFvSoeqhTJ8tjVlmltk=; b=G2nd61G3YUXzDJ7SOy7p3Qqr78Kti/oBcRHEJCvFPJ3XR67+EfeAz3oL+KH6MiVRbY tLUHabNGnrIIu/MfxR4qQjPz24fIMblKNFZui8waxypli1TuNkLNz+vRl9fxaPQ0Z2mZ kotKh+3b3CwBEck2dyzgBfVi+g1q/BV2925Smv0NJgFjQxyQE1jla7m1Qc6Nu/f/+dEa 628Q1guJzowvfMIdGpOI1HmNMERryzw6kIihBEIUyZFMUi0tR+z6oh4WLK5HxmENqGNM cZ0WdQebFYvYsjOqxNxer8SRsCzQkHMxVRG88otL5Sve16E+Z/V+pPWfso0/qJYZNTy7 SFXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc; bh=UEHQVTWtY0L8HbB+rn9ayHruCFvSoeqhTJ8tjVlmltk=; b=X5rKba30877iwt45eisbrBa55FVMuY8eWQT3G/zm99MdGqycGHt8oESEc375QcTPgZ NpVO27fwYNwR5QOGlrAjwxecUqI4xs/5dIcnKaVP5nhpTUosHTyH8vw9DLONQEq9mHwK 26a+XaD8XaROxejxBh8Oi2cHotoSTpCVoSKq2elKAh8mNamINxXNeiedId8HUtLjU1zm Qqkul4N2PqiuYaAVB5xE29fFiw4EZaBqVTrjAxg7jx9C0qfgfCOQme/9lq9Ieb3jBC8J bdZF8sphKoEQ3emPEredfi6bbd+0kH/VbaPPoW60+bpdwjY0J3AuNQi9miyfUL6InkX3 402g== X-Gm-Message-State: ACgBeo2VtNFWp9wI5IeVSCg3alUi7s1EtIu9pzXXK++KFLD9Ta3QqZcm ZDvcl/Eifm1lHQHqWvA0hIpodosHrwmIju8= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:f93e:7b61:ce3d:5b06]) (user=saravanak job=sendgmr) by 2002:a81:83c5:0:b0:334:a89b:1e5d with SMTP id t188-20020a8183c5000000b00334a89b1e5dmr9134295ywf.178.1660947385806; Fri, 19 Aug 2022 15:16:25 -0700 (PDT) Date: Fri, 19 Aug 2022 15:16:12 -0700 In-Reply-To: <20220819221616.2107893-1-saravanak@google.com> Message-Id: <20220819221616.2107893-3-saravanak@google.com> Mime-Version: 1.0 References: <20220819221616.2107893-1-saravanak@google.com> X-Mailer: git-send-email 2.37.1.595.g718a3a8f04-goog Subject: [PATCH v2 2/4] Revert "net: mdio: Delete usage of driver_deferred_probe_check_state()" From: Saravana Kannan To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Pavel Machek , Len Brown , Joerg Roedel , Will Deacon , Robin Murphy , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Saravana Kannan Cc: Peng Fan , Luca Weiss , Doug Anderson , Colin Foster , Tony Lindgren , Alexander Stein , Naresh Kamboju , Geert Uytterhoeven , Jean-Philippe Brucker , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, iommu@lists.linux.dev, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit f8217275b57aa48d98cc42051c2aac34152718d6. There are a few more issues to fix that have been reported in the thread for the original series [1]. We'll need to fix those before this will work. So, revert it for now. [1] - https://lore.kernel.org/lkml/CAMuHMdWo_wRwV-i_iyTxVnEsf3Th9GBAG+wxUQMQGnw1t2ijTg@mail.gmail.com/ Fixes: f8217275b57a ("net: mdio: Delete usage of driver_deferred_probe_check_state()") Reviewed-by: Tony Lindgren Reported-by: Geert Uytterhoeven Signed-off-by: Saravana Kannan --- drivers/net/mdio/fwnode_mdio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/mdio/fwnode_mdio.c b/drivers/net/mdio/fwnode_mdio.c index 3e79c2c51929..1c1584fca632 100644 --- a/drivers/net/mdio/fwnode_mdio.c +++ b/drivers/net/mdio/fwnode_mdio.c @@ -47,7 +47,9 @@ int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio, * just fall back to poll mode */ if (rc == -EPROBE_DEFER) - rc = -ENODEV; + rc = driver_deferred_probe_check_state(&phy->mdio.dev); + if (rc == -EPROBE_DEFER) + return rc; if (rc > 0) { phy->irq = rc; -- 2.37.1.595.g718a3a8f04-goog