Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1032546pxa; Fri, 28 Aug 2020 01:31:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0PZutTx6u7vjQJULfHv9SFHX6aDeLA/SmYIVuJO17XnIFnxyj2IlbRUxgzZtoEiHw41Ts X-Received: by 2002:a50:be82:: with SMTP id b2mr688278edk.303.1598603500158; Fri, 28 Aug 2020 01:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598603500; cv=none; d=google.com; s=arc-20160816; b=WyNZPPtfwAYdkmHuIS/0Qn0ad1FCDSaHPmd+0Z7K/E2WuN+0qcmrVeJZCpgO/U9RIv YYmbDaEGr++88nyhEFU+ltosKRaenROTdwX+0d2lyMq58gj9MMPUXsmvuuGo5I5vPg7q El5CBJjxbfVhgoX7V/U5M17d9ptJbY3FDxz19MCqKMiiUj1VcfxB/WBDeZCpQA72p2wk NAJzHXTNMM+Jd5ILWSCTEUwE3hOAKHkseiQW8eVTz53m+vhac2/n1u2zh3pOMvSpRB7h nlUk9q3l17Qwo7uavYrDNcc7rZ/r8fH3L50Mb28BlPDBFj/xfP6OJpYioc6x8MY6G2OC 0Igg== 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; bh=LflMgJmibSpFeOHc4WL2YJ+POCyG0pEvbGVH5SBOv0E=; b=un/ba9oV+8Nyr2UjR3OoIOyKZ/AZeBh5wgVWVZsAwXLPX9lhBik6kHndTp4x8t7r4o KC12+g1xahUbSSO4qYibGGzJfc54joPtPkuZoMGka7sxSZyyBD6DbLmNPVa5YbX1Y18H TAC5Au3YauplooZ+i2c8MD9hdym6UmgubowBv/yQBZGYKL1mHlibtxbddYBJo69rYvEX tYWCQQdo8ouJb0a178L5LRXqzfPE0YvDFbGllIpz3hg9TG/CCPtWaiYpg316FfPr4fDF EsQZYlLOC0e76jFCnSpmb1yD+1WJRGtM7Lb2WdYKNr3OKZmvVaNSaJ0TFHcAWsR4D2JB htiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sdCwCAI9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by29si131358edb.452.2020.08.28.01.31.17; Fri, 28 Aug 2020 01:31:40 -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=@gmail.com header.s=20161025 header.b=sdCwCAI9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728548AbgH1Iab (ORCPT + 99 others); Fri, 28 Aug 2020 04:30:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728269AbgH1Ia3 (ORCPT ); Fri, 28 Aug 2020 04:30:29 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4BB5C061264; Fri, 28 Aug 2020 01:30:28 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id j15so276766lfg.7; Fri, 28 Aug 2020 01:30:28 -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=LflMgJmibSpFeOHc4WL2YJ+POCyG0pEvbGVH5SBOv0E=; b=sdCwCAI9GltezF0rEB2fLfVxKx/8qRdfoKbbiRoFKxvVCYIkR3/N1t+zeTEEbig46m +Kyj/BDTYw6OGVtSPlqNjGOO+fv9AYhJPWBogZ4zZlmC2yxHp+dH2Ko7FVvt1wfQtAEJ C3EGMetrjmTC/sV3gobl9IyF5UkoeKSYqq3m2hVHVbaEPYOGuzFFd5jgWMxslMdgQGer 9+UFDbyhkm+yhdM7yCy9ywuHycOSmJv+CRYhHhUfXf/FoN7mgRZ9eqL8dvW5VmgrW/Oe mvL9YOYm9HUrthueMnVNdX9U8x9oc0gEqLz7mTAFACitArMxyd1dGhLSQEfC89ew0Qql tX3g== 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=LflMgJmibSpFeOHc4WL2YJ+POCyG0pEvbGVH5SBOv0E=; b=gCsHhKqohe0/MSCkH+0iFeWo2ANHY2pdneE5uK8GqO9Tbsr3R8wef5psDc4g5nwfjw iWBRHA0dxxQ1wJjYX+iQ6MTPpz767pDdzSQJ5D6FA3wteboI8Y6GCoPQ8BRuLBmG0q1J XEZABPxA14rT9Hx9lYY4EmV8HTtIyRd586HXQ+xv9FvGe46S7m6e8SPPXUsmAnJBKIXt 9bXGSt5Xxqu1oevArpUghSGEPU6lL1a5iq3sepx3G4bnsDEjzD6klEcpDjkPziULV1MC /743Z72sx6etFDifID3tr4yBCdhkfFn2zTLxMLhjBbRDXYv0sOr84aD9nWSMXx0VyCku Wyzw== X-Gm-Message-State: AOAM532+vJoP3yOfEk5DfzLdFC45gD4DMO8c6Xhh2QkH5Az26l5Qfts9 P/cM65bHlEosFoK17lVAsoKjO+Z91co= X-Received: by 2002:a19:24c2:: with SMTP id k185mr276673lfk.120.1598603426636; Fri, 28 Aug 2020 01:30:26 -0700 (PDT) Received: from [192.168.2.145] (109-252-170-211.dynamic.spd-mgts.ru. [109.252.170.211]) by smtp.googlemail.com with ESMTPSA id h6sm130676lfc.84.2020.08.28.01.30.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Aug 2020 01:30:25 -0700 (PDT) Subject: Re: [PATCH v5 13/36] PM / devfreq: tegra30: Use MC timings for building OPP table To: Chanwoo Choi , Thierry Reding , Jonathan Hunter , Georgi Djakov , Rob Herring , Michael Turquette , Stephen Boyd , Peter De Schrijver , MyungJoo Ham , Kyungmin Park , Mikko Perttunen Cc: linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org References: <20200814000621.8415-1-digetx@gmail.com> <20200814000621.8415-14-digetx@gmail.com> <1b0d75fe-79af-70eb-8450-999a3bc72bac@samsung.com> <1de8aa41-8001-cf46-026c-b00f8df0b9a3@gmail.com> <2a255211-5426-d78f-d266-cdb958f4c658@samsung.com> From: Dmitry Osipenko Message-ID: Date: Fri, 28 Aug 2020 11:30:25 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <2a255211-5426-d78f-d266-cdb958f4c658@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 28.08.2020 04:47, Chanwoo Choi пишет: > Hi, ... >> Hence the NULL-checking is unnecessary. >> >> When I first encountered the of_device_get_match_data(), I was also >> thinking that adding the NULL-checks is a good idea, but later on >> somebody pointed out to me (maybe Thierry) that it's unnecessary to do. > > OK. Thanks. > >> >>>> + >>>> + mc = tegra_get_memory_controller(soc_data->mc_compatible); >>>> + if (IS_ERR(mc)) >>>> + return PTR_ERR(mc); >>> >>> You better to add error log. >> >> In practice we should get only -EPROBE_DEFER here ever. I'll consider >> adding the message in the next revision, at least just for consistency. > > In order to handle -EPROBE_DEFER, recommend the using of dev_err_probe(). Hello, Chanwoo! Thank you for the suggestion! I wasn't aware about the dev_err_probe() until recently and will use this new helper in the v6! Thanks!