From: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Santosh Shilimkar <santosh.shilimkar-l0cyMroinI0@public.gmane.org>
Cc: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
Greg Kroah-Hartman
<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>,
Kumar Gala
<galak-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>,
Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>,
Catalin Marinas <catalin.marinas-5wv7dgnIgG8@public.gmane.org>
Subject: Re: [RFC 1/4] ARM: tegra: Move SoC drivers to drivers/soc/tegra
Date: Sat, 28 Jun 2014 01:27:58 +0200 [thread overview]
Message-ID: <20140627232757.GB26184@ulmo> (raw)
In-Reply-To: <53ADAA1C.70407-l0cyMroinI0@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 7886 bytes --]
On Fri, Jun 27, 2014 at 01:30:04PM -0400, Santosh Shilimkar wrote:
> +Arnd, Greg, Catalin and Kumar,
>
> On Friday 27 June 2014 12:58 PM, Thierry Reding wrote:
> > From: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> >
> > These drivers are closely coupled and need to be moved as a whole. One
> > reason for moving them out of arch/arm/mach-tegra is to allow them to be
> > shared with 64-bit ARM.
> >
> > Signed-off-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> > ---
> > arch/arm/mach-tegra/Makefile | 32 --------
> > arch/arm/mach-tegra/common.h | 4 -
> > arch/arm/mach-tegra/io.c | 27 +++++-
> > arch/arm/mach-tegra/pmc.h | 62 --------------
> > arch/arm/mach-tegra/tegra.c | 9 --
> > drivers/soc/Makefile | 1 +
> > drivers/soc/tegra/Makefile | 34 ++++++++
> > .../soc/tegra}/cpuidle-tegra114.c | 0
> > .../soc/tegra}/cpuidle-tegra20.c | 6 +-
> > .../soc/tegra}/cpuidle-tegra30.c | 0
> > .../arm/mach-tegra => drivers/soc/tegra}/cpuidle.c | 0
> > .../arm/mach-tegra => drivers/soc/tegra}/cpuidle.h | 3 -
> > .../mach-tegra => drivers/soc/tegra}/flowctrl.c | 0
> > .../mach-tegra => drivers/soc/tegra}/flowctrl.h | 2 -
> > .../arm/mach-tegra => drivers/soc/tegra}/headsmp.S | 0
> > .../arm/mach-tegra => drivers/soc/tegra}/hotplug.c | 0
> > {arch/arm/mach-tegra => drivers/soc/tegra}/iomap.h | 0
> > .../arm/mach-tegra => drivers/soc/tegra}/irammap.h | 0
> > {arch/arm/mach-tegra => drivers/soc/tegra}/irq.c | 1 -
> > {arch/arm/mach-tegra => drivers/soc/tegra}/irq.h | 6 --
> > .../arm/mach-tegra => drivers/soc/tegra}/platsmp.c | 5 --
> > .../mach-tegra => drivers/soc/tegra}/pm-tegra20.c | 0
> > .../mach-tegra => drivers/soc/tegra}/pm-tegra30.c | 0
> > {arch/arm/mach-tegra => drivers/soc/tegra}/pm.c | 0
> > {arch/arm/mach-tegra => drivers/soc/tegra}/pm.h | 4 +-
> > {arch/arm/mach-tegra => drivers/soc/tegra}/pmc.c | 0
> > drivers/soc/tegra/pmc.h | 35 ++++++++
> > .../mach-tegra => drivers/soc/tegra}/powergate.c | 0
> > .../soc/tegra}/reset-handler.S | 0
> > {arch/arm/mach-tegra => drivers/soc/tegra}/reset.c | 0
> > {arch/arm/mach-tegra => drivers/soc/tegra}/reset.h | 2 -
> > .../soc/tegra}/sleep-tegra20.S | 0
> > .../soc/tegra}/sleep-tegra30.S | 0
> > {arch/arm/mach-tegra => drivers/soc/tegra}/sleep.S | 0
> > {arch/arm/mach-tegra => drivers/soc/tegra}/sleep.h | 2 -
> > include/linux/tegra-soc.h | 95 ++++++++++++++++++++++
> > 36 files changed, 195 insertions(+), 135 deletions(-)
> > delete mode 100644 arch/arm/mach-tegra/common.h
> > delete mode 100644 arch/arm/mach-tegra/pmc.h
> > create mode 100644 drivers/soc/tegra/Makefile
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/cpuidle-tegra114.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/cpuidle-tegra20.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/cpuidle-tegra30.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/cpuidle.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/cpuidle.h (91%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/flowctrl.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/flowctrl.h (98%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/headsmp.S (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/hotplug.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/iomap.h (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/irammap.h (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/irq.c (99%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/irq.h (83%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/platsmp.c (98%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/pm-tegra20.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/pm-tegra30.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/pm.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/pm.h (94%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/pmc.c (100%)
> > create mode 100644 drivers/soc/tegra/pmc.h
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/powergate.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/reset-handler.S (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/reset.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/reset.h (97%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/sleep-tegra20.S (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/sleep-tegra30.S (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/sleep.S (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/sleep.h (98%)
> >
> NAK for this patch.
>
> You are using drivers/soc/* as a dump yard for your SOC code which
> is not the intention we created drivers/soc/.
That was not my intention. What remains in arch/arm/mach-tegra at this
point doesn't actually have a corresponding subsystem (well, except
maybe the cpuidle code).
> Its really for subsystem drivers which doesn't have appropriate
> home in Linux kernel today. From your above patch ...
>
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/cpuidle-tegra114.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/cpuidle-tegra20.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/cpuidle-tegra30.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/cpuidle.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/cpuidle.h (91%)
> This should go into drivers/idle/*. if you have dependencies, please sort
> them out.
What exactly is the difference between drivers/idle and drivers/cpuidle?
There's an intel_idle driver in drivers/idle that includes cpuidle.h and
registers with that subsystem. But there's also an i7300_idle driver
that doesn't.
drivers/cpuidle seems like a better fit. I'll look into moving the code
there.
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/reset-handler.S (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/reset.c (100%)
> > rename {arch/arm/mach-tegra => drivers/soc/tegra}/reset.h (97%)
> subsystem: drivers/power/reset/
drivers/power/reset seems to be for drivers that register functions to
reset a board. The above code for Tegra doesn't do that. Rather it sets
up the reset handlers for secondary CPUs and for suspend/resume.
> For tegra/*pm*/, you can use drivers/power or drivers/base/power/
drivers/power seems to be exclusively battery charger drivers. The pm.c,
pm-*.c and sleep-*.S set up suspend/resume. That doesn't seem to belong
in drivers/base/power either.
pmc.c implements various routines to access the power management
controller, some of which is needed by suspend/resume, some of it is
needed by SMP. powergate.c implements a subset of the PMC that needs to
be exported to drivers to enable power partitions on the SoC. I'm not
aware of subsystems that deal with this kind of driver.
> For SMP boot, ARMv8 expecting to have either PSCI based implementation or
> device tree based boot scheme. you can move towards that model if possible.
But we also have the code for SMP on 32-bit ARM. Should that remain in
arch/arm/mach-tegra or can it move to drivers/soc/tegra?
So the only thing in the above that I think could be moved somewhere
else is the cpuidle drivers. Or do you have any other suggestions for
the remaining code?
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-06-27 23:27 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-27 16:58 [RFC 1/4] ARM: tegra: Move SoC drivers to drivers/soc/tegra Thierry Reding
[not found] ` <1403888329-24755-1-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-06-27 16:58 ` [RFC 2/4] ARM: tegra: Add legacy interrupt controller nodes Thierry Reding
[not found] ` <1403888329-24755-2-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-06-27 20:58 ` Stephen Warren
[not found] ` <53ADDAEF.2070805-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-06-27 23:44 ` Thierry Reding
2014-06-27 16:58 ` [RFC 3/4] soc/tegra: Initialize interrupt controller from DT Thierry Reding
[not found] ` <1403888329-24755-3-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-06-27 21:03 ` Stephen Warren
[not found] ` <53ADDC0C.4060401-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-06-28 1:12 ` Thierry Reding
2014-06-30 11:30 ` Peter De Schrijver
[not found] ` <20140630113013.GS3679-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2014-06-30 19:51 ` Thierry Reding
2014-06-27 16:58 ` [RFC 4/4] soc/tegra: Remove unused defines Thierry Reding
[not found] ` <1403888329-24755-4-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-06-27 21:03 ` Stephen Warren
[not found] ` <53ADDC22.9060205-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-06-28 1:12 ` Thierry Reding
2014-06-27 17:30 ` [RFC 1/4] ARM: tegra: Move SoC drivers to drivers/soc/tegra Santosh Shilimkar
[not found] ` <53ADAA1C.70407-l0cyMroinI0@public.gmane.org>
2014-06-27 23:27 ` Thierry Reding [this message]
2014-06-28 17:15 ` Santosh Shilimkar
[not found] ` <53AEF81D.3080408-l0cyMroinI0@public.gmane.org>
2014-06-28 20:40 ` Thierry Reding
2014-06-30 7:20 ` Arnd Bergmann
2014-06-30 9:01 ` Thierry Reding
2014-06-30 10:36 ` Catalin Marinas
[not found] ` <20140630103649.GF28951-5wv7dgnIgG8@public.gmane.org>
2014-06-30 10:48 ` Thierry Reding
2014-06-30 13:16 ` Lorenzo Pieralisi
[not found] ` <20140630131628.GA31517-7AyDDHkRsp3ZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2014-06-30 19:36 ` Thierry Reding
2014-07-01 10:50 ` Catalin Marinas
[not found] ` <20140701105056.GO18313-5wv7dgnIgG8@public.gmane.org>
2014-07-01 15:05 ` Stephen Warren
[not found] ` <53B2CE4B.2010506-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-07-01 17:00 ` Catalin Marinas
2014-06-30 19:21 ` Thierry Reding
2014-07-01 7:51 ` Peter De Schrijver
2014-07-16 19:31 ` Olof Johansson
[not found] ` <CAOesGMjgNZ0hvWy0p1fh36gOMfBVd-uJSf=AWUsr9GdrrErtyw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-16 19:47 ` Thierry Reding
2014-07-17 9:31 ` Catalin Marinas
[not found] ` <20140717093149.GB3180-5wv7dgnIgG8@public.gmane.org>
2014-07-17 16:21 ` Olof Johansson
2014-06-30 7:23 ` Arnd Bergmann
2014-06-30 9:44 ` Catalin Marinas
2014-06-30 18:45 ` Stephen Warren
2014-06-30 10:25 ` Catalin Marinas
[not found] ` <20140630102512.GE28951-5wv7dgnIgG8@public.gmane.org>
2014-06-30 10:49 ` Thierry Reding
2014-06-30 11:46 ` Peter De Schrijver
[not found] ` <20140630114621.GT3679-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2014-06-30 14:13 ` Catalin Marinas
[not found] ` <20140630141334.GK28951-5wv7dgnIgG8@public.gmane.org>
2014-06-30 14:42 ` Peter De Schrijver
[not found] ` <20140630144217.GV3679-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2014-06-30 14:50 ` Peter De Schrijver
2014-06-30 16:08 ` Catalin Marinas
2014-06-27 21:10 ` Stephen Warren
[not found] ` <53ADDDC1.2080603-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-06-28 1:24 ` Thierry Reding
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=20140627232757.GB26184@ulmo \
--to=thierry.reding-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=arnd-r2nGTMty4D4@public.gmane.org \
--cc=catalin.marinas-5wv7dgnIgG8@public.gmane.org \
--cc=galak-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org \
--cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=santosh.shilimkar-l0cyMroinI0@public.gmane.org \
--cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@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