Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1071714ybt; Wed, 1 Jul 2020 18:03:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDsXmbcTnty5BAtYz9I1O1kFz1+mLmoLwjM3xJO20ko8jPLcbb/DPQPS9LCl0P8g1nhXvi X-Received: by 2002:a05:6402:1b0e:: with SMTP id by14mr31051022edb.266.1593651834772; Wed, 01 Jul 2020 18:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593651834; cv=none; d=google.com; s=arc-20160816; b=I71GdMKV68CJjzRDkCzBlBw59p50BPhUUZMCtSJgQ8Ja/3HjpPnoO/B1HHEaFdHMwI eO3dvJh+F8ferOgXO+Fdn+QpEV6/PEDucFjs9mmqHVF8DpSzSI4ta5RTyGMYYS+A6Ejc RIy7vi+oCP2qRkTLX/AJ7zf6w2xA3vyYDgKvA87rpb/v+x7E+dtVWyFFSFhIoIZ+o0jB FZwjv95YXMr3J7KnROmzctrfTXPJp/zhhd0V6duN14BOsqK1M7q71FnTsCeQnx1oKTCQ 9K0wZprCA+VGm+ZOBFXfiM9EvtBl0C3hFAYyMfmoHaP2o6eWuu7K5tULqhyUTpIkMraM tpHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=RsDj3CoPR1c7on0/7kkXlT3fnQEAu+pB1kuzaD759NE=; b=WhxYvdqeD4Fx5F8NDFUlsEaLEVVOo5+uKQpLwqgcdSK+9+fWz6SwIf+uVfn2dUlsd2 VnhK2axv30yNKoTynEM/ZOplp+f70GW836aKc3UlF1in1mx5ccvylL1SG87KNO0pO1ZM hec879UCuHSX6KaS/nlJr5m4DNSvOwTs+FiXp/VxpGN96T+u+cyXIfOlukhL/WmVvP3m YTLULAQt8k5FqTvOF3EDRYcZoB2H5NL1MTYaCdlbmNwisFh+m8vLrxL0QUngABQfaXRE JM4V3xyGngyiHCWrk60nesfvk/VYV26jsx70M1AuB/QONxBkpWynDqgiXlbmr3anqGsO 2XOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sPZuY5Gr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn12si6052383ejc.287.2020.07.01.18.03.31; Wed, 01 Jul 2020 18:03:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sPZuY5Gr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728070AbgGBBB1 (ORCPT + 99 others); Wed, 1 Jul 2020 21:01:27 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:30235 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728014AbgGBBBW (ORCPT ); Wed, 1 Jul 2020 21:01:22 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20200702010120epoutp017be7b30f57f7116f23543e842a5ae45c~dycJxAcnK0044600446epoutp01F for ; Thu, 2 Jul 2020 01:01:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20200702010120epoutp017be7b30f57f7116f23543e842a5ae45c~dycJxAcnK0044600446epoutp01F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1593651680; bh=RsDj3CoPR1c7on0/7kkXlT3fnQEAu+pB1kuzaD759NE=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=sPZuY5Gr2LXvyOGauwcUcac938YcV204WwXoVlVKbdP+2Cjc9dapQoPaY9lhpa4vM qODIMLAB1uJePTlfKieSXnlYnbYeLs4ES6PckLquMgucZCecx8Fy386keiicWYtyu5 WxdSeqFvhPZUzYCUycQ5vyT1eBIEqUSti2zEMTD8= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20200702010119epcas1p4473b8c2187f17e0a003511635d125d6a~dycJCKZMZ2585225852epcas1p4_; Thu, 2 Jul 2020 01:01:19 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.158]) by epsnrtp3.localdomain (Postfix) with ESMTP id 49y0Cc3WppzMqYkZ; Thu, 2 Jul 2020 01:01:16 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 4B.BF.18978.CD13DFE5; Thu, 2 Jul 2020 10:01:16 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200702010116epcas1p1e610a393c91c8ceff1bb7ed3c0ce0a42~dycGBJOBJ3155831558epcas1p17; Thu, 2 Jul 2020 01:01:16 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200702010116epsmtrp1944739d7de34b50d28a2b175ea2d2f01~dycGAMQT40320003200epsmtrp1O; Thu, 2 Jul 2020 01:01:16 +0000 (GMT) X-AuditID: b6c32a35-603ff70000004a22-33-5efd31dc51a9 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 6E.F3.08382.BD13DFE5; Thu, 2 Jul 2020 10:01:15 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200702010115epsmtip21e1e4d6e06ba114440f6dab9770a9626~dycFrcvq-0995009950epsmtip2j; Thu, 2 Jul 2020 01:01:15 +0000 (GMT) Subject: Re: [PATCH v4 15/37] PM / devfreq: tegra30: Add error messages to tegra_devfreq_target() To: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Georgi Djakov , Rob Herring , Michael Turquette , Stephen Boyd , Peter De Schrijver , MyungJoo Ham , Kyungmin Park , Mikko Perttunen Cc: =?UTF-8?B?QXJ0dXIgxZp3aWdvxYQ=?= , linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org From: Chanwoo Choi Organization: Samsung Electronics Message-ID: <1d11b08f-eed5-ece1-462d-b18151e65777@samsung.com> Date: Thu, 2 Jul 2020 10:12:31 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <20200609131404.17523-16-digetx@gmail.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAJsWRmVeSWpSXmKPExsWy7bCmru4dw79xBl2bpCzuz2tltHj36Smr xfwj51gtVn98zGhx5et7NovpezexWbTMWsRicbbpDbvF5V1z2Cw+9x5htOj8MovN4uIpV4vb jSvYLCatncpo0br3CLvFv2sbWSx+7prH4iDo8f5GK7vHzll32T0unfvD7LFpVSebx51re9g8 7ncfZ/LobX7H5tG3ZRWjx+dNcgGcUdk2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6hpYW 5koKeYm5qbZKLj4Bum6ZOUC/KCmUJeaUAoUCEouLl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EV0DAAA= X-CMS-MailID: 20200702010116epcas1p1e610a393c91c8ceff1bb7ed3c0ce0a42 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200609131710epcas1p218e720c23ae62ecf4a6f6727854d93f0 References: <20200609131404.17523-1-digetx@gmail.com> <20200609131404.17523-16-digetx@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/9/20 10:13 PM, Dmitry Osipenko wrote: > It's useful to now when something goes wrong instead of failing silently, > so let's add error messages to tegra_devfreq_target() to prevent situation > where it fails silently. > > Signed-off-by: Dmitry Osipenko > --- > drivers/devfreq/tegra30-devfreq.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c > index 13f93c6038ab..a03fb16c5c4c 100644 > --- a/drivers/devfreq/tegra30-devfreq.c > +++ b/drivers/devfreq/tegra30-devfreq.c > @@ -641,12 +641,16 @@ static int tegra_devfreq_target(struct device *dev, unsigned long *freq, > dev_pm_opp_put(opp); > > err = clk_set_min_rate(tegra->emc_clock, rate * KHZ); > - if (err) > + if (err) { > + dev_err(dev, "Failed to set min rate: %d\n", err); > return err; > + } > > err = clk_set_rate(tegra->emc_clock, 0); > - if (err) > + if (err) { > + dev_err(dev, "Failed to set rate: %d\n", err); > goto restore_min_rate; > + } > > return 0; > > Acked-by: Chanwoo Choi -- Best Regards, Chanwoo Choi Samsung Electronics