Skip to content

Add cpufreq support for Armada 8K

Gregory CLEMENT linux-arm-kernel linux-pm 4 versions – Applied

Status from this message: Applied. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 1 replyApplied
  2. v42 patches 1 replySuperseded
  3. v32 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches0 repliesSuperseded

Changes in v5 from the cover letter

- Rebased onto v5.0-rc1

- Rewrite the clk_get part in armada_8k_get_sharing_cpus()

- Reverse the call function order in armada_8k_cpufreq_exit()

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2MAINTAINERS: add new entries for Armada 8K cpufreq driverMAINTAINERS+1 -00 replies
2/2cpufreq: ap806: add cpufreq driver for Armada 8Kdrivers/cpufreq/Kconfig.arm drivers/cpufreq/Makefile drivers/cpufreq/armada-8k-cpufreq.c+215 -00 replies
2/2cpufreq: ap806: add cpufreq driver for Armada 8Kdrivers/cpufreq/Kconfig.arm drivers/cpufreq/Makefile drivers/cpufreq/armada-8k-cpufreq.c+216 -00 replies

Reviews trailers per patch

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

Read the v5 thread

Cover letter [PATCH v5 0/2] Add cpufreq support for Armada 8K

Hi,

this is the fifth version of a the series adding the cpufreq support for the Marvell Armada 8K SoCs.

Gregory

Changelog:
v4 -> v5:

- Rebased onto v5.0-rc1

- Rewrite the clk_get part in armada_8k_get_sharing_cpus()

- Reverse the call function order in armada_8k_cpufreq_exit()

v3 -> v4:

- Remove most of the global variable and use the private data of the platfrom device to store the freq_tables struct.

- Remove the clk pointer of the freq_table struct which is no more needed with the new way to register the opp

- Check the get_cpu_device() return.

- Balance the clk_get() calls.

- No more use the devm_ function.

- Base the registration of the opp on the cpu mask updated after each iteration to find the shared cpus.

- Base the free on the NULL or 0 value of the freq_table struct members, it allows to remove the global index.

v2 -> v3

- Make the driver really modular (modprobe;modprobe -r;modprobe; is working)

- Don't use anymore 100MHz as minimal frequency, but only max frequency/4

- Fix remaining warning reported by checkpatch

- Rework the registering of the opp

v1 -> v2:

- Fix typos in MAINTAINERS (reported by Baruch Siach) and in armada-8k-cpufreq.c (reported by Thomas Petazzoni)

- Fix indentation in Kconfig.arm (reported by Thomas Petazzoni)

- Use const for opps_div (reported by Thomas Petazzoni)

- Fix memory leak of opps_array (reported by Thomas Petazzoni)

Gregory CLEMENT (2):
MAINTAINERS: add new entries for Armada 8K cpufreq driver
cpufreq: ap806: add cpufreq driver for Armada 8K

 MAINTAINERS                         |   1 +
 drivers/cpufreq/Kconfig.arm         |  11 ++
 drivers/cpufreq/Makefile            |   1 +
 drivers/cpufreq/armada-8k-cpufreq.c | 203 ++++++++++++++++++++++++++++
 4 files changed, 216 insertions(+)
 create mode 100644 drivers/cpufreq/armada-8k-cpufreq.c
Signature · 1 line
2.20.1