From: Simon Horman <horms@verge.net.au>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: shmobile: r8a7779 Marzen legacy fix
Date: Mon, 06 Jul 2015 07:41:32 +0000 [thread overview]
Message-ID: <20150706074131.GA26540@verge.net.au> (raw)
In-Reply-To: <20150706070216.25453.35953.sendpatchset@little-apple>
On Mon, Jul 06, 2015 at 04:02:16PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm+renesas@opensource.se>
>
> Unbreak the r8a7779 Marzen legacy code provided by marzen_defconfig.
>
> As it is today Marzen multiplatform is working, but the legacy code
> is broken. This patch intends to leave multiplatform as-is but do
> a simple one-shot fix to unbreak the legacy code base.
>
> Without this patch there is no preset delay and the TWD is defined
> both in C code and in DT. Solve the delay by invoking shmobile_init_delay()
> and simply exclude the TWD DT instance in case of building for legacy.
>
> Marzen legacy code will be removed in the near future, but until then
> we may as well avoid breaking it.
Thanks, that does seem to improve things a lot.
Tested-by: Simon Horman <horms+renesas@verge.net.au>
I wonder if we should also add the following?
Fixes: f2a5473861cf ("clocksource: sh_tmu: Set cpu_possible_mask to fix SMP broadcast")
For the record, I found that after I enabled CONFIG_SMSC_PHY the boot
now gets as far as initialising SDHI.
...
i2c-rcar i2c-rcar.0: probed
i2c-rcar i2c-rcar.1: probed
i2c-rcar i2c-rcar.2: probed
i2c-rcar i2c-rcar.3: probed
initcall rcar_i2c_driver_init+0x0/0x10 returned 0 after 10428 usecs
calling soc_camera_pdrv_init+0x0/0x10 @ 1
initcall soc_camera_pdrv_init+0x0/0x10 returned 0 after 74 usecs
calling soc_mbus_init+0x0/0x8 @ 1
initcall soc_mbus_init+0x0/0x8 returned 0 after 0 usecs
calling rcar_vin_driver_init+0x0/0x10 @ 1
soc-camera-pdrv soc-camera-pdrv.0: Probing soc-camera-pdrv.0
soc-camera-pdrv soc-camera-pdrv.1: Probing soc-camera-pdrv.1
initcall rcar_vin_driver_init+0x0/0x10 returned 0 after 11502 usecs
calling rcar_thermal_driver_init+0x0/0x10 @ 1
rcar_thermal rcar_thermal.0: 1 sensor probed
initcall rcar_thermal_driver_init+0x0/0x10 returned 0 after 4596 usecs
calling mmc_blk_init+0x0/0x88 @ 1
initcall mmc_blk_init+0x0/0x88 returned 0 after 31 usecs
calling sh_mobile_sdhi_driver_init+0x0/0x10 @ 1
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> ---
>
> Built on top of renesas-devel-20150629-v4.1
>
> arch/arm/boot/dts/r8a7779.dtsi | 4 ++--
> arch/arm/mach-shmobile/setup-r8a7779.c | 2 ++
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> --- 0001/arch/arm/boot/dts/r8a7779.dtsi
> +++ work/arch/arm/boot/dts/r8a7779.dtsi 2015-07-06 15:42:28.182366518 +0900
> @@ -62,7 +62,7 @@
> reg = <0xf0001000 0x1000>,
> <0xf0000100 0x100>;
> };
> -
> +#ifndef CONFIG_ARCH_SHMOBILE_LEGACY /* TWD defined in C code for legacy case */
> timer@f0000600 {
> compatible = "arm,cortex-a9-twd-timer";
> reg = <0xf0000600 0x20>;
> @@ -70,7 +70,7 @@
> (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
> clocks = <&cpg_clocks R8A7779_CLK_ZS>;
> };
> -
> +#endif
> gpio0: gpio@ffc40000 {
> compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
> reg = <0xffc40000 0x2c>;
> --- 0001/arch/arm/mach-shmobile/setup-r8a7779.c
> +++ work/arch/arm/mach-shmobile/setup-r8a7779.c 2015-07-06 15:43:58.472366518 +0900
> @@ -677,6 +677,8 @@ void __init r8a7779_add_standard_devices
>
> void __init r8a7779_add_early_devices(void)
> {
> + shmobile_init_delay();
> +
> early_platform_add_devices(r8a7779_early_devices,
> ARRAY_SIZE(r8a7779_early_devices));
>
>
next prev parent reply other threads:[~2015-07-06 7:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 6:59 [PATCH] ARM: shmobile: r8a7779 Marzen legacy fix Magnus Damm
2015-07-06 7:41 ` Simon Horman [this message]
2015-07-06 7:53 ` Laurent Pinchart
2015-07-06 7:58 ` Magnus Damm
2015-07-06 7:59 ` Laurent Pinchart
2015-07-06 8:07 ` Geert Uytterhoeven
2015-07-06 8:23 ` Laurent Pinchart
2015-07-06 11:08 ` 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=20150706074131.GA26540@verge.net.au \
--to=horms@verge.net.au \
--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