Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp142850imm; Thu, 26 Jul 2018 00:32:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc2eZXZ/7EV4jd5iR+64t3qUfYzGDk2z8CB/ZBQGL072bZdMCuYX7zj/TZNpEH5aTb0+PT+ X-Received: by 2002:a17:902:864b:: with SMTP id y11-v6mr868409plt.335.1532590350024; Thu, 26 Jul 2018 00:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532590349; cv=none; d=google.com; s=arc-20160816; b=ifuYFjo+Vql6SMMQWcOB/L7TlelqTJfWw/wmy89bFLUuqh6PVuvzfiRSOAqCQWhEEz a05ydJyd1M4cUyCQS7BB5JaTNCLKHNi3oVSkX/lGfPy+vc/SP4UX0SQr4hTBNP7T5qks YSbkIeo0fqc066SEd13HWI4lCZmT3nlRp4IjuXr8AAjot6Z2eb5M/TjsDgbtbYg54ZLG /5rWjP8HvzS9+4VHw5+HJkrXwuGnL27mzRPloi8KTkHZ20VIfgzdcbX9BAURkaJaH5c4 y5KrwCj+iBzKlC8IjjPrMeW0cljFoSg9ZCFPNqJSFvjqd2qYtBUuzlqae87oINFHT5dW m+Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=nx/8oe4e4008ZKEIKuMb0k8wdBcHg4nr0clY3CIGDZc=; b=0lHmemjL8ddr+TvxxEP5RIdUA0VM/icU96Y17G15XMUmc8pwCZk/G355gcCFsB2h+B XMRYobI+Z/t5e6OgMFx6ceQNVcjaIHpV6KEGSeUm5CZC4svXq5q6LnROyj/uQMawLUvk 0ekEJaaAijCR0/VSqqUDeg5pWDGsLUc8TQk/HcSXByzTJ7k0+CvKDdYhSjvgPvbQJuKv jaT68ASz5uoH9Pv+r7GoBCColqmtja2PpMC7ycTJOYb7brb2GPdrvOqXOTlRitKBDrVS 7K8+SPTeGx6nyvI1uL1zhrXwJNIlLbi7pw9dFMbgd+W4OWbUZQ4KPzOHfDWBE0pXAdL9 Rw5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yaYTGkJr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8-v6si676478pla.35.2018.07.26.00.32.15; Thu, 26 Jul 2018 00:32:29 -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; dkim=pass header.i=@kernel.org header.s=default header.b=yaYTGkJr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728827AbeGZIqz (ORCPT + 99 others); Thu, 26 Jul 2018 04:46:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:57580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728547AbeGZIqz (ORCPT ); Thu, 26 Jul 2018 04:46:55 -0400 Received: from localhost (unknown [104.132.1.75]) (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 4F9FE20883; Thu, 26 Jul 2018 07:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1532590283; bh=YTt4Ti+XMXqNqX6Gav4Kf8NBmK8ci95gbpQEY9plqhQ=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=yaYTGkJrlnGpnFUNl2jw0m9NX/5DMgHfBMc3PzjP5izPyx+O6ZkKgNE/SKVviHfqj LL97aR7W85r25VvIS9CU5y9/q4axxEkO3iIgsCBRTv1GhVUliV4VWluwWVV7pKG28y 0PFl69pns1K7SJVQZLjMrH95nVLO7XG9eEDX0kZc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Marcel Ziswiler , Peter Geis , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org From: Stephen Boyd In-Reply-To: Cc: Marcel Ziswiler , Thierry Reding , Prashant Gaikwad , Peter De Schrijver , Jonathan Hunter , Michael Turquette , linux-clk@vger.kernel.org References: <20180720075422.26563-1-marcel@ziswiler.com> <153256109511.48062.12389268791907553857@swboyd.mtv.corp.google.com> Message-ID: <153259028259.48062.10565668407094066922@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH] clk: tegra: probe deferral error reporting Date: Thu, 26 Jul 2018 00:31:22 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Peter Geis (2018-07-25 16:42:34) > On 7/25/2018 7:24 PM, Stephen Boyd wrote: > > Quoting Marcel Ziswiler (2018-07-20 00:54:22) > >> From: Marcel Ziswiler > >> > >> Actually report the error code from devm_regulator_get() which may as > >> well just be a probe deferral. > >> > >> Signed-off-by: Marcel Ziswiler > >> > >> --- > >> > >> drivers/clk/tegra/clk-dfll.c | 5 +++-- > >> 1 file changed, 3 insertions(+), 2 deletions(-) > >> > >> diff --git a/drivers/clk/tegra/clk-dfll.c b/drivers/clk/tegra/clk-dfll= .c > >> index 48ee43734e05..b2123084e175 100644 > >> --- a/drivers/clk/tegra/clk-dfll.c > >> +++ b/drivers/clk/tegra/clk-dfll.c > >> @@ -1609,8 +1609,9 @@ int tegra_dfll_register(struct platform_device *= pdev, > >> = > >> td->vdd_reg =3D devm_regulator_get(td->dev, "vdd-cpu"); > >> if (IS_ERR(td->vdd_reg)) { > >> - dev_err(td->dev, "couldn't get vdd_cpu regulator\n"); > >> - return PTR_ERR(td->vdd_reg); > >> + ret =3D PTR_ERR(td->vdd_reg); > >> + dev_err(td->dev, "couldn't get vdd_cpu regulator: %d\n= ", ret); > > = > > Do you want to know that a probe defer is happening? Usually patches are > > sent to make that error path silent. > > = > = > Just asking as the newbie here, but shouldn't probe deferral be = > regulated to dev_debug? > Then pass any other error code as dev_err. Yes probe defer should be relegated to debug level prints. Or really, we should introduce a more complicated system to make debugging probe defer errors simpler by informing us which driver is probe defering on what resource by putting debug prints in each framework that returns probe defer errors instead of updating each driver that uses these frameworks and thinks it needs to print errors in these cases. And hide all that behind some kernel commandline parameter and/or Kconfig option that lets us turn the prints off all the time if we're not developing drivers or testing things.