All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 01/11] ARM: shmobile: r8a7778: cleanup registration of sh_eth
Date: Wed, 24 Jul 2013 04:45:36 +0000	[thread overview]
Message-ID: <CANqRtoT33WF1VPS4JVBt=a8sjBT=ELDF+T5dQCLsO_-seR6iQA@mail.gmail.com> (raw)
In-Reply-To: <87li5dfqft.wl%kuninori.morimoto.gx@renesas.com>

Hello Sergei,

On Fri, Jul 12, 2013 at 8:05 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Hello.
>
>
> On 12-07-2013 4:56, Simon Horman wrote:
>
>>>> sh_eth driver which needs platform data at the time of
>>>> registration is used from BockW only.
>>>> Now, ARM/shmobile aims to support DT,
>>>> and the C code base board support will be removed in the future.
>>>> The driver registration method which needs platform data
>>>> and which is not shared complicates codes.
>>>> This patch registers it on board code as cleanup C code
>
>
>>>> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
>
>>>     NAK.
>
>
>> Please provide some reasoning for your objection to this change.
>> Likewise for other patches in this series to which you have replied
>> in the same manner. I for one do not understand what it is you object to.
>
>
>    Sorry, I was just out of words when I saw this. I for one do not
> understand how this change will help the DT support and to me it seems no
> more than a pointless churn and step backward from what we had. Under no
> circumstances I will accept this change -- I'm totally opposed to the idea
> of moving the SoC devices to the board code.

Thanks for emailing once more and explaining your reasons behind the
NAK. Please allow me to step in here and explain things a bit.

Originally on SH and ARM mach-shmobile we have divided platform
devices into two categories - SoC specific and board specific. As
expected, SoC specific devices go in setup-xxx.c and board specific
devices go into board-xxx.c. So far so good.

It may become a bit more unclear in some cases when part of the
platform device data is board specific but other parts are SoC
specific. Historically we have simply made those board specific. For
various reasons I'd like to keep the code that way.

You may now ask why do I want to keep the code that way. One reason is
that adding new abstractions and functions for SoCs is pointless
unless we have multiple boards upstream using the same SoC code. Which
we don't really have. So adding code following that style will just
bloat the code base. I do however think that sharing data in a more
efficient way is a good thing for the future, but I believe that
discussion should happen with DT reference implementations. So please
put your focus there if you want to improve things. The legacy C SoC
and board code is no place for innovation.

As you know, the legacy C code for r8a7778 at this point includes
various functions in the SoC code that introduces some alternative
more verbose way to deal with platform devices. This has been added
without changing the style for other SoCs under mach-shmobile. This
means that the r8a7778 code is implemented differently than the other
SoCs. This becomes a nightmare for me since I'm pretty much the only
person who deals with tree wide changes and understands how the
MACHINE_START bits and the init order works for different cases.
Because of this I want all the legacy C SoC and board code to follow
the same style and behave the same way. Moving code around here just
for fun makes things difficult with no real upside IMO.

Morimoto-san has kindly helped me to rework the r8a7778 code into
something more standard which I really appreciate. Because of this I'm
going to ask Simon to merge his patches to make r8a7778 follow the
same style as the rest of mach-shmobile.

If you want to help defining next generation board and SoC design then
please work with us how the DT reference SoC and board support should
look like.

Thanks,

/ magnus

  parent reply	other threads:[~2013-07-24  4:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-11  8:31 [PATCH 01/11] ARM: shmobile: r8a7778: cleanup registration of sh_eth Kuninori Morimoto
2013-07-11 11:25 ` Sergei Shtylyov
2013-07-12  0:56 ` Simon Horman
2013-07-12 11:05 ` Sergei Shtylyov
2013-07-17 23:11 ` Simon Horman
2013-07-18  1:52 ` Kuninori Morimoto
2013-07-18  2:30 ` Simon Horman
2013-07-18  6:35 ` Kuninori Morimoto
2013-07-18 11:54 ` Sergei Shtylyov
2013-07-18 12:26 ` Sergei Shtylyov
2013-07-19  2:30 ` Simon Horman
2013-07-24  4:45 ` Magnus Damm [this message]
2013-07-24 12:58 ` Sergei Shtylyov
2013-07-24 14:13 ` Magnus Damm

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='CANqRtoT33WF1VPS4JVBt=a8sjBT=ELDF+T5dQCLsO_-seR6iQA@mail.gmail.com' \
    --to=magnus.damm@gmail.com \
    --cc=linux-sh@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.