Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1251911lfc; Wed, 1 Jun 2022 13:07:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8nVgSvXguzEaX9sYjhwmtGun8rvPBW9htI3HT2rNdebBLfn6ZRcbGe4V66QhNszRhnQTq X-Received: by 2002:a63:754b:0:b0:3fb:2109:e4d2 with SMTP id f11-20020a63754b000000b003fb2109e4d2mr905192pgn.447.1654114059012; Wed, 01 Jun 2022 13:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654114059; cv=none; d=google.com; s=arc-20160816; b=NBMCYkuosQswgm64wrBGFNdpjCUFqqQ/1S5tg7jFLgoWo6tNUg+2xDyi+n9Vme2zK0 AUx1l5dusBnMyGuyRdizdlF9R4lXjGHSng798SWr6N3F1RlW1s1YZaRiv2R04P83UQSS WZJb8vaSC1UXDnohf5HvduqyChjWmIBCIfIDvlIxJ0z8j03iEKCZal81tPqFCsoPXsbE VulHXjM3dmo1Hy0WbF6nCPPJom3SPZE7tyInqqPsmnN0DagGB8XR0exnjRNafgEBPFBy PNRCYLNqQvWoRNXdvDTK9+L4s/ChvfeGvfzp3kh4YlojuPJRs//I/0JAtbr/PvTEAeba BB1Q== 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=s1gsps1j5Ayup9Swk+EXc2kGgnx5nhOnARnKuAKYXv0=; b=TaJ3qQ76FCgQRs1DULwdvbGsn+Ocq1BVhRi12p5zOljgffHtyu6QQ4g0i8zF2C5qb1 ZEaTdRBdLaO5QIphls3cbiTuedDO9LOviB2dDGs6H16sRd9rPZgAhmqYdo6Yp1aj3Azx 3aC68mSnzr9oIaJ/rKJ4oUjE4ohvr6sTNWJUmYMwfmw8y0PkT5QgraQ/Z+YWUWhAgu+g irFY5xYGJkSEjmKOBobIi465KUjZRm0V8vz2rkbHxZciCXj0IMXtRaL9fvswon489zty Pt9NKDhdo9KuqFQquIpdHJ9aXCKosqlq1ruKhx1wj55xc9QZb0kgyFB3tgIIz45Uw9em UBGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ch5YvNSZ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r6-20020a17090a2e8600b001d960c22782si7004426pjd.158.2022.06.01.13.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:07:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ch5YvNSZ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A93541C4261; Wed, 1 Jun 2022 12:23:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344576AbiFAHHW (ORCPT + 99 others); Wed, 1 Jun 2022 03:07:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344020AbiFAHHT (ORCPT ); Wed, 1 Jun 2022 03:07:19 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3881428E3D for ; Wed, 1 Jun 2022 00:07:18 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id z67-20020a254c46000000b0065cd3d2e67eso726764yba.7 for ; Wed, 01 Jun 2022 00:07:18 -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=s1gsps1j5Ayup9Swk+EXc2kGgnx5nhOnARnKuAKYXv0=; b=ch5YvNSZbFFvNIFbdMWgLJY52Qnpd1NtoLMcbn1rQ4YPVTxYHbxywFyCPzAP3/GdOE KdsrLMveolqX+jFl+h4mIER3kCKjzchkhaA5vc1KaGo6eRizAhbS9sDWsqPUMTwf+grp U7krsYB7Uq2sN+6D6tVvi/PXDklkCU0WIpKMDNVMY9ZLGTpoYdnVYedYDONJOBI2h8x4 UIe8XKZmJKhAXeerPesRykxXMFw39fsB+kV+KjPQH/ddcGxWfonhfMLcu+h3NXhKRmfi /YqfTTroCVXlQaiebFvlX5bBi+H7w29MdlZQ5F7xCu5rWKB+fxWysM0OGOqJxtn145ed E/Mg== 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=s1gsps1j5Ayup9Swk+EXc2kGgnx5nhOnARnKuAKYXv0=; b=m5xWp5MEmPFgMyRptRamsxu57/JB/UADHkml9TwSpBObriDZBEtS1rpt88UQR0V70i l0ddZ6ftzCSiEWBM4qQ9St1EDC/fD9dkKuy8RzDLbjJRXx0+vw9SKWkn2JSW+vAw7CQ+ ncvSbAEJ7ySiNQDz1XCe0zMltWWXOigpwK0uQCesLxaHls+Jw/LNqAVT5SFEytS/0KI7 Unenlqc1C27wDEimIPjRQOtUYif0NhN18PV/b8GLbpF0aERETwU90vEA8y4wVAoKvtyd nvLVGgEXOMrO+dlly4hQDYTsEpHxN59SAMCxMp6fR0m5MhM+pPebu6dZPtDvoRUr09jd t0/A== X-Gm-Message-State: AOAM531sge589LOXMpqp31zuvx3iIMIuIuTmm6cCVnsDu7FSq7zjoenw QRm8VOaOmNH45wBXJc7dRxcSWh40IeRTBXM= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:f3aa:cafe:c20a:e136]) (user=saravanak job=sendgmr) by 2002:a05:6902:2ce:b0:64b:9bbd:34fa with SMTP id w14-20020a05690202ce00b0064b9bbd34famr60927760ybh.440.1654067237399; Wed, 01 Jun 2022 00:07:17 -0700 (PDT) Date: Wed, 1 Jun 2022 00:06:58 -0700 In-Reply-To: <20220601070707.3946847-1-saravanak@google.com> Message-Id: <20220601070707.3946847-3-saravanak@google.com> Mime-Version: 1.0 References: <20220601070707.3946847-1-saravanak@google.com> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog Subject: [PATCH v2 2/9] pinctrl: devicetree: Delete usage of driver_deferred_probe_check_state() From: Saravana Kannan To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Len Brown , Pavel Machek , Joerg Roedel , Will Deacon , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Linus Walleij , Hideaki YOSHIFUJI , David Ahern Cc: Saravana Kannan , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, iommu@lists.linux-foundation.org, netdev@vger.kernel.org, linux-gpio@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 Now that fw_devlink=on by default and fw_devlink supports "pinctrl-[0-8]" property, the execution will never get to the point where driver_deferred_probe_check_state() is called before the supplier has probed successfully or before deferred probe timeout has expired. So, delete the call and replace it with -ENODEV. Signed-off-by: Saravana Kannan --- drivers/pinctrl/devicetree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/devicetree.c b/drivers/pinctrl/devicetree.c index 3fb238714718..ef898ee8ca6b 100644 --- a/drivers/pinctrl/devicetree.c +++ b/drivers/pinctrl/devicetree.c @@ -129,7 +129,7 @@ static int dt_to_map_one_config(struct pinctrl *p, np_pctldev = of_get_next_parent(np_pctldev); if (!np_pctldev || of_node_is_root(np_pctldev)) { of_node_put(np_pctldev); - ret = driver_deferred_probe_check_state(p->dev); + ret = -ENODEV; /* keep deferring if modules are enabled */ if (IS_ENABLED(CONFIG_MODULES) && !allow_default && ret < 0) ret = -EPROBE_DEFER; -- 2.36.1.255.ge46751e96f-goog