Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1846985imm; Sat, 18 Aug 2018 05:49:44 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzMLdZNLdKimYGIPYklDYBNW0AKMdGlOoXvXTjc1wmEfgOgjGdspNpVx/kiyma+uCZivXuE X-Received: by 2002:a63:f713:: with SMTP id x19-v6mr36180655pgh.233.1534596584256; Sat, 18 Aug 2018 05:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534596584; cv=none; d=google.com; s=arc-20160816; b=hIomCsHdEbbj5TEs+6PLUBBO4ZF+b8ZkOHCgNa+Me9aMICPwspmoG/YHK4BDP9/V9w 7UVDtxKybFy2OwwBZS7lGhhXYiMKzQXKITpLnAsOUmBA8hcG24jXuXoU7onbLFB3oXV+ 2S81Br5uK8h7Qer5h6dK75o5svNKUk/ksppAAWYka10sLtNSNH3NTjwer3uFYfS72qqg pbd7A5JvbxBZeaBKsiFEuHcgoCvseTBR7qDFEWcSublcmRX6WDPkPzms3T1AVieFYL2v jdWg5aOCEGEzB+XhpKy61i5zM/CmnOvZCJRakhjwFF4NJZn+bYO3dIElN1aVv6NXlT/G v/Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=1PLZDKX4y+nai0J8kxH8SIxT32iLq6KnPUhK0/HoziE=; b=j4cuIk/o6L3xou9ZAOpKfiGXUv0TfzazYcyhCnNb4If+Z33yquvanKqtysIPABs47o 0hFy8KwmStr5IWO4qAFE/QQBBNW4sFM2ypnZ0WxxCn5vRFZqQNtHQ54DUK/4R+VQXPVV JAX9EJ91Fsoa/1mSVoyXYF9XN+nzik3dNEvz4mnNDCTMH4ncZZrhhXZpvxXHqTiUShfJ t9r9vAuaC9XWitI/rG5a6YEO47Q6L98GpleEJxz+AzWVdBTh4pW4warU8reRcuXL9GdS hBNelNbu3IFFP2Zdl8C7DlgcLNpQ7nGbSbs65zXUNjL6cJNO49pdeDyqK57AaBWI+fhl 98fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=QewGjRzB; 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 w15-v6si5265627plk.508.2018.08.18.05.48.59; Sat, 18 Aug 2018 05:49:44 -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=@agner.ch header.s=dkim header.b=QewGjRzB; 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 S1726351AbeHRPxk (ORCPT + 99 others); Sat, 18 Aug 2018 11:53:40 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:59588 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725886AbeHRPxk (ORCPT ); Sat, 18 Aug 2018 11:53:40 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 841E35C11DF; Sat, 18 Aug 2018 14:46:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1534596362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1PLZDKX4y+nai0J8kxH8SIxT32iLq6KnPUhK0/HoziE=; b=QewGjRzBRn2eJITBAAYwxPMpscBnz/TbJqjKpYqquhDf4X1Xe8Ct5PDhXi83tpFdNXteph 9FPvncbNJhiSUFGO4dwevYWbHLeInDJRSI3Re4PvO3q2/KFAVt44OfvoHJ3EqAWrTrF0m5 0uU8f/caPXIOdvVQceDeD8hVsukAPK8= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Sat, 18 Aug 2018 14:45:47 +0200 From: Stefan Agner To: Marcel Ziswiler Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Boyd , Peter Geis , Marcel Ziswiler , Thierry Reding , Prashant Gaikwad , Peter De Schrijver , Jonathan Hunter , Michael Turquette , linux-clk@vger.kernel.org Subject: Re: [PATCH v2] clk: tegra: probe deferral error reporting In-Reply-To: <20180814091805.1363-1-marcel@ziswiler.com> References: <20180814091805.1363-1-marcel@ziswiler.com> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.08.2018 11:18, Marcel Ziswiler wrote: > 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 Reviewed-by: Stefan Agner > > --- > > 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");