public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Bolle <pebolle-IWqWACnzNjzz+pZb47iToQ@public.gmane.org>
To: Tomeu Vizoso <tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Mikko Perttunen <mikko.perttunen-/1wQRMveznE@public.gmane.org>,
	Mikko Perttunen
	<mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>,
	Thierry Reding
	<thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Alexandre Courbot
	<gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Joerg Roedel <jroedel-l3A5Bk7waGM@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v7 11/18] memory: tegra: Add EMC (external memory controller) driver
Date: Thu, 12 Mar 2015 09:04:14 +0100	[thread overview]
Message-ID: <1426147454.5304.9.camel@x220> (raw)
In-Reply-To: <1426070126-26910-12-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>

On Wed, 2015-03-11 at 11:34 +0100, Tomeu Vizoso wrote:
> --- a/drivers/memory/tegra/Kconfig
> +++ b/drivers/memory/tegra/Kconfig
> +
> +

(Nit: just one empty line, please.)

> +config TEGRA124_EMC
> +	bool "Tegra124 External Memory Controller driver"

This patch adds a bool symbol...

> +	default y
> +	depends on TEGRA_MC && ARCH_TEGRA_124_SOC
> +	help
> +	  This driver is for the External Memory Controller (EMC) found on
> +	  Tegra124 chips. The EMC controls the external DRAM on the board.
> +	  This driver is required to change memory timings / clock rate for
> +	  external memory.
> \ No newline at end of file

(Another nit, reported by git.)

> --- a/drivers/memory/tegra/Makefile
> +++ b/drivers/memory/tegra/Makefile
> @@ -5,3 +5,5 @@ tegra-mc-$(CONFIG_ARCH_TEGRA_114_SOC) += tegra114.o
>  tegra-mc-$(CONFIG_ARCH_TEGRA_124_SOC) += tegra124.o
>  
>  obj-$(CONFIG_TEGRA_MC) += tegra-mc.o
> +
> +obj-$(CONFIG_TEGRA124_EMC) += tegra124-emc.o

... and tegra124-emc.o will never be part of a module ...

> --- /dev/null
> +++ b/drivers/memory/tegra/tegra124-emc.c

... so:

> +#include <linux/module.h>

- I guess linux/module.h is not needed;

> +MODULE_DEVICE_TABLE(of, tegra_emc_of_match);

- this macro will be preprocessed away;

> +static int tegra_emc_probe(struct platform_device *pdev)
> +{
> +	[...]
> +
> +	platform_set_drvdata(pdev, tegra);
> +
> +

(Nit: this adds two empty lines.)

> +	return 0;
> +};

> +MODULE_AUTHOR("Mikko Perttunen <mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>");
> +MODULE_DESCRIPTION("Tegra124 EMC memory driver");
> +MODULE_LICENSE("GPL v2");

- and these three macros will be, effectively, preprocessed away,

  parent reply	other threads:[~2015-03-12  8:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-11 10:34 [PATCH v7 00/18] Tegra124 EMC (external memory controller) support Tomeu Vizoso
2015-03-11 10:34 ` [PATCH v7 01/18] clk: tegra124: Remove old emc clock Tomeu Vizoso
2015-03-11 10:34 ` [PATCH v7 02/18] of: Document long-ram-code property in nvidia,tegra20-apbmisc Tomeu Vizoso
2015-03-11 10:34 ` [PATCH v7 03/18] soc/tegra: Add ram code reader helper Tomeu Vizoso
2015-03-11 10:34 ` [PATCH v7 04/18] of: document new emc-timings subnode in nvidia,tegra124-car Tomeu Vizoso
2015-03-11 10:34 ` [PATCH v7 05/18] of: Document timings subnode of nvidia,tegra-mc Tomeu Vizoso
2015-03-11 10:34 ` [PATCH v7 06/18] of: Add Tegra124 EMC bindings Tomeu Vizoso
2015-03-11 10:34 ` [PATCH v7 09/18] ARM: tegra: Add EMC timings to Jetson TK1 device tree Tomeu Vizoso
2015-03-11 10:34 ` [PATCH v7 10/18] memory: tegra: Add API needed by the EMC driver Tomeu Vizoso
     [not found] ` <1426070126-26910-1-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-03-11 10:34   ` [PATCH v7 07/18] of: document external-memory-controller property in tegra124-car Tomeu Vizoso
2015-03-11 10:34   ` [PATCH v7 08/18] ARM: tegra: Add EMC to Tegra124 device tree Tomeu Vizoso
2015-03-11 10:34   ` [PATCH v7 11/18] memory: tegra: Add EMC (external memory controller) driver Tomeu Vizoso
     [not found]     ` <1426070126-26910-12-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-03-12  8:04       ` Paul Bolle [this message]
2015-03-11 10:34   ` [PATCH v7 14/18] memory: tegra: Add debugfs entry for getting and setting the EMC rate Tomeu Vizoso
2015-03-11 10:34   ` [PATCH v7 16/18] ARM: tegra: Add EMC timings to Nyan Big device tree Tomeu Vizoso
2015-03-11 10:34   ` [PATCH v7 17/18] ARM: tegra: Add EMC timings to Nyan Blaze " Tomeu Vizoso
2015-03-11 10:34   ` [PATCH v7 18/18] memory: tegra: Disable ARBITRATION_EMEM interrupt Tomeu Vizoso
2015-03-11 10:34 ` [PATCH v7 12/18] clk: Expose clk_hw_reparent to providers Tomeu Vizoso
2015-03-11 10:34 ` [PATCH v7 13/18] clk: tegra: Add EMC clock driver Tomeu Vizoso
2015-03-11 10:34 ` [PATCH v7 15/18] clk: tegra: Set the EMC clock as the parent of the MC clock Tomeu Vizoso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1426147454.5304.9.camel@x220 \
    --to=pebolle-iwqwacnznjzz+pzb47itoq@public.gmane.org \
    --cc=gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=jroedel-l3A5Bk7waGM@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mikko.perttunen-/1wQRMveznE@public.gmane.org \
    --cc=mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
    --cc=thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox