[PATCH 2/6] ARM: shmobile: r8a7779: Stop powering down secondary CPUs during early boot

2018-05-30 Thread Geert Uytterhoeven
At .smp_prepare_cpus() time, CPUs 1-3 are still powered down: - The bootloader doesn't enable CPUs 1-3, - Non-boot CPUs are disabled by kexec before starting the new kernel. Hence there is no need to try to power them down again, as it will fail silently with -EIO anyway. Signed-off-by:

[PATCH 3/6] soc: renesas: rcar-sysc: Provide helpers to power up/down CPUs

2018-05-30 Thread Geert Uytterhoeven
Provide helpers to control CPU power areas from platform code, taking just a CPU index. This will avoid having to pass full CPU power area parameter blocks, and thus duplicating information already provided by SoC-specific SYSC drivers. This will be used on R-Car H1 only. Later R-Car generations

[PATCH 1/6] ARM: shmobile: rcar-gen2: Remove explicit SYSC config and init

2018-05-30 Thread Geert Uytterhoeven
If the R-Car system controller is described in DT, the rcar-sysc driver configures SYSCIER and SYSCIMR based on the SoC-specific power area definitions in r8a779*-sysc. The platform code still passed this information to the rcar-sysc driver, for compatibility with old R-Car H2 and M2-W DTBs

[PATCH 6/6] soc: renesas: rcar-sysc: Drop legacy handling

2018-05-30 Thread Geert Uytterhoeven
Now the R-Car platform code no longer supports DTBs lacking a SYSC device node in DT, all legacy handling can be dropped from the R-Car SYSC driver: - Make rcar_sysc_ch private to the driver, - Make rcar_sysc_power_{down,up}() static (they have been replaced by

[PATCH 5/6] ARM: shmobile: r8a7779: Remove explicit SYSC config and init

2018-05-30 Thread Geert Uytterhoeven
If the R-Car H1 system controller is described in DT, the rcar-sysc driver configures SYSCIER and SYSCIMR based on the SoC-specific power area definitions in r8a7779-sysc. The platform code still passed this information to the rcar-sysc driver, for compatibility with old DTBs predating commit

[PATCH 3/3] ARM: shmobile: apmu: Remove platsmp-apmu.h

2018-05-30 Thread Geert Uytterhoeven
After the removal of the legacy SMP fallbacks, platsmp-apmu.h is no longer needed outside platsmp-apmu.c. Hence remove platsmp-apmu.h, and make the functions exported previously static. As the header file also provided forward declarations, the code in platsmp-apmu.c must be reshuffled.

[PATCH 1/3] ARM: shmobile: apmu: Move cpu_leave_lowpower() to SUSPEND section

2018-05-30 Thread Geert Uytterhoeven
cpu_leave_lowpower() is used for suspend only, not for CPU hotplug. Hence move it from the HOTPLUG_CPU || SUSPEND section to the SUSPEND section. Signed-off-by: Geert Uytterhoeven --- arch/arm/mach-shmobile/platsmp-apmu.c | 30 +++--- 1 file changed, 15 insertions(+), 15

[PATCH 2/3] ARM: shmobile: apmu: Remove obsolete shmobile_smp_apmu_prepare_cpus()

2018-05-30 Thread Geert Uytterhoeven
After the removal of the legacy SMP fallbacks, there are no more users left of shmobile_smp_apmu_prepare_cpus(). Remove it, together with the legacy SMP config parser. Signed-off-by: Geert Uytterhoeven --- arch/arm/mach-shmobile/platsmp-apmu.c | 40 ---

[PATCH 0/3] ARM: shmobile: apmu: Cleanups after legacy SMP fallback removal

2018-05-30 Thread Geert Uytterhoeven
Hi Simon, Magnus, Now the legacy SMP fallbacks for R-Car H2 and M2-W have been removed, a few more code cleanups can be applied. The third patch is a bit larger than I had hoped, due to the need to reshuffle a few functions in the absence of forward declarations. Tested on Lager (R-Car

Re: [PATCH 6/9] ARM: dts: wheat: Drop MTD partitioning from DT

2018-05-30 Thread Marek Vasut
On 05/28/2018 11:36 AM, Simon Horman wrote: > On Mon, May 28, 2018 at 10:54:57AM +0200, Geert Uytterhoeven wrote: >> Hi Simon, >> >> On Mon, May 28, 2018 at 10:41 AM, Simon Horman wrote: >>> On Thu, May 24, 2018 at 04:52:59PM +0200, Marek Vasut wrote: On 05/23/2018 08:25 AM, Geert

[PATCH V4] ARM: dts: rmobile: Drop MTD partitioning from DT

2018-05-30 Thread Marek Vasut
Drop the MTD partitioning from DT, since it does not describe HW and to give way to a more flexible kernel command line partition passing. To retain the original partitioning, assure you have enabled CONFIG_MTD_CMDLINE_PARTS in your kernel config and add the following to your kernel command line:

[PATCH] ARM: dts: rmobile: Drop MTD partitioning from DT

2018-05-30 Thread Marek Vasut
Drop the MTD partitioning from DT, since it does not describe HW and to give way to a more flexible kernel command line partition passing. To retain the original partitioning, assure you have enabled CONFIG_MTD_CMDLINE_PARTS in your kernel config and add the following to your kernel command line:

Re: [PATCH 2/2] arm64: dts: renesas: condor: add I2C0 support

2018-05-30 Thread Simon Horman
On Tue, May 29, 2018 at 06:46:10PM +0300, Sergei Shtylyov wrote: > Hello! > > On 05/29/2018 04:10 PM, Simon Horman wrote: > > >> Define the Condor board dependent part of the I2C0 device node. > >> > >> The I2C0 bus is populated by 2 ON Semiconductor PCA9654 I/O expanders > >> and Analog Devices

RE: [RFC PATCH 1/1] i2c: rcar: handle RXDMA HW bug on Gen3

2018-05-30 Thread Yoshihiro Shimoda
Hi Wolfram-san, Thank you for the patch! > From: Wolfram Sang, Sent: Tuesday, May 29, 2018 7:59 PM > Subject: [RFC PATCH 1/1] i2c: rcar: handle RXDMA HW bug on Gen3 If possible, I'd like to replace "bug" with "specification" or other words :) > @@ -743,6 +753,16 @@ static int