Skip to content

sh7724 clkdev lookup prototype

Magnus Damm linux-sh 1 version New

Get series with b4
b4 am 20100510112318.14587.10085.sendpatchset@t400s

Versions newest first

  1. v1 Latest13 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13sh: Skip uninitialized hwblk clocksarch/sh/kernel/cpu/hwblk.c+5 -00 replies
2/13sh: Rework sh7724 hwblk indexarch/sh/include/asm/hwblk.h arch/sh/kernel/cpu/sh4a/clock-sh7724.c+8 -80 replies
3/13sh: Rework sh7724 SCIF clock lookuparch/sh/kernel/cpu/sh4a/clock-sh7724.c+36 -60 replies
4/13sh: Use clkdev for sh7724 hwblk clocksarch/sh/kernel/cpu/sh4a/clock-sh7724.c+50 -00 replies
5/13sh: Allow registering clocks without namearch/sh/kernel/cpu/clock.c+4 -30 replies
6/13sh: Get rid of sh7724 hwblk clock namesarch/sh/include/asm/hwblk.h arch/sh/kernel/cpu/sh4a/clock-sh7724.c+55 -570 replies
7/13sh: Use clkdev for sh7724 div6 clocksarch/sh/kernel/cpu/sh4a/clock-sh7724.c+18 -60 replies
8/13sh: Get rid of sh7724 div6 clock namesarch/sh/include/asm/clock.h arch/sh/kernel/cpu/sh4a/clock-sh7724.c+6 -100 replies
9/13sh: Use clkdev for sh7724 div4 clocksarch/sh/kernel/cpu/sh4a/clock-sh7724.c+6 -00 replies
10/13sh: Get rid of sh7724 div4 clock namesarch/sh/include/asm/clock.h arch/sh/kernel/cpu/sh4a/clock-sh7724.c+14 -150 replies
11/13sh: Use clkdev for sh7724 main clocksarch/sh/kernel/cpu/sh4a/clock-sh7724.c+6 -00 replies
12/13sh: Get rid of sh7724 main clock namesarch/sh/kernel/cpu/sh4a/clock-sh7724.c+0 -100 replies
13/13sh: Kill off clock lookup codearch/sh/include/asm/clock.h arch/sh/kernel/cpu/clock.c+2 -360 replies

Reviews trailers per patch

None of the 13 patches has a Reviewed-by or Acked-by.

PatchMagnus Damm
SeriesNot-yet-signed-off-by
1/13
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/13] sh7724 clkdev lookup prototype

sh7724 clkdev lookup prototype

[PATCH 01/13] sh: Skip uninitialized hwblk clocks [PATCH 02/13] sh: Rework sh7724 hwblk index [PATCH 03/13] sh: Rework sh7724 SCIF clock lookup [PATCH 04/13] sh: Use clkdev for sh7724 hwblk clocks [PATCH 05/13] sh: Allow registering clocks without name [PATCH 06/13] sh: Get rid of sh7724 hwblk clock names [PATCH 07/13] sh: Use clkdev for sh7724 div6 clocks [PATCH 08/13] sh: Get rid of sh7724 div6 clock names [PATCH 09/13] sh: Use clkdev for sh7724 div4 clocks [PATCH 10/13] sh: Get rid of sh7724 div4 clock names [PATCH 11/13] sh: Use clkdev for sh7724 main clocks [PATCH 12/13] sh: Get rid of sh7724 main clock names [PATCH 13/13] sh: Kill off clock lookup code

This is a prototype for sh7724 that shows how to kill off the SH-specific clock lookup code. When all processors for SH are updated like this, only clkdev will be used to lookup clocks. In other words, the patches sync the SH behaviour with ARM.

The patches are pretty rough, and many must be updated further to include all other SH processors. So please treat these patches as prototypes for now. Just wanted to get the code out of the door for feedback.

[PATCH 01/13] and [PATCH 05/13] may be useful right now though.

Let me know what you think and I'll update the rest of the code.

On top of this it is not so difficult to remove the now unused name" and "id" members of struct clk.

Not-yet-signed-off-by Magnus Damm <[email protected]>

---

 arch/sh/include/asm/clock.h            |   19 --
 arch/sh/include/asm/hwblk.h            |    6 
 arch/sh/kernel/cpu/clock.c             |   44 ----
 arch/sh/kernel/cpu/hwblk.c             |    5 
 arch/sh/kernel/cpu/sh4a/clock-sh7724.c |  287 +++++++++++++++++++++-----------
 5 files changed, 210 insertions(+), 151 deletions(-)