Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp122388pxb; Tue, 10 Nov 2020 22:21:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsMzyf28xZDc7tAAADH9tGRsROD1QXckP9DKuz805lJfueXvmjXHBfAc4Kq2TpioyqH2x4 X-Received: by 2002:a17:906:1f86:: with SMTP id t6mr23177886ejr.356.1605075691505; Tue, 10 Nov 2020 22:21:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605075691; cv=none; d=google.com; s=arc-20160816; b=Go1W+Bx+ahHRxKzcOJHjOmPALhq62ZMwSYJ2ykVeNeH9Mtm2V22b4d3+AoddGl1p9z uHtFZJ5viA5FrR9Nw1LARXtOjBGzGaYayTMxvAL+2/5nzEG9wPlWp4GLM3D1HK7WZEc9 RDbmJskxXu6ke4X9Cex1FMr1Zjjm1p7gXexT3Ae2QSCCZo7LRWFrc1BmV425ochEFgXc uOQJLz/xlUFXzNuLjWjFMjNuZTOQOWV7hr36/Oe9fu9V5EYV3MzEifJe4/uQBVc3/fO3 6aRWSeW9GC5boYqdrMVADvI/pU4TjLIUmj1clyboKAx7bAXXcK+qHvOGv5ksSIxMqzsj p7rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Zz+u4O/ExV+I0XfrOYfMwrWHftV4MOlXgA3EL9hIHsg=; b=nnEKgoCA8DVuNfyz98swJaoxoIeGuF2815sMmstK2uVErsEB+Ovrreoz8GMyfl0INt ZSqVc55bsxmOoJ+oPp7NiEwIM7fApF3nArv2wHrHMHy0Pym1YiymotZEPrC/4/3BnmBZ xOWyR8/WVG/nGdCqAxW6vOcZryYKpNx+/gTawp+JT4RRM7pIIavcpHgcRB6ORv3gCWBr XUkB4FPJqFk8FOM/+IblqIm1OXuVTpo1oHt7kYUoH1jXAd/5xXFoj5jFFD36HLmaqrZ9 7Oa6QMThsKJRZSaFIAr558BmXxdxWD7XT++WZ6wm3BU128cFSEl9j13IIg10jIpHxUpj aFcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pw4a1V3n; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si687426ejv.487.2020.11.10.22.21.08; Tue, 10 Nov 2020 22:21:31 -0800 (PST) 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=@linaro.org header.s=google header.b=Pw4a1V3n; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725986AbgKKGTA (ORCPT + 99 others); Wed, 11 Nov 2020 01:19:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbgKKGTA (ORCPT ); Wed, 11 Nov 2020 01:19:00 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 548E5C0613D6 for ; Tue, 10 Nov 2020 22:18:58 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id y22so444996plr.6 for ; Tue, 10 Nov 2020 22:18:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Zz+u4O/ExV+I0XfrOYfMwrWHftV4MOlXgA3EL9hIHsg=; b=Pw4a1V3nK4X2DgxHAQTdRmNKbd1BmJuxzNI33tTM8sIXZTP8qajX3ww4DaPPdFo6Zs 5K09iJmEHBSCQeWWkFgm1Kdw94Lntwqu29hIgeB9q5TcfhzffDjNRF91zjtINBTnbBau fTjqe//5KYelMUFY+/ziAiHibl5AyvjTV+nKbiI3UNVy4omo3Z0iw25Yu0f3sGCVv13Q RfsqZ11ODtWL/A6yfCI8eBLJ3ndC1X9lI1YrBO+uIvqt1xHD4VEkDElC5Txxt+/arELA eTxq92w5zzdCAnEdx70ezELIxdZfJQKNBEMXwxTWa1u/BMYHRGpcWR9hIm0FaCV9vG3f IRbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Zz+u4O/ExV+I0XfrOYfMwrWHftV4MOlXgA3EL9hIHsg=; b=cKBdf0TEcfWW7t9ryUhSOqDHY3kzhxQ49YI8E/zrKkKHZuYmsQJg8MTLFEp3wMRgJX roFVjmmnD9lAbyByvf37LmqL24FFSthG+W76+C4+X1J96PT3RQnAfcGfuD/9coyJyRyI iVVO96CtXcsjWOaP8avyPMpKxjl6yl1MmaYMyBeoKcBhdhEs6zsEVWFCjIAes4hoA6Pr gSoq5OuKTc2nexI0uP6uVO6OmIPCGbSlTm2xv0+6Q5AjWXUQyI6F2jM5KIoKXkKvHP45 4XEbN5RGqO5Xzj/ybISSaDW6mDuZwzOdcucZ5FBcVdXtPdN+SBddtIJhPRG6roY02ZrL vWSw== X-Gm-Message-State: AOAM531JWMq1BQO18NWvOcNIut1ImPkGXAuvGuJC/0hZNmRDMAqn+PjV L4txBauSOewOy2Fy6R5gttRxeA== X-Received: by 2002:a17:902:59cf:b029:d7:e216:9260 with SMTP id d15-20020a17090259cfb02900d7e2169260mr11119815plj.74.1605075537774; Tue, 10 Nov 2020 22:18:57 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id j19sm1091459pfd.189.2020.11.10.22.18.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2020 22:18:57 -0800 (PST) Date: Wed, 11 Nov 2020 11:48:55 +0530 From: Viresh Kumar To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Georgi Djakov , Rob Herring , Michael Turquette , Stephen Boyd , Peter De Schrijver , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Mikko Perttunen , Viresh Kumar , Peter Geis , Nicolas Chauvet , Krzysztof Kozlowski , linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v8 09/26] memory: tegra30: Support interconnect framework Message-ID: <20201111061855.2azilyhfoxwzpoir@vireshk-i7> References: <20201111011456.7875-1-digetx@gmail.com> <20201111011456.7875-10-digetx@gmail.com> <20201111055313.tefidnmc7f4yb3jk@vireshk-i7> <185e9140-fdce-29ef-68c3-aa7da02b249d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <185e9140-fdce-29ef-68c3-aa7da02b249d@gmail.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11-11-20, 09:14, Dmitry Osipenko wrote: > 11.11.2020 08:53, Viresh Kumar пишет: > >> +static int tegra_emc_opp_table_init(struct tegra_emc *emc) > >> +{ > >> + struct opp_table *reg_opp_table = NULL, *clk_opp_table, *hw_opp_table; > >> + u32 hw_version = BIT(tegra_sku_info.soc_speedo_id); > >> + const char *rname = "core"; > >> + int err; > >> + > >> + /* > >> + * Legacy device-trees don't have OPP table and EMC driver isn't > >> + * useful in this case. > >> + */ > >> + if (!device_property_present(emc->dev, "operating-points-v2")) { > > I don't understand why you want to check this ? The below call to > > dev_pm_opp_of_add_table() will fail anyway and that should be good for > > you. > > > > The dev_pm_opp_of_add_table() will produce a error message which doesn't > give a clue about what's wrong, i.e. that device-tree needs to be updated. If you think that you need to print something more, then you can do that in the error message you print when dev_pm_opp_of_add_table() fails. I would suggest to drop this redundant check here. -- viresh