linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.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 12:58:38 +0000	[thread overview]
Message-ID: <51EFCF7E.2040904@cogentembedded.com> (raw)
In-Reply-To: <87li5dfqft.wl%kuninori.morimoto.gx@renesas.com>

Hello.

On 24-07-2013 8:45, Magnus Damm 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.

    I beg to differ. USB PHY doesn't have SoC specific platform data, yet 
Morimoto-san is again moving it to the board code. Why?
    Also, concerning sh_eth device: hopefully, it's going to lose its SoC 
specific platform data soon due to my efforts. What then, move the device to 
the SoC code again?

> 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.

    It's not pointless if you look further into the future.

> So adding code following that style will just
> bloat the code base.

    I don't see any significant bloat, frankly.

> 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.

    We weren't aware of that (somewhat dubious) policy before. You should have 
spoken much earlier.

> 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.

    Not true. We also changed R8A7779 code in the same way. We have no 
obligations from Renesas with regards to the other mach-shmobile code
and we have no bandwidth for global cleanups.

> 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.

    I'd like to hear replies to my unanswered questions first as 
Morimoto-san's seems to have gotten a habit of simply ignoring my questions. 
Also, I think his changelogs are not very adequate in the light of what you 
said here.

> 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.

    We have our areas of work from Renesas for which we're paid (and to which 
Renesas periodically adds new tasks with higher priority), and typically have 
no bandwidth to work on something else. DT support is quite low in our 
priority lists, though it's definitely there.

> Thanks,

> / magnus

WBR, Sergei


  parent reply	other threads:[~2013-07-24 12:58 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
2013-07-24 12:58 ` Sergei Shtylyov [this message]
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=51EFCF7E.2040904@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.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 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).