Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4186406ooa; Tue, 14 Aug 2018 02:20:25 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzU0jbcNM97DldgGd73Q/8W8sA+Lc/lZ1XscpGLR8UsVA+fTzCl++NbgB/4DaKijZsS/MIQ X-Received: by 2002:a62:642:: with SMTP id 63-v6mr22505219pfg.42.1534238425234; Tue, 14 Aug 2018 02:20:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534238425; cv=none; d=google.com; s=arc-20160816; b=pcIEB5MBwV4oBGviabZd5EeBhlpdOkM1NX9eI08iFWd95AqdCSOQ/vJc7iDIUuN8lp pI28dhY3RyW55Msu/EcP8zgoHBw2SQM5RN3SQ+7jLU5QfP1A91epgNKn9ERsuvww069j Z1TYMCDdEUb40CNUAwWuAInQ/FAxbvDWIxwvOrkGxGdbk7emRqb02kSQiymLwPDpImyz vySs6eml/QKzyPHAKugp/jyqHi1h2DYK9mg6JrHCjB88qIx4SWLklfrpncw0TKtdiCmz MePGNVDNRoJkwMavjmerAerd8sZB+Wjl8UITgqe3IXYjyUWWQnWEgFfyGUnDasTxKtyb PZ8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=NpEe+xLuMV4HiT/TKek+GuK19esn5FJbpd3lHAHy8lk=; b=nT6uG0NTDR1/h9paUvo4WazdIewJ3M8NwsCLyNQ1ji0aoIo40yLhZbyA0m9+F4ZpX7 9Y5jzVBLwIV5mfkOQPonPIY7AQ91ku8CIRQa+zIGjDap0tBqg96hDfQkfPsjOcsXocXa 5miyseS1F/6uN2EGk7ez45bXmz6p47gwPqZz1zgOk3t0+iJYO0U8vqAmxplRvtWEjP2W 9f44LnWQ+LuoA7j+ul4En7wtNlqgJgdLnTA4ybjHyXkENSLPr6f2xQJ+BDt1UqnimSAL G7ASYzBzfNy9GG5vQXFdevifD/lFOieds/8zb9SleI/wS2k7yudlLnvF0oQZMiNCLuVZ pyfg== 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 e10-v6si20366709pgm.94.2018.08.14.02.20.10; Tue, 14 Aug 2018 02:20:25 -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 S1731858AbeHNMEq (ORCPT + 99 others); Tue, 14 Aug 2018 08:04:46 -0400 Received: from mout.perfora.net ([74.208.4.196]:51107 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728101AbeHNMEq (ORCPT ); Tue, 14 Aug 2018 08:04:46 -0400 Received: from localhost.localdomain.toradex.int ([46.140.72.82]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPA (Nemesis) id 0LxdxF-1fvloe45X9-017EOD; Tue, 14 Aug 2018 11:18:12 +0200 From: Marcel Ziswiler To: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Stephen Boyd , Stefan Agner , Peter Geis , Marcel Ziswiler , Thierry Reding , Prashant Gaikwad , Peter De Schrijver , Jonathan Hunter , Michael Turquette , linux-clk@vger.kernel.org Subject: [PATCH v2] clk: tegra: probe deferral error reporting Date: Tue, 14 Aug 2018 11:18:05 +0200 Message-Id: <20180814091805.1363-1-marcel@ziswiler.com> X-Mailer: git-send-email 2.14.4 X-Provags-ID: V03:K1:leenUwfY9zhx3LVhmjRRrp/MfI2wtTLbSrxBmwWW/rP8KfUahMt tQZNiI6j2J0Jpe//yiJDCQO/iYWucnAm2xO7lcEeFMClmgGhML6RDFNIOKbtSkBBV6S6Seh leMt4JOw6inGaOyyNQHftYkvf9c2hrtigpn1L/5gYHlua8Dk8O9WsfSIBsE5C0zoyzJoA0J hkQi44Cje3+45BOELY85w== X-UI-Out-Filterresults: notjunk:1;V01:K0:QUqMc7+8G4M=:apF1MNPIQLA9uAFFUsLW/4 kehhrh9TJYgG72q/9EMCFZKRqIbxJehqfVkTgTMdlErbH8wD5mHrNe4jGdl433pCdYPvjz8vG 5gjive/oNou17TWw7KsBS5PrzFETP+RmefLRxQtGJ5wdTOSfXx3G/45QpSQJMKMmxGtZvXNc0 7Kuvbz7EuNRbsQ7GUQvik2cVPepYW6rp4asg14v8rltp0jjxuvGsrvpxhdgbDKkAmTxWQzfWz 7iEsXWS2ojwgDX31NbG/uCcd+iVLlThyK8FugVe8592ogl8+9s/ROwt0L42sFeZT6eT+sy2zF Z9F2lzvsz5SxocgO5glSzmwc8Id1CNFy7mmPjEwaIq6opD+rZeh3+d/M+wo7MqbAjK6iCZhvt WKQgNpkOCerD3uj6xSKO0wxMXCnkgdWDUdYHQCAyAdA7WoEWieUluNkyAFwVeh5FC8iLbDUkf dkwJSoegl3swRqymvzB/Y7Dj0oPrDNzXheO6wwAYBDjM7gv/jJq0ciUhEAjXyIci+vN+g4ZrC +sMYyrNXqTApIhmM3+S6UcIL3U/Iwj4VElmIfM95fAu9fDBnTLWqBo6kpg+SfN6CAjABerSu+ aDnvh8VppAfcSQVM0xzsUbgoj1d5GogSzbNTyQjoIVzMJtRSANoi9NbZb2tvFfezOI/c0frvZ dqi4ZPT1t7HkybSHR6mO1jMcupaGLJSGsYnn28uD0vi6Xs9jenuI1jWDwbFC+i4UqwW4= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Changes in v2: - Silence probe deferral as discussed between Peter, Stefan and Stephen. - Fix line over 80 characters as reported by checkpatch. drivers/clk/tegra/clk-dfll.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/clk/tegra/clk-dfll.c b/drivers/clk/tegra/clk-dfll.c index 48ee43734e05..ebb0e1b6bf01 100644 --- a/drivers/clk/tegra/clk-dfll.c +++ b/drivers/clk/tegra/clk-dfll.c @@ -1609,8 +1609,12 @@ 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); + if (ret != -EPROBE_DEFER) + dev_err(td->dev, "couldn't get vdd_cpu regulator: %d\n", + ret); + + return ret; } td->dvco_rst = devm_reset_control_get(td->dev, "dvco"); -- 2.14.4