Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp536509imn; Wed, 27 Jul 2022 12:55:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uWEh/r2EMhmg/CIrlLuXDCDJwZlW5YZGB8kYPODikfPxJuEgi8BuT7pNHMzQ4WvUUcZaFL X-Received: by 2002:a17:907:9710:b0:72b:3271:c9f with SMTP id jg16-20020a170907971000b0072b32710c9fmr18178093ejc.91.1658951731351; Wed, 27 Jul 2022 12:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658951731; cv=none; d=google.com; s=arc-20160816; b=zWn4UIiFoWwcOUNDrot8ZKO5bKlVRTHmVAdh/cBoVYjlZvjxBXbg8fehcCOvC8nEhs s2DE1HtweG81cFhS1fQjZNldPkKD8hebMKkeWK5O1cRSMWAdsIaSTsTQHV57cAuYXzUo 7sNaskaYGx8OVurQtLbFO0imM3SnahJ26d0HBjGTF5xUjsjEAIR29IJA4ypiT/gg3/h6 Rm9y8mrvkjLHTTD9VvRLOEOEXSshlCtnmk/HhjE789s2WZZZX5cbwYdS27SeEatIsiXz BIiEooc//Ec8EhILuYYf3USJECy7PzJMpHsGhHNZGhuySUy2/Mtql4+cglGqnneCRF2c 2U4A== 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=0gBJh1/DX5M6n5W65xmbWPerC4xN3qFPSKf5chwOdiw=; b=lYVmtT+uyrIFH2EjIccyFy0Qc3poUxy2basqmiuM5oKYF1Tg5rGbmIwVho4cuSEjbr wlwsU1ZGHeLys42I4bCrBxcIR2p4uqGRqOgIUT6QOSC+VFLyMLW4jWcp3Jqz7DxaXT3N oYuqKcLBqbTtvFiWjgSEEMa8TZeuHF0Dvtc0Vwsp0u+Zcp82wG+CKJs1FQ3TPxVvNTT5 M1YRVY7O7uy976q7mO0NBnIGhtRF/HgJyRHIsXdmEDCUWRATHCNwQd49afmGzaEOruwR Iy8zxQlgmNDJPMC13tWa8hdnnHfcmYtBx1hHnWSdTPaA0MX5u39iXMVsc11ByzdcG4pi KuEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bg8ph5Ot; 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 q17-20020a056402249100b0043cafd761b2si2755784eda.513.2022.07.27.12.55.06; Wed, 27 Jul 2022 12:55:31 -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=bg8ph5Ot; 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 S236247AbiG0TJz (ORCPT + 99 others); Wed, 27 Jul 2022 15:09:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236837AbiG0TJR (ORCPT ); Wed, 27 Jul 2022 15:09:17 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE8696D2F3 for ; Wed, 27 Jul 2022 11:50:24 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-31dfe25bd47so143644437b3.18 for ; Wed, 27 Jul 2022 11:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=0gBJh1/DX5M6n5W65xmbWPerC4xN3qFPSKf5chwOdiw=; b=bg8ph5OtD7AxG1zxeIOzd4c3YvuKJJwgTI0Hgqzl0BLzrOKqjOjkJROWso5PVvlwaw SKFanteSKc7afiyOqABcwFH+hyZFpEQAOqasHcqh2f7L+Bdn+8xIYU+sBCOKIrfuO6vp FADBwkrq/HXNQGrAFEpCfdTvNxN8H4jPOptrzVphWdjRaTQHxjniaTf7OmRYFPnKFrO/ zUbzV2HK8KGT3gR4BAIFqQtcSk3OB5PIqZkQQLX3UNakY3l4kaXGHklmrW+5TWobbdBt SQhKYvoAqOFXhYx6Xbyj2YbePvXd9wsyZwbIquWXadlDeNtWsPMCAFj+S5VHWE/2enUi JMQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=0gBJh1/DX5M6n5W65xmbWPerC4xN3qFPSKf5chwOdiw=; b=bm2e5W6Z/v7JIjvL3zCehKm+gX8Fg/xr80+yOsEwYrQSEea3qPzYYZHZv1vVNgLNbK St41fmlgpRlNKMFwLW6cRbfm0fKptXQwZ0VDMuDjLVVcEU8GB8kkpmNa2BLApHEj3il6 lBCH/epH2jHIxWJRjfE1VAa16EvZ+RDkk+SWwkrWgbCEjgAYSYdyPVAPsLVHTTXZqWKO w+AZvkGhOOkH1NdFEcX2eSlK5L/t6M6hfkjcYgtnSJ/Sq901aij2MLZVUCGrvkaq+gDg xz2huS9ddMmEkc04jniyzmTNXrUD4xtaAe6HZFJFZOWX4mRLr+QyuHiaB8ZJVcFaNsIk /IyA== X-Gm-Message-State: AJIora/xNkyWK5By7A7JEkCciFcM9WYNlMOm8fyn9rx05HBadaZk8hd3 rv3IhQDQlSEioffchj/tR2rB1crBVnGQHvc= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:40ee:bae0:a4fd:c75b]) (user=saravanak job=sendgmr) by 2002:a81:54c5:0:b0:31c:7731:e1ac with SMTP id i188-20020a8154c5000000b0031c7731e1acmr20280110ywb.190.1658947823995; Wed, 27 Jul 2022 11:50:23 -0700 (PDT) Date: Wed, 27 Jul 2022 11:50:10 -0700 In-Reply-To: <20220727185012.3255200-1-saravanak@google.com> Message-Id: <20220727185012.3255200-3-saravanak@google.com> Mime-Version: 1.0 References: <20220727185012.3255200-1-saravanak@google.com> X-Mailer: git-send-email 2.37.1.359.gd136c6c3e2-goog Subject: [PATCH v1 2/3] 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 , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Saravana Kannan , naresh.kamboju@linaro.org, kernel-team@android.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, 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,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/20220601070707.3946847-1-saravanak@google.com/ 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.359.gd136c6c3e2-goog