public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
To: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>,
	Benoit Goby <benoit-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org>,
	David Brownell
	<dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
	Greg Kroah-Hartman <gregkh-l3A5Bk7waGM@public.gmane.org>,
	linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Ro
Subject: Re: [PATCH v5 3/4] usb: host: Add EHCI driver for NVIDIA Tegra SoCs
Date: Fri, 25 Feb 2011 11:54:16 -0800	[thread overview]
Message-ID: <20110225195416.GD3702@kroah.com> (raw)
In-Reply-To: <AANLkTi=D-GcJJPvW2MaDf9L-KNr2628q3v1MZTbOCtmx-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Tue, Feb 22, 2011 at 08:56:47PM -0800, Olof Johansson wrote:
> Hi,
> 
> 
> On Tue, Feb 22, 2011 at 8:07 PM, Benoit Goby <benoit-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org> wrote:
> 
> 
> > diff --git a/include/linux/tegra_usb.h b/include/linux/tegra_usb.h
> > new file mode 100644
> > index 0000000..6bca5b5
> > --- /dev/null
> > +++ b/include/linux/tegra_usb.h
> > @@ -0,0 +1,31 @@
> > +/*
> > + * Copyright (C) 2010 Google, Inc.
> > + *
> > + * This software is licensed under the terms of the GNU General Public
> > + * License version 2, as published by the Free Software Foundation, and
> > + * may be copied, distributed, and modified under those terms.
> > + *
> > + * This program is distributed in the hope that it will be useful,
> > + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> > + * GNU General Public License for more details.
> > + *
> > + */
> > +
> > +#ifndef _TEGRA_USB_H_
> > +#define _TEGRA_USB_H_
> > +
> > +enum tegra_usb_operating_modes {
> > +       TEGRA_USB_DEVICE,
> > +       TEGRA_USB_HOST,
> > +       TEGRA_USB_OTG,
> > +};
> > +
> > +struct tegra_ehci_platform_data {
> > +       enum tegra_usb_operating_modes operating_mode;
> > +       /* power down the phy on bus suspend */
> > +       int power_down_on_bus_suspend;
> > +       void *phy_config;
> > +};
> > +
> > +#endif /* _TEGRA_USB_H_ */
> 
> Most other platform drivers like this put the platform data include
> files either under include/linux/usb or under
> arch/arm/mach-<foo>/include/mach instead, since they don't really
> apply globally.  I'd say go with the latter since there's no sharing
> of this outside of tegra today (and it can be moved if that ever
> happens).

Platform data should go in include/linux/platform_data/  Please put it
there and not in the "global" include/linux/ location.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2011-02-25 19:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23  4:07 [PATCH v5 0/4] Tegra EHCI driver Benoit Goby
     [not found] ` <1298434054-23274-1-git-send-email-benoit-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org>
2011-02-23  4:07   ` [PATCH v5 1/4] usb: otg: Add ulpi viewport access ops Benoit Goby
2011-02-23  4:07   ` [PATCH v5 2/4] ARM: tegra: Add support for Tegra USB PHYs Benoit Goby
2011-02-23  4:07   ` [PATCH v5 3/4] usb: host: Add EHCI driver for NVIDIA Tegra SoCs Benoit Goby
     [not found]     ` <1298434054-23274-4-git-send-email-benoit-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org>
2011-02-23  4:56       ` Olof Johansson
     [not found]         ` <AANLkTi=D-GcJJPvW2MaDf9L-KNr2628q3v1MZTbOCtmx-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-25 19:54           ` Greg KH [this message]
2011-02-23  4:07   ` [PATCH v5 4/4] USB: ehci: tegra: Align DMA transfers to 32 bytes Benoit Goby

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=20110225195416.GD3702@kroah.com \
    --to=greg-u8xffu+wg4eavxtiumwx3w@public.gmane.org \
    --cc=benoit-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org \
    --cc=dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=gregkh-l3A5Bk7waGM@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=olof-nZhT3qVonbNeoWH0uzbU5w@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