Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4375634pxk; Wed, 30 Sep 2020 00:53:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0BQyFXqe+JaXGVALCounLHCLIY9ujTtdM9kBI7LW6gL3rYaLUCvRpY/qq6hy4tNLj970m X-Received: by 2002:aa7:c693:: with SMTP id n19mr1390843edq.101.1601452425230; Wed, 30 Sep 2020 00:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601452425; cv=none; d=google.com; s=arc-20160816; b=Y/y+lG0F07zZ5JilccXepHxEw74Z93llnCzZtf8xxuAjbGv19HZAYApupYFMB24/Dl aNT7nytHpJWF1hKM2EBkLkEj1tqdZ8GZZ/dQZ4x9u395uMNjJUXW819Bsv9aEsf+Ez14 yf1EouGo1bxdzBtsJyUbmhIP3xP6Mdg62kLjtpRo6puyz4uRdxKScMzzUpxOLPa4UReF De72wSWhpwDjr87T/swiyb91/ja3SyQxAtLypc5l9gQ6tRumx0cIIaE+92dkECBY7Wqx 9WZOVQzQ6WIO3hN2LWvxpybLVmhMUTkxAbkfio+4sELzcRjiIxcPmCNaIJT8Q9odEZUx TlVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=983WVZqzZnyDMjhHEZR8u0lT4mQqJEnFkrfF5z16ZhA=; b=eKvyAPG0zKBLIbSQccA5P7d3NGLA53JQJXMUjFgoGAe1ZI4d1GmmloPnS9yRE3kAmL 8ErgvtT7RO9L/70/y4JijPffQ7ZiSPmfUE2onuKtN0B4T6u0+1Pc9n/un+UQjs90oEsD O8+we/tcMq87q+GSKTViwG9i9lzJpfTH82rCsBpr86jbCiVgkdNm3uq0Spo2xCfe9aqt M3sVcmr5Wn7jEyCEioylmQkkeGXp2dh0ZKUpo2ceQZjCZpZzYjJze79r2C+OVVWzLw5J QXvIWyjIG4C0izpyWztyYPJDxW85TBvpwkQAXNG1+uog/NcIYlMNVUIfo0x0dn5Wg8w6 ZN/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ezIfisKv; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y25si614407ejb.231.2020.09.30.00.53.22; Wed, 30 Sep 2020 00:53:45 -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=@kernel.org header.s=default header.b=ezIfisKv; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725823AbgI3HuR (ORCPT + 99 others); Wed, 30 Sep 2020 03:50:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:39910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgI3HuR (ORCPT ); Wed, 30 Sep 2020 03:50:17 -0400 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 187C8207F7; Wed, 30 Sep 2020 07:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601452216; bh=XMkG4CRcSUmqrUkqWbqF30W5YmNW2OrB0+Qepd8DgkA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ezIfisKv6W2CuL3d1P6dUrGxSfaaZ77FNyLgngc/wgfBnBHUp4z17ymWQqLbb2RFo yady0QyoiSFBjL/Kk5zpqKPWJhVtL0vQDMOCakmOeCkakOu8N1Jp3G1Fpr6lymgyEy l68H5s4ghX2qOA8r2Ki6tzj4/jXvx40k66tCs2ds= Received: by mail-ej1-f41.google.com with SMTP id u21so1419378eja.2; Wed, 30 Sep 2020 00:50:16 -0700 (PDT) X-Gm-Message-State: AOAM532BiByiBqyOu3eOJMmZPDzH6lJ/WTGheB8zvGKFghAILGGfe2XG FpZ13XcmqfVToen2ELPrVJQOnhh54pzZADeGThw= X-Received: by 2002:a17:906:491:: with SMTP id f17mr1507972eja.454.1601452214499; Wed, 30 Sep 2020 00:50:14 -0700 (PDT) MIME-Version: 1.0 References: <20200930003013.31289-1-nicoleotsuka@gmail.com> <20200930003013.31289-2-nicoleotsuka@gmail.com> <20200930072542.GC13876@Asurada-Nvidia> In-Reply-To: <20200930072542.GC13876@Asurada-Nvidia> From: Krzysztof Kozlowski Date: Wed, 30 Sep 2020 09:50:03 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/3] memory: tegra: Add helper function tegra_get_memory_controller To: Nicolin Chen Cc: thierry.reding@gmail.com, joro@8bytes.org, digetx@gmail.com, vdumpa@nvidia.com, jonathanh@nvidia.com, linux-tegra@vger.kernel.org, iommu@lists.linux-foundation.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 30 Sep 2020 at 09:31, Nicolin Chen wrote: > > Hi Krzysztof, > > On Wed, Sep 30, 2020 at 09:21:39AM +0200, Krzysztof Kozlowski wrote: > > On Wed, 30 Sep 2020 at 02:35, Nicolin Chen wrote: > > > > > > This can be used by both tegra-smmu and tegra20-devfreq drivers. > > > > > > Suggested-by: Dmitry Osipenko > > > Signed-off-by: Nicolin Chen > > > --- > > > > > > Changelog > > > v1->v2 > > > * N/A > > > > > > drivers/memory/tegra/mc.c | 23 +++++++++++++++++++++++ > > > include/soc/tegra/mc.h | 1 + > > > 2 files changed, 24 insertions(+) > > > > > > diff --git a/drivers/memory/tegra/mc.c b/drivers/memory/tegra/mc.c > > > index ec8403557ed4..09352ad66dcc 100644 > > > --- a/drivers/memory/tegra/mc.c > > > +++ b/drivers/memory/tegra/mc.c > > > @@ -42,6 +42,29 @@ static const struct of_device_id tegra_mc_of_match[] = { > > > }; > > > MODULE_DEVICE_TABLE(of, tegra_mc_of_match); > > > > > +struct tegra_mc *tegra_get_memory_controller(void) > > > +{ > > > > Add kerneldoc and mention dropping of reference to the device after use. > > I am abort to use Dmitry's devm_ one in my next version: > https://github.com/grate-driver/linux/commit/2105e7664063772d72fefe9696bdab0b688b9de2 > > Could I just skip the kerneldoc part? Otherwise, would you please > tell me which kerneldoc file I should update? His version is almost the same as yours so it does not matter - you declare an exported function, so you need to document it. kerneldoc goes to the C file. https://elixir.bootlin.com/linux/latest/source/Documentation/doc-guide/kernel-doc.rst Best regards, Krzysztof