From: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>
To: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Colin Cross <ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org>,
Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH 1/3] ARM: tegra: paz00: add support for the embedded controller
Date: Sat, 22 Oct 2011 22:49:42 +0200 [thread overview]
Message-ID: <1625092.81oZlljjhQ@ax5200p> (raw)
In-Reply-To: <CAOesGMhVFk6n0n98akeVdM-cLtK9ip0-M01u9jy8WEdJNU+xsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Saturday 22 October 2011 13:27:12 Olof Johansson wrote:
> On Sat, Oct 22, 2011 at 1:16 PM, Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org> wrote:
> > This adds support for the embedded controller known as NVEC. The driver
> > lives currently in the staging tree and we aim to promote it one level
> > higher in the near future.
> >
> > The NVEC driver uses the I2C resources of the master controller for now
> > until slave support is added to the i2c-tegra driver.
> >
> > diff --git a/arch/arm/mach-tegra/board-paz00.c
> > b/arch/arm/mach-tegra/board-paz00.c index 602f8dd..3f46b37 100644
> > --- a/arch/arm/mach-tegra/board-paz00.c
> > +++ b/arch/arm/mach-tegra/board-paz00.c
> > @@ -44,6 +44,8 @@
> > #include "devices.h"
> > #include "gpio-names.h"
> >
> > +#include "../../../drivers/staging/nvec/nvec.h"
>
> Ick, no! Move the header file containing platform data to
> include/linux/platform_data instead (or break it off in a separate
> header file).
I know this looks ugly, but it is AFAIK the only (and the common) way for a
staging driver to be used. Of course the header will be moved to e.g. to
include/linux/mfd once the driver is ready for mainline, but till that we just
cannot write somewhere outside of the staging dir.
> > static struct platform_device *paz00_devices[] __initdata = {
> > &debug_uart,
> > &tegra_sdhci_device4,
> > @@ -127,6 +134,10 @@ static void paz00_i2c_init(void)
> > platform_device_register(&tegra_i2c_device1);
> > platform_device_register(&tegra_i2c_device2);
> > platform_device_register(&tegra_i2c_device4);
> > +
> > + tegra_i2c_device3.name = "nvec";
> > + tegra_i2c_device3.dev.platform_data = &nvec_pdata;
> > + platform_device_register(&tegra_i2c_device3);
>
> Please define a separate platform_device instead of hijacking the
> current one, please.
ok, I just wanted to keep the patch small ;-)
Marc
next prev parent reply other threads:[~2011-10-22 20:49 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-22 20:16 [PATCH 0/3] paz00 updates for 3.3 Marc Dietrich
[not found] ` <cover.1319313019.git.marvin24-Mmb7MZpHnFY@public.gmane.org>
2011-10-22 20:16 ` [PATCH 1/3] ARM: tegra: paz00: add support for the embedded controller Marc Dietrich
[not found] ` <b5f0dc6e7996a21d4493f8e7765e322fe6d8b7ef.1319313020.git.marvin24-Mmb7MZpHnFY@public.gmane.org>
2011-10-22 20:27 ` Olof Johansson
[not found] ` <CAOesGMhVFk6n0n98akeVdM-cLtK9ip0-M01u9jy8WEdJNU+xsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-22 20:49 ` Marc Dietrich [this message]
2011-10-23 6:54 ` Olof Johansson
2011-10-25 5:06 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173E1B4187-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-10-25 7:16 ` Olof Johansson
[not found] ` <CAOesGMgs97awtrKXd=Ek9R62pWMVDtKcxXAx9Xb5_P6wa6wdpg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-25 21:04 ` Marc Dietrich
2011-10-26 6:51 ` Stephen Warren
2011-10-25 19:11 ` [PATCH 1/3] ARM: tegra: paz00: add support for the embeddedcontroller Marc Dietrich
2011-10-22 20:16 ` [PATCH 2/3] ARM: tegra: paz00: add support for wakeup gpio key Marc Dietrich
[not found] ` <41e637f863f255c23f6a6e4af79efeac0f81aff1.1319313020.git.marvin24-Mmb7MZpHnFY@public.gmane.org>
2011-10-25 5:10 ` Stephen Warren
2011-10-22 20:16 ` [PATCH 3/3] arm/dt: tegra: add dts file for paz00 Marc Dietrich
[not found] ` <90ee88bcde84141e0280ffa4ccbd288462489eba.1319313020.git.marvin24-Mmb7MZpHnFY@public.gmane.org>
2011-10-25 5:16 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173E1B4189-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-10-25 19:05 ` Marc Dietrich
2011-10-26 6:43 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173E1B4536-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-10-26 20:18 ` Marc Dietrich
2011-10-25 19:51 ` Rob Herring
[not found] ` <4EA7134C.3050102-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-10-26 6:40 ` Stephen Warren
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=1625092.81oZlljjhQ@ax5200p \
--to=marvin24-mmb7mzphnfy@public.gmane.org \
--cc=ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@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