Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4634893imm; Mon, 14 May 2018 10:17:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrjE0AOCozgJzfRZTZLLeKBjX+Hry284XHnt/L+8yinyKFvolTNmwf1dGhXv/PcTwT5jtfF X-Received: by 2002:a62:1549:: with SMTP id 70-v6mr11400921pfv.91.1526318270359; Mon, 14 May 2018 10:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526318270; cv=none; d=google.com; s=arc-20160816; b=TwGvsw+XRJivBVe1YLB2Zo/TtYVQXIN5f9XezTmBAZXZ8OP5FFO821sYX4atSjlfwp x8KTCJo4DMUB9ow1/dqq5Fv2P+XBQxLH9pf0LBq1VxGBNGuyciDmkAR+DRNsxIetgnoY UQ1t8IlDmsDfQzS8Yr9D4UWQTvXpU3tfgw2sXTyIUFjOsmbSWaHJR+DYgf+OKyYQxC6Q ppH8cn41+Z9z0vAOpea3JU+GD6Stx9mVVcw2GY/7nfjx8rMjBd/EjHbqwMoVcOdEEqhN dl8Q/cciXDIyxfN52c+A779ULev6LsXP/FyBJWzG1mNmEqB62R4oGMNxs/ds5u0JyCZ5 2j1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Q3dpk77FV3HxdpnpBUl3sZjZYXzXDFuVIUPgpd6Yi2s=; b=xojvdYwCyVsyyTI6b2XJpFzp4YHge0051aGdP4MBUCNUQe0KDwYkPjSq1by/qOGTyk JhUCTob10Bu8dMtivB7b9X9MFk1zTeLy6+zt+OJdMMO2X3aSGXjVKHqpBdhQp8dh86Lh GL8Mu4LjUZrQnrYo0EDNuKBt39x/qe45pLTD89JhAmxuuzLMhdNPcOahSgNvkT0Hc6T2 M8OpKIW5YCWyV2qwxpchlXsfrlwSsg+jwXWHMOsCnGg8tDbZoCTHqCErFnJi9ihUtafg 4sLC1jwCZR++cNLJdOJlQaL6K7mh4dP6Awg0BPtc/jqJQzBAPODIvbwI4Q0ya4Us8DKX l4+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5-v6si9686283pfh.271.2018.05.14.10.17.35; Mon, 14 May 2018 10:17:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932676AbeENPTN (ORCPT + 99 others); Mon, 14 May 2018 11:19:13 -0400 Received: from muru.com ([72.249.23.125]:41940 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932097AbeENPTL (ORCPT ); Mon, 14 May 2018 11:19:11 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id D7DE2807E; Mon, 14 May 2018 15:21:15 +0000 (UTC) Date: Mon, 14 May 2018 08:19:07 -0700 From: Tony Lindgren To: Ulf Hansson Cc: "Rafael J . Wysocki" , Greg Kroah-Hartman , linux-pm@vger.kernel.org, Vincent Guittot , Geert Uytterhoeven , Kevin Hilman , Vinod Koul , Viresh Kumar , Wolfram Sang , Pierre-Louis Bossart , Russell King , Mark Brown , linux-arm-kernel@lists.infradead.org, Sanyog Kale , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH 07/11] driver core: Respect all error codes from dev_pm_domain_attach() Message-ID: <20180514151907.GK98604@atomide.com> References: <1524732790-2234-1-git-send-email-ulf.hansson@linaro.org> <1524732790-2234-8-git-send-email-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1524732790-2234-8-git-send-email-ulf.hansson@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ulf, * Ulf Hansson [180426 09:01]: > The limitation of being able to check only for -EPROBE_DEFER from > dev_pm_domain_attach() has been removed. Hence let's respect all error > codes and bail out accordingly. > > Cc: Greg Kroah-Hartman > Signed-off-by: Ulf Hansson > --- > drivers/base/platform.c | 17 ++++++++--------- > 1 file changed, 8 insertions(+), 9 deletions(-) > > diff --git a/drivers/base/platform.c b/drivers/base/platform.c > index 8075ddc..9460139 100644 > --- a/drivers/base/platform.c > +++ b/drivers/base/platform.c > @@ -572,17 +572,16 @@ static int platform_drv_probe(struct device *_dev) > return ret; > > ret = dev_pm_domain_attach(_dev, true); > - if (ret != -EPROBE_DEFER) { > - if (drv->probe) { > - ret = drv->probe(dev); > - if (ret) > - dev_pm_domain_detach(_dev, true); > - } else { > - /* don't fail if just dev_pm_domain_attach failed */ > - ret = 0; > - } > + if (ret) > + goto out; > + > + if (drv->probe) { > + ret = drv->probe(dev); > + if (ret) > + dev_pm_domain_detach(_dev, true); > } > > +out: > if (drv->prevent_deferred_probe && ret == -EPROBE_DEFER) { > dev_warn(_dev, "probe deferral not supported\n"); > ret = -ENXIO; > -- Looks like this causes Linux next to not boot for me with device probes failing with error -17. So that's at least omaps, looks like kernelci has others failing too. Reverting for 8c123c14bbba ("driver core: Respect all error codes from dev_pm_domain_attach()") fixes the issue for me. Sounds like something is missing, any ideas? Regards, Tony