Skip to content

ARM: shmobile: shmobile_init_delay() conversion

Magnus Damm linux-sh 1 version In review

Get series with b4
b4 am 20140820130201.32075.45257.sendpatchset@w520

Versions newest first

  1. v1 Latest10 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ARM: shmobile: sh7372: Update DTS to include CPU frequencyarch/arm/boot/dts/sh7372.dtsi+1 -02 replies
2/10ARM: shmobile: sh73a0: Update DTS to include CPU frequencyarch/arm/boot/dts/sh73a0.dtsi+2 -00 replies
3/10ARM: shmobile: r8a7778: Update DTS to include CPU frequencyarch/arm/boot/dts/r8a7778.dtsi+6 -00 replies
4/10ARM: shmobile: sh7372: Use shmobile_init_delay()arch/arm/mach-shmobile/setup-sh7372.c+1 -10 replies
5/10ARM: shmobile: sh73a0: Use shmobile_init_delay()arch/arm/mach-shmobile/setup-sh73a0.c+1 -10 replies
6/10ARM: shmobile: r8a7778: Use shmobile_init_delay()arch/arm/mach-shmobile/setup-r8a7778.c+1 -10 replies
7/10ARM: shmobile: r8a73a4: Use shmobile_init_delay()arch/arm/mach-shmobile/r8a73a4.h arch/arm/mach-shmobile/setup-r8a73a4.c+1 -90 replies
8/10ARM: shmobile: Remove shmobile_setup_delay()arch/arm/mach-shmobile/common.h arch/arm/mach-shmobile/timer.c+2 -210 replies
9/10ARM: shmobile: bockw: Use shmobile_init_delay()arch/arm/mach-shmobile/board-bockw-reference.c arch/arm/mach-shmobile/board-bockw.c+2 -20 replies
10/10ARM: shmobile: kzm9g: Use shmobile_init_delay()arch/arm/mach-shmobile/board-kzm9g-reference.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] ARM: shmobile: shmobile_init_delay() conversion

ARM: shmobile: shmobile_init_delay() conversion

[PATCH 01/10] ARM: shmobile: sh7372: Update DTS to include CPU frequency [PATCH 02/10] ARM: shmobile: sh73a0: Update DTS to include CPU frequency [PATCH 03/10] ARM: shmobile: r8a7778: Update DTS to include CPU frequency [PATCH 04/10] ARM: shmobile: sh7372: Use shmobile_init_delay() [PATCH 05/10] ARM: shmobile: sh73a0: Use shmobile_init_delay() [PATCH 06/10] ARM: shmobile: r8a7778: Use shmobile_init_delay() [PATCH 07/10] ARM: shmobile: r8a73a4: Use shmobile_init_delay() [PATCH 08/10] ARM: shmobile: Remove shmobile_setup_delay() [PATCH 09/10] ARM: shmobile: bockw: Use shmobile_init_delay() [PATCH 10/10] ARM: shmobile: kzm9g: Use shmobile_init_delay()

Convert the ARM mach-shmobile subarch to use shmobile_init_delay() together with CPU Frequency information in DTS instead of specifying these things in C. Remove the now redundant shmobile_setup_delay().

Merge-wise, for this to remain bisectable patch 1-3 needs to be merged first (DTS) - any order is however fine. After that patch 4-7 can be applied in any order (SoC) followed by any order of the last patches 8-10 (core + board).

After this one more SoC series is needed to remove local now unused delay functions, but it needs to happen after the board code in patch 9 and 10 are merged, so to avoid cicular dependecy this has been omitted for now.

---

Written on top of renesas-devel-20140820-v3.17-rc1

Untested, but should be safe enough. Seems to build with shmobile_defconfig.

 arch/arm/boot/dts/r8a7778.dtsi                 |    6 ++++++
 arch/arm/boot/dts/sh7372.dtsi                  |    1 +
 arch/arm/boot/dts/sh73a0.dtsi                  |    2 ++
 arch/arm/mach-shmobile/board-bockw-reference.c |    2 +-
 arch/arm/mach-shmobile/board-bockw.c           |    2 +-
 arch/arm/mach-shmobile/board-kzm9g-reference.c |    2 +-
 arch/arm/mach-shmobile/common.h                |    2 --
 arch/arm/mach-shmobile/r8a73a4.h               |    1 -
 arch/arm/mach-shmobile/setup-r8a73a4.c         |    9 +--------
 arch/arm/mach-shmobile/setup-r8a7778.c         |    2 +-
 arch/arm/mach-shmobile/setup-sh7372.c          |    2 +-
 arch/arm/mach-shmobile/setup-sh73a0.c          |    2 +-
 arch/arm/mach-shmobile/timer.c                 |   21 ++-------------------
 13 files changed, 18 insertions(+), 36 deletions(-)