linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Olof Johansson <olof@lixom.net>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] ARM: shmobile: Break out R-Car SYSC PM code
Date: Fri, 14 Mar 2014 05:39:37 +0000	[thread overview]
Message-ID: <20140314053937.GA11610@quad.lixom.net> (raw)
In-Reply-To: <CANqRtoQTvnHBjM2eQccAJWCddN1LPgjNnd3Q6Gp=iUQkgM7tmQ@mail.gmail.com>

On Thu, Mar 13, 2014 at 10:02:03AM +0900, Magnus Damm wrote:
> On Thu, Mar 13, 2014 at 9:04 AM, Olof Johansson <olof@lixom.net> wrote:
> > On Wed, Mar 12, 2014 at 3:26 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> >> On Sun, Mar 9, 2014 at 2:22 PM, Olof Johansson <olof@lixom.net> wrote:
> >>> On Tue, Feb 25, 2014 at 11:09:52AM +0900, Magnus Damm wrote:
> >>>> Hi Olof,
> >>>>
> >>>> On Thu, Feb 20, 2014 at 6:45 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> >>>> > On Thu, Feb 20, 2014 at 6:36 PM, Olof Johansson <olof@lixom.net> wrote:
> >>>> >> I spotted this patch since it adds new include/mach contents, comment below:
> >>>> >>
> >>>> >> On Tue, Jan 14, 2014 at 11:43 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> >>>> >>
> >>>> >>> --- /dev/null
> >>>> >>> +++ work/arch/arm/mach-shmobile/include/mach/pm-rcar.h  2014-01-15 13:30:38.000000000 +0900
> >>>> >>> @@ -0,0 +1,15 @@
> >>>> >>> +#ifndef PM_RCAR_H
> >>>> >>> +#define PM_RCAR_H
> >>>> >>> +
> >>>> >>> +struct rcar_sysc_ch {
> >>>> >>> +       unsigned long chan_offs;
> >>>> >>> +       unsigned int chan_bit;
> >>>> >>> +       unsigned int isr_bit;
> >>>> >>> +};
> >>>> >>> +
> >>>> >>> +int rcar_sysc_power_down(struct rcar_sysc_ch *sysc_ch);
> >>>> >>> +int rcar_sysc_power_up(struct rcar_sysc_ch *sysc_ch);
> >>>> >>> +bool rcar_sysc_power_is_off(struct rcar_sysc_ch *sysc_ch);
> >>>> >>> +void __iomem *rcar_sysc_init(phys_addr_t base);
> >>>> >>> +
> >>>> >>> +#endif /* PM_RCAR_H */
> >>>> >>
> >>>> >>
> >>>> >> These prototypes are only ever used by code in arch/arm/mach-shmobile,
> >>>> >> right? There's no reason to expose it to the global include namespace,
> >>>> >> and you'll just have to remove it when the platform is converted to
> >>>> >> multiplatform.
> >>>> >>
> >>>> >> So, I suggest moving this to be at arch/arm/mach-shmobile/pm-rcar.h
> >>>> >> instead (and included as "pm-rcar.h" instead of <mach/pm-rcar.h>).
> >>>> >
> >>>> > Thanks for your help with the patches! You are right that these are
> >>>> > never used outside mach-shmobile, and moving headers out of "mach"
> >>>> > certainly makes sense.
> >>>>
> >>>> FYI, the following series includes my attempt to address this issue:
> >>>>
> >>>> [PATCH 00/12] ARM: shmobile: Rework include path for SoC files
> >>>> [PATCH 01/12] ARM: shmobile: Add temporary include workaround
> >>>> [PATCH 02/12] ARM: shmobile: Rework include path for sh7372
> >>>> [PATCH 03/12] ARM: shmobile: Rework include path for sh73a0
> >>>> [PATCH 04/12] ARM: shmobile: Rework include path for EMEV2
> >>>> [PATCH 05/12] ARM: shmobile: Rework include path for r8a7740
> >>>> [PATCH 06/12] ARM: shmobile: Rework include path for r8a7778
> >>>> [PATCH 07/12] ARM: shmobile: Rework include path for r8a7779
> >>>> [PATCH 08/12] ARM: shmobile: Rework include path for r8a7790
> >>>> [PATCH 09/12] ARM: shmobile: Rework include path for r8a7791
> >>>> [PATCH 10/12] ARM: shmobile: Rework include path for r8a73a4
> >>>> [PATCH 11/12] ARM: shmobile: Rework include path for r7s72100
> >>>> [PATCH 12/12] ARM: shmobile: Rework include path for common bits
> >>>>
> >>>> If you would like me to rework the code somehow then please let me
> >>>> know. I also intend to ask a different developer to convert the actual
> >>>> boards once these changes have been merged by Simon, hope this is a
> >>>> good way forward for you.
> >>>
> >>> It certainly looks like a good way forward, thanks for doing this.
> >>
> >> Ok, thanks. The list of patches above is the first step forward from my side.
> >>
> >> I'm afraid that I'm a bit confused by your comments in thread:
> >> "Re: [PATCH v2] ARM: shmobile: Add temporary include workaround"
> >>
> >> The single v2 patch on the line above is just a bug fixed version of [01/12].
> >>
> >> Can you please clarify if you're ok with the series or if you want me
> >> to rework it somehow?
> >
> > Oh, yeah, that's confusing -- my "looks good, please go ahead" was for
> > patch 2-12, I don't think you actually need 1/12 at this time since
> > you move the include file over and change the include statements in
> > the same time in the other 11 patches?
> 
> My current set of patches do not move the location of the include file
> just yet. The reason for this is that this series targets SoC code
> only, but both board files and SoC files use the same header files. So
> until all files are converted the workaround is needed.

Oh, my bad. When I saw the change from <mach/file.h> to "file.h", I missed that
there was no diff move that accompanied it.

> I'd be happy to adjust the patches to fit your recommendation and move
> the header file in the same patch. But then I need to touch both SoC
> code and board code in the same patch - which is fine - but I would
> like to know what branch to target if so.

We're still talking mostly about code under mach-shmobile though, right?
I think most of these header files are only actually used underneath of there.

If so, then it's fine to just do it in one branch. The rules for how we sort
our branches are guidelines, and where it doesn't make sense to follow them, we
don't. :)

> So how would you like to consume this cleanup? And when? =)

For something like this, that has a build-time possibility to check for
introduced breakage (i.e. no likelihood for some strange random regression at
runtime), I'm OK with the patches coming in late. I.e. there's time for 3.15 if
you want to try getting it in. If not, we can queue it up as a base branch for
any other changes for 3.16.

As far as how to consume it: send a branch with these patches on there, we'll
merge it in. If it's relatively conflict-free we'll do it under next/clenaup
for early merge, otherwise we'll save it for the end of our branches, etc. It'd
be a great cleanup to get merged so we'll make it work somehow!


-Olof

      reply	other threads:[~2014-03-14  5:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-15  7:43 [PATCH] ARM: shmobile: Break out R-Car SYSC PM code Magnus Damm
2014-01-15  8:30 ` Simon Horman
2014-01-15 23:16   ` Magnus Damm
2014-01-16  0:37     ` Kuninori Morimoto
2014-01-16  0:50       ` Simon Horman
2014-02-06  7:05 ` Simon Horman
2014-02-20  9:36 ` Olof Johansson
2014-02-20  9:45   ` Magnus Damm
2014-02-25  2:09     ` Magnus Damm
2014-03-09  5:22       ` Olof Johansson
2014-03-12 22:26         ` Magnus Damm
2014-03-13  0:04           ` Olof Johansson
2014-03-13  1:02             ` Magnus Damm
2014-03-14  5:39               ` Olof Johansson [this message]

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=20140314053937.GA11610@quad.lixom.net \
    --to=olof@lixom.net \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).