Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1056789pxk; Sat, 12 Sep 2020 09:24:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+NYXPsQbFO63VtC8HD/8faQFVEuIuzHuhPc5+m6mG8xn/PR6AlbFy2KqIHTqNJg9yjHrH X-Received: by 2002:a17:906:a947:: with SMTP id hh7mr6463081ejb.126.1599927853032; Sat, 12 Sep 2020 09:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599927853; cv=none; d=google.com; s=arc-20160816; b=dKVEPjXdicrcguDsV7UHpRrjLsUpjedIv54257hD8P8y/eQ06MP0ctU9yzI0PujWKI BOCgvsIgRb21mAgz3vV1t3dab2P9wO+KbNNYv/zTU40DVyK9EVXR4jcpW/6qjPbN65jf riXQD5SyxrKo4hOLhsy63vMFSZcGq1SKX1K6h2aLqCc1ipIrPSzZFKzyJPgtj924l5E5 BBpKcNpivhhPnCPbWu6eTUf2lNGGdV8xcJEQC33SrUirnwhHzc3jtHp9z1ysaU6SHDgA TlHXTIroX/aTBcmR1HTGHGOxr7Elz7O6HJ1fLhY5Pgeg2L3nyAmX86HMVtht4zeKmVQh 92rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=whTwaaFIj4VaMO00rSkvbl86UfGSXDScx4RZw5sPwwA=; b=x3DTUdJbl8Vtl1GVcHythEzB8zo1ezUXRoHLmhAqbk3PWixis7yPQctcoFZ4Q6xzUP edC2F4Yh5mw+HHWMYsOo10P7gq+BJ0E3k2gqr8162623ZrkOewIodhAvCnsSHnuH1Ozy wBcJfiu8hUBta944uu+n61EY4fQ92KUjIfKIVhxn0jtE8WoKenJOUcPitMGODg155LWO FXIU2ZHrz4mFng87xYW2yS9YKV89JVm+LbPSMGjmUyUacmqrAeF1kWmmOZAzQsV76Nqb YbP4mph1vh01HwkVG2aqO4VEalr0heDDsZfaZcW+0CRUFRQ/fD7+gdgqb79z+uz7R3Lb 80yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pXKn1BNq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si3763851edw.337.2020.09.12.09.23.49; Sat, 12 Sep 2020 09:24:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pXKn1BNq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725874AbgILQWT (ORCPT + 99 others); Sat, 12 Sep 2020 12:22:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgILQWL (ORCPT ); Sat, 12 Sep 2020 12:22:11 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B63D4C061757 for ; Sat, 12 Sep 2020 09:22:10 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id z19so8993462lfr.4 for ; Sat, 12 Sep 2020 09:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=whTwaaFIj4VaMO00rSkvbl86UfGSXDScx4RZw5sPwwA=; b=pXKn1BNqhdkhBJzekoypq72xizuWmzUnDg57toV5RG6L7h6UZETD3VajMp4RJXwWmF ADL3juoa02yH2BfzBAzMFY9qyfK5U3DSzTyUh18/fQQvc9p75/Mw3ZFWVL08yEvh2mFd MbZu4EoSOia2pDnd75EtjZCFgHRE8wFj83ZY13TMN1YRe9Es/K/cZM72ymvB6kBq2840 BlaRwBM4p6hx9mp+Fo+V9WhL9zYS4FAs2NucaJ5KqV+zsWW7f+nocrPGF8QqPzxT6MFE KgZqqlNSADNvwIh1x6iry8FtCAv552xvHecHGULH3DzoSCOr1AvGqpVSruBqlbAm9jOx QDiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=whTwaaFIj4VaMO00rSkvbl86UfGSXDScx4RZw5sPwwA=; b=ekXIUIzfQf5hS7jcZ4uAmlVPtiiBEwBSLqd8E/Qs8bpA2xE6AzF58fxbyFHVsRCXaG sWdppvh+17TusFMzR3yDL6pdhpj9Jg0CFH+s4f4SWf6j0GmdU4SF1Nm8CWjP8kqeHDfB pGmYN3OIx+fsb4X1s+RxvY2lhBv+XzYipX1kc4kYNfasAoHdWuha5zSOXbOx/XqT0wH9 suG0sLjJz0PxJHvbqH/9nIwvly8t4pg97j9v9OqThrU1VBUBf9n99f8dQccWZs5kL1Ed J2hCrnb7X1OAwdmlE9iMMgLQBUPeEbhh4NQl1H31ZzZoHd9th7A4tZd3ITHsCzoyyM6s RF7Q== X-Gm-Message-State: AOAM530y1rEs93m7fnUDKepze6jaocCODHI9S2b7ONJNXx2VFL7BlI2X gSSj2wPuopcLco0fI6AaHZBlBVliRsXsTp+omLNylA== X-Received: by 2002:a05:6512:370b:: with SMTP id z11mr1761753lfr.571.1599927729072; Sat, 12 Sep 2020 09:22:09 -0700 (PDT) MIME-Version: 1.0 References: <20200808043512.106865-1-john.stultz@linaro.org> In-Reply-To: <20200808043512.106865-1-john.stultz@linaro.org> From: Linus Walleij Date: Sat, 12 Sep 2020 18:21:58 +0200 Message-ID: Subject: Re: [RFC][PATCH] pinctrl: Rework driver_deferred_probe_check_state() evaluation since default timeout has changed To: John Stultz Cc: lkml , Linux PM list , Greg Kroah-Hartman , Thierry Reding , Mark Brown , Liam Girdwood , Bjorn Andersson , Saravana Kannan , Todd Kjos , Len Brown , Pavel Machek , Ulf Hansson , Kevin Hilman , "Rafael J. Wysocki" , Rob Herring Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 8, 2020 at 6:35 AM John Stultz wrote: > In commit bec6c0ecb243 ("pinctrl: Remove use of > driver_deferred_probe_check_state_continue()"), we removed the > use of driver_deferred_probe_check_state_continue() which > effectively never returned -ETIMED_OUT, with the > driver_deferred_probe_check_state() function that had been > reworked to properly return ETIMED_OUT when the deferred probe > timeout expired. Along with that change, we set the default > timeout to 30 seconds. > > However, since moving the timeout to 30 seconds caused some > issues for some users with optional dt links, we set the > default timeout back to zero - see commit ce68929f07de ("driver > core: Revert default driver_deferred_probe_timeout value to 0") > > This in essence changed the behavior of the pinctrl's usage > of driver_deferred_probe_check_state(), as it now would return > ETIMED_OUT by default. Thierry reported this caused problems with > resume on tegra platforms. > > Thus this patch tweaks the pinctrl logic so that it behaves as > before. If modules are enabled, we'll only return EPROBE_DEFERRED > while we're missing drivers linked in the DT. > > Cc: linux-pm@vger.kernel.org > Cc: Greg Kroah-Hartman > Cc: Linus Walleij > Cc: Thierry Reding > Cc: Mark Brown > Cc: Liam Girdwood > Cc: Bjorn Andersson > Cc: Saravana Kannan > Cc: Todd Kjos > Cc: Len Brown > Cc: Pavel Machek > Cc: Ulf Hansson > Cc: Kevin Hilman > Cc: "Rafael J. Wysocki" > Cc: Rob Herring > Fixes: bec6c0ecb243 ("pinctrl: Remove use of driver_deferred_probe_check_state_continue()") > Fixes: ce68929f07de ("driver core: Revert default driver_deferred_probe_timeout value to 0") > Reported-by: Thierry Reding > Signed-off-by: John Stultz As noted I applied Thierry's similar patch. Yours, Linus Walleij