Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3080028pxk; Mon, 7 Sep 2020 02:33:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT9/ECsgc557Z+auAeN8GGD7RMXfLTTey4jWP5hhKplG5FzQPcoNQhHmeeVAqyEAB0BGmt X-Received: by 2002:a05:6402:1805:: with SMTP id g5mr2128606edy.135.1599471223265; Mon, 07 Sep 2020 02:33:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599471223; cv=none; d=google.com; s=arc-20160816; b=SXGxf8iks7zwhxYXTFOfZuGqPbpuNSLCh8cdaCRcW/ALeG26YqfNTgjtFkk9J1mIS8 YKtRtUEjcC/EfvdmJUioRgCm1HqMDYFqaP8Ig0mNoO02AmRF23nrQDyk6twLqctaS/4+ 7ASgfbOx44htR/+6bcd0pQirJmP/I4nl/KJo3kPuvTsxaZ09hpJx2U70HMrxlEMoiTch qN58d6Z5ntwpmp6snSTwhD1tQ55g3wuaX2LSAVPhFOqQUP6yl3nm/ER+1SD1Ew5qNreV 4grF2YwJnI8T8DsVZ3xAhEDy9hr8eZj6NC9lGTkP8Gr0Norz39nbqZW+QIfXQGDHuuGq AhvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8LmkN9bz0x78KqWAhh69ETYKag20c0D5tD+vEUF0fa4=; b=sV2AiyNz/v1Pif3dAu256EIcDnZU9HvfDTgl8HGvV255RvBxWMtEotFAsz9l9zrlXP 3Y9Q7mbDdx7o02qDxBUPqC/i/Re9qBX5zZVoPJvT8aYrKCazew7Q0Bvqdxkek23RWI/c ro3qN/qZNohDvcch1h390ZTri1LXiUjFcRpzPlhlmb+JtiHrN/Y5xFGJ5FezyqWGmql3 AirUMSgQPzneWFOvxjoYK38d/HiGacH4LXY7iZ4jTw8RS2mxrHHAng2KBPh3Qa/OsD92 VyPGNlnAPkcr+TCXjT6Ad/LNuxcxDDMBsDix9Bs6om8OR9DJhRznJKot+fx1KjMV9vyf Q3Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sEK0NXYo; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si9194010ejk.734.2020.09.07.02.33.20; Mon, 07 Sep 2020 02:33:43 -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=@kernel.org header.s=default header.b=sEK0NXYo; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728308AbgIGJby (ORCPT + 99 others); Mon, 7 Sep 2020 05:31:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:37326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728093AbgIGJbw (ORCPT ); Mon, 7 Sep 2020 05:31:52 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B382F2075A; Mon, 7 Sep 2020 09:31:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599471111; bh=eP5wyhYnUgbeM5N0DytP9/JFLIDxyhmR9T/dZ+SfNqk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sEK0NXYonD/CE8Y+G5BKcSukg0YWIon0CbRP/xlCInE2m+Qr3KT2RpmvGwPr+lL5V m3uvfqEV/7dBjjypb0/32ltnSaeYuR/vlhwZ4wKr+vpFR+hsm5ySbFS6X7Kl4nAYdB 2aHK6g6YfUHVP12VokidWhyIsCISXd0ZotDABrR4= Date: Mon, 7 Sep 2020 11:32:06 +0200 From: Greg Kroah-Hartman To: John Stultz Cc: lkml , linux-pm@vger.kernel.org, Linus Walleij , 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 Subject: Re: [RFC][PATCH] pinctrl: Rework driver_deferred_probe_check_state() evaluation since default timeout has changed Message-ID: <20200907093206.GB1393659@kroah.com> References: <20200808043512.106865-1-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200808043512.106865-1-john.stultz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 08, 2020 at 04:35:12AM +0000, 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 > --- > drivers/pinctrl/devicetree.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Greg Kroah-Hartman