linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marc Zyngier <marc.zyngier@arm.com>
To: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Sekhar Nori <nsekhar@ti.com>, Kevin Hilman <khilman@kernel.org>,
	David Lechner <david@lechnology.com>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Yoshinori Sato <ysato@users.sourceforge.jp>,
	Rich Felker <dalias@libc.org>,
	Andy Shevchenko <andy.shevchenko@gmail.com>,
	"Rafael J . Wysocki" <rafael.j.wysocki@intel.com>,
	Peter Rosin <peda@axentia.se>, Jiri Slaby <jslaby@suse.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Magnus Damm <magnus.damm@gmail.com>,
	Johan Hovold <johan@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	Frank Rowand <frowand.list@gmail.com>,
	Philippe Ombredanne <pombredanne@nexb.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arch@vger.kernel.org,
	Bartosz Golaszewski <bgolaszewski@baylibre.com>
Subject: Re: [RESEND PATCH v3 3/3] sh: add the sh_ prefix to early platform symbols
Date: Tue, 23 Oct 2018 12:10:46 +0100	[thread overview]
Message-ID: <8636swude1.wl-marc.zyngier@arm.com> (raw)
Message-ID: <20181023111046.VAr2M2-5ld2I0O6RM1mZ_SwlZD1u4DWlK7pQSwGLQ68@z> (raw)
In-Reply-To: <20180827090651.25062-4-brgl@bgdev.pl>

Hi Bartosz,

On Mon, 27 Aug 2018 10:06:51 +0100,
Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> 
> From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> 
> Old early platform device support is now sh-specific. Before moving on
> to implementing new early platform framework based on real platform
> devices, prefix all early platform symbols with 'sh_'.
> 
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> ---
>  arch/sh/drivers/platform_early.c       | 66 +++++++++++++-------------
>  arch/sh/include/asm/platform_early.h   | 30 ++++++------
>  arch/sh/kernel/cpu/sh2/setup-sh7619.c  |  2 +-
>  arch/sh/kernel/cpu/sh2a/setup-mxg.c    |  2 +-
>  arch/sh/kernel/cpu/sh2a/setup-sh7201.c |  2 +-
>  arch/sh/kernel/cpu/sh2a/setup-sh7203.c |  2 +-
>  arch/sh/kernel/cpu/sh2a/setup-sh7206.c |  2 +-
>  arch/sh/kernel/cpu/sh2a/setup-sh7264.c |  2 +-
>  arch/sh/kernel/cpu/sh2a/setup-sh7269.c |  2 +-
>  arch/sh/kernel/cpu/sh3/setup-sh7705.c  |  2 +-
>  arch/sh/kernel/cpu/sh3/setup-sh770x.c  |  2 +-
>  arch/sh/kernel/cpu/sh3/setup-sh7710.c  |  2 +-
>  arch/sh/kernel/cpu/sh3/setup-sh7720.c  |  2 +-
>  arch/sh/kernel/cpu/sh4/setup-sh4-202.c |  2 +-
>  arch/sh/kernel/cpu/sh4/setup-sh7750.c  |  8 ++--
>  arch/sh/kernel/cpu/sh4/setup-sh7760.c  |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7343.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7366.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7722.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7723.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7724.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7734.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7757.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7763.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7770.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7780.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7785.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-sh7786.c |  2 +-
>  arch/sh/kernel/cpu/sh4a/setup-shx3.c   |  2 +-
>  arch/sh/kernel/cpu/sh5/setup-sh5.c     |  2 +-
>  arch/sh/kernel/setup.c                 |  2 +-
>  arch/sh/kernel/time.c                  |  4 +-
>  drivers/clocksource/sh_cmt.c           |  6 +--
>  drivers/clocksource/sh_mtu2.c          |  6 +--
>  drivers/clocksource/sh_tmu.c           |  6 +--
>  drivers/tty/serial/sh-sci.c            |  4 +-
>  include/linux/platform_device.h        |  2 +-
>  37 files changed, 94 insertions(+), 94 deletions(-)
> 
> diff --git a/arch/sh/drivers/platform_early.c b/arch/sh/drivers/platform_early.c
> index 3dfe9f3541bb..f6d148451dfc 100644
> --- a/arch/sh/drivers/platform_early.c
> +++ b/arch/sh/drivers/platform_early.c
> @@ -4,8 +4,8 @@
>  #include <linux/mod_devicetable.h>
>  #include <linux/pm.h>
>  
> -static __initdata LIST_HEAD(early_platform_driver_list);
> -static __initdata LIST_HEAD(early_platform_device_list);
> +static __initdata LIST_HEAD(sh_early_platform_driver_list);
> +static __initdata LIST_HEAD(sh_early_platform_device_list);

As discussed offline at ELC, I don't think this patch is useful at
this stage, and in the context of this particular series. I believe it
should be dropped and only the first two patches should be merged. If
the SH maintainer is not responsive, then maybe Greg could take them
as they remove cruft from core code.

As for the whole "early device" debate, my take is that we'd be much
better off making the device model available early, rather than trying
to architect something that is simply papering over the issue.

Thanks,

	M.

-- 
Jazz is not dead, it just smell funny.

  parent reply	other threads:[~2018-10-23 19:34 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-27  9:06 [RESEND PATCH v3 0/3] sh: make early_platform code SuperH-specific Bartosz Golaszewski
2018-08-27  9:06 ` Bartosz Golaszewski
2018-08-27  9:06 ` [RESEND PATCH v3 1/3] clocksource: timer-ti-dm: remove the early platform driver registration Bartosz Golaszewski
2018-08-27  9:06   ` Bartosz Golaszewski
2018-08-27  9:06 ` [RESEND PATCH v3 2/3] platform: move the early platform device support to arch/sh Bartosz Golaszewski
2018-08-27  9:06   ` Bartosz Golaszewski
2018-08-27  9:06 ` [RESEND PATCH v3 3/3] sh: add the sh_ prefix to early platform symbols Bartosz Golaszewski
2018-08-27  9:06   ` Bartosz Golaszewski
2018-10-23 11:10   ` Marc Zyngier [this message]
2018-10-23 11:10     ` Marc Zyngier
2018-10-23 11:32     ` Geert Uytterhoeven
2018-10-23 11:32       ` Geert Uytterhoeven
2018-10-23 12:18       ` Marc Zyngier
2018-09-20 13:00 ` [RESEND PATCH v3 0/3] sh: make early_platform code SuperH-specific Bartosz Golaszewski
2018-09-20 13:00   ` Bartosz Golaszewski
2018-09-20 16:09   ` Daniel Lezcano
2018-09-20 16:09     ` Daniel Lezcano
2018-09-20 16:19     ` Bartosz Golaszewski
2018-09-20 16:19       ` Bartosz Golaszewski
2018-09-20 16:48       ` Daniel Lezcano
2018-09-20 16:48         ` Daniel Lezcano
2018-10-09  7:58         ` Bartosz Golaszewski
2018-10-09  7:58           ` Bartosz Golaszewski
  -- strict thread matches above, loose matches on Subject: below --
2018-06-21  8:23 Bartosz Golaszewski
2018-06-21  8:23 ` [RESEND PATCH v3 3/3] sh: add the sh_ prefix to early platform symbols Bartosz Golaszewski
2018-06-21  8:23   ` Bartosz Golaszewski

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=8636swude1.wl-marc.zyngier@arm.com \
    --to=marc.zyngier@arm.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=arnd@arndb.de \
    --cc=bgolaszewski@baylibre.com \
    --cc=brgl@bgdev.pl \
    --cc=dalias@libc.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=david@lechnology.com \
    --cc=devicetree@vger.kernel.org \
    --cc=frowand.list@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=johan@kernel.org \
    --cc=jslaby@suse.com \
    --cc=khilman@kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=mturquette@baylibre.com \
    --cc=nsekhar@ti.com \
    --cc=peda@axentia.se \
    --cc=pombredanne@nexb.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=ysato@users.sourceforge.jp \
    /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).