Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1363738imm; Wed, 25 Jul 2018 17:01:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd3AvM2k4EFOJEU+/oHwhR+rC3Xvr3wIgkQG8q5+48Xj0/hlACKGPeYsonggalvatREfuzy X-Received: by 2002:a62:bd4:: with SMTP id 81-v6mr24237506pfl.67.1532563300275; Wed, 25 Jul 2018 17:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532563300; cv=none; d=google.com; s=arc-20160816; b=oYkcP/LhDR4NCEG3YH1BbyiMVIG91vC2IGsLPxQgxXh+9MOmJRp3NAvXWsnCo3Ljek xWYZOd8PwMiGSJCM8D/gGC/JYFkBQ93RO4BPsgEIkatpDzNTSy6OKjoxQJtr+RBWdeIT 0mWDVzBS6j3GiZAY/cIIAfJiGxP7y1/ojqfpaiTs06NisIdKumd+a0Wg1qwA8lcaTgQK kXhJPKaNHZL8ezuXyGI4xOPrHqn8kUypBrwanG1tlxtEg1gk+XiLxGLSFiEZDGcp9XR/ RyWSVYfUwMJW9VCXsceVBi945LYge0At4qZ4g/AxHVf7GvJ/BCo3laDBrRHHyp/5FaPH jcnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=nEvVcADHpiAg2OUTdEkjeUfDQlmgdPyL35NL5TnrHSo=; b=QSMmBsexeG+RDw4/P1AwDK/I9SWoKalnJI0vhLuwoQUSWJQM2KvNsnO2mJrT3/IN+U 6Y8P8xqfE/Dmfo/Oc1tFxQ+HN4l/BAc0z0b15rsVPgyZrO5rJBh6Ke0vQhOFZ53JIdwm k2Rw1gCyOaguIQorMQ8DGa5X/kAtP6RL7/qL8R8B7Mc7QvZ853TjJRiG8+LZvRtafX45 5+C44zVZXnrC2DgY8PqycP1Ma8nz/5Zi/XhGjgi3lNVeigd1nnhS6CNX+bt1N8te593y UI+zk9/LMUtaVgKDAsJBvPXvUiYQB9erL6ckDpq9XrJtIjXLM3o/qiNIXepbFImn8VtK CnDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DERTFpYO; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v28-v6si14820915pfi.22.2018.07.25.17.01.25; Wed, 25 Jul 2018 17:01:40 -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=@gmail.com header.s=20161025 header.b=DERTFpYO; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731861AbeGZA4j (ORCPT + 99 others); Wed, 25 Jul 2018 20:56:39 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:38183 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731447AbeGZA4j (ORCPT ); Wed, 25 Jul 2018 20:56:39 -0400 Received: by mail-qt0-f195.google.com with SMTP id y19-v6so9466476qto.5; Wed, 25 Jul 2018 16:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=nEvVcADHpiAg2OUTdEkjeUfDQlmgdPyL35NL5TnrHSo=; b=DERTFpYOg+3H3K/FkhgvYBlDuNM+dKX+CDlxRhLIR++BJx7QdCQGeUSpcvyzDLGYOf uVrPejqn0jZN5P7vHg+sFXC3wv/Zs7RLLy0VB/EdPNgbB73w3UBb0+3ZBDhv7qC+EFDt UEO7ZS2oig/mChUplIwvrMQA9RuB+wT/nQebXx1r9O6+chdXLHy4kztTXhjsgmf3aRov GbbJkPNC7ODG3py0C7v8MhHO9YHpeQl2fmuiFzaUyCX//vpUsM64I7Ip4TNoosYxrd6q simjaackAC6IYZY1Kg5rxj5HCdvft5u5KFQ/Bkch1eU87AghsdRZegfZ32bXnaquNEbR rF9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=nEvVcADHpiAg2OUTdEkjeUfDQlmgdPyL35NL5TnrHSo=; b=j7AAnR2dCRxlWy5jlqBFK3nKHIS+0f2FCPVd+1HefRuL0RxJXkaJ5s2KWcpBHAClCO YbhXkPYhoiaGP6mbRpaPZk2mjaNKcseYfr+84Ic95p5JPF0DDZtiyYKZP2vZSRRxPAsa kIUtn9GRGYux76+fiZbPT8P9Y4P/wCTMhxWPjebB/uxDVz3c7B3w/WtecURraCCgLnlH o9YPOQsQv25ZfnWtmDovAKgaS3gZYLgsO2GhYvF8mYqfK+GV/cjJZj//Ywz0loKBca8V qE0/Jjkqx3yPfMlOipNf/NBsFDqhnRY/GM6nif0+INURufPJjY+brQsghP01nUDUG4rQ iC7A== X-Gm-Message-State: AOUpUlHAU3nZ3fA8x989PHY7UDxWstYBx+v75RXOjTM74vbr4BmohZPW 1D/6cqL+A/SXVLhY5YeV9JAgqRMKatUXbQ== X-Received: by 2002:ac8:23ed:: with SMTP id r42-v6mr22334571qtr.392.1532562157393; Wed, 25 Jul 2018 16:42:37 -0700 (PDT) Received: from ?IPv6:2601:153:601:7d2a::1008? ([2601:153:601:7d2a::1008]) by smtp.gmail.com with ESMTPSA id a17-v6sm11235214qkb.62.2018.07.25.16.42.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 16:42:36 -0700 (PDT) Subject: Re: [PATCH] clk: tegra: probe deferral error reporting To: Stephen Boyd , Marcel Ziswiler , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org 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> From: Peter Geis Message-ID: Date: Wed, 25 Jul 2018 19:42:34 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <153256109511.48062.12389268791907553857@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = 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 = 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.