Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp774372pxa; Thu, 27 Aug 2020 15:44:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTrrT7T4qTSp3HnHem1XWc2wfyFsMNz8NcXUCAL9kb6ZI9PdyGbN4fjBcoThHipUjnAaWV X-Received: by 2002:a50:de04:: with SMTP id z4mr22386575edk.10.1598568257626; Thu, 27 Aug 2020 15:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598568257; cv=none; d=google.com; s=arc-20160816; b=XN8rjyg3ZtM7je69Ov1oGWfj7bQOsr0HQ72s/vB+vRlNVIcbjXJfG8wqZL+o+8x19X RZKE9ynljaMffVythb+HOlC8BxsF/po/2DbzSdfDebC5EujN9nnXxO54GG+U8J3ZHlK2 TnV7nQpOYvZhfUBJVkB3W1DDmgnmZS+M7JAr4I0jJGR3GhTFHmmdTCtJXYQ0qmmjR7Uy J/qO7ftQ/npmwTIlMd6JJpe/wjy8wtr3R/2D8P49S2cPRZ2y/p6kbxd7vVEm7YZEXDbb 2N+26PMLk0pEURBlDRERGR9t0y/drjnr/B92HVUJ4L3s+pWSyhA+VUOY4oUh0AAM2vUR 8Esg== 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=0pcU9aUbUl4TsqruqjB25HWTFFDbqp5NR2RTfcoKiZA=; b=w48TtmJuh8O5dpNghd4NiyIxW3I0f8F4cEMSmTRGv2dORPOVlFpqNwCyWWkKJT7Zio jAjJ6EVrvoJWS/foyl8FlVDBA4YmNEcshgeNrC7ZeuNRbjKKOyERmWl8dtXoQCqt5RK2 bQxsRMjFfCDOvQz72NezPOlaRWZIVYk2BvOYJ14VUjAC5gwJkDTDgfbdcBFMsCJthwIy o1NaZI12Em7Df1EFMp61BIi9gVXRj0sxdaTLzH+ISboXReZjFM2H3N0zdH2dd6jbO6UB gnA3REoZKprALoY/2g19zIXtKwfq3O5NFqPTAbS8ZPVokWAlpu+GwpGvxjh2WgWpHJQG wlXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cUyVtGY4; 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 bm12si2391606ejb.186.2020.08.27.15.43.54; Thu, 27 Aug 2020 15:44:17 -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=cUyVtGY4; 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 S1726972AbgH0WnB (ORCPT + 99 others); Thu, 27 Aug 2020 18:43:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbgH0WnA (ORCPT ); Thu, 27 Aug 2020 18:43:00 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86D6FC061264 for ; Thu, 27 Aug 2020 15:42:59 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id f26so8241615ljc.8 for ; Thu, 27 Aug 2020 15:42:59 -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=0pcU9aUbUl4TsqruqjB25HWTFFDbqp5NR2RTfcoKiZA=; b=cUyVtGY4l+LoL3wR2SzxDMdStxapZTbtWykZgqn5aYmKeamYFI4RlnlzwgXxR5ZiLH XkzwGUaNNQ/Tfw3G1cY12uZLp2+65yELJ0k6aaVJ4sPiILv8buG5SG5rdmuqhfc/UVRk z5i/7gKqZ+EOqd0h0dVCPLG47W+bO5wffx1CCgvcF/QgZ/zX/TvuD99CT8ZNc4DauYjw /4dfKgH8Mexvkr/AdVyyu0OGSGUVLc6SYdfd+W9o/p1vee9uuw+cBqoQBOUztk6IlNtO 5e/fubZ6bQJqatAAPqA8L0o+mkcn8fC6JmyJ8ddOTAx66Iy67QZWJTpI95/YWjtG3FUc ZBTg== 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=0pcU9aUbUl4TsqruqjB25HWTFFDbqp5NR2RTfcoKiZA=; b=koxZjg5z+KiTdBa68UW7K5TYYqPAYDkDhRnHIAGPGcBzSXaID2i5NzW0Sg4EirIgXM KYPM9Pbx4k2mMIAZkIho05YUA66IQOiAY2iBoFFqM/rcXiDkFBoOlXuGx0Sfimv3Zx/h 0UsPxX7OyFwwQi3fodHG04/J6qACYwAXe0VjOmhy2K8oaEjxpHW7fNpELXX88l4c3jFa y9RvYYXLdp0MPW6ZJgE9Iaqzc1eSy7HhRKFaAS20LE9DWgLFF9fhOw+Q82j8ZI/M+QAH O6T4dBfIfKLeXffoCXFK3JqKWUff7ZLhV6+WVOaHAYIXH5pNyI/0iZDCRqpH4CQ2lW23 ZTPA== X-Gm-Message-State: AOAM533aToIwwRDo+r9EhCGvn2AMy/0GgQ0zCveOuPKQ46WAVc1LvYKy g3uYb3jiN0EIh5utdQ7nyyEzHmrOSyY17/CYQOyRhA== X-Received: by 2002:a2e:b80b:: with SMTP id u11mr11284682ljo.286.1598568177595; Thu, 27 Aug 2020 15:42:57 -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: Fri, 28 Aug 2020 00:42:46 +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 This looks sensible to me, but I'm not the best with the device core. It'd be good to have some Greg or Rafael stamp on this. Can we have some comments? Reviewed-by? Yours, Linus Walleij