Skip to content

cpufreq: bmips-cpufreq: Add CPUfreq driver for Broadcom's BMIPS SoCs

Markus Mayer linux-mips linux-pm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 3 repliesIn review
  2. v24 patches 4 repliesSuperseded
  3. v13 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- remove local variables freq and cpu_freq in bmips_cpufreq_get()
- assign global variable "priv" directly in bmips_cpufreq_probe() rather than setting driver_data and then retrieving it from there to set priv in bmips_cpufreq_init()

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4MIPS: BMIPS: Update defconfigarch/mips/configs/bmips_stb_defconfig+2 -60 replies
2/4BMIPS: Enable prerequisites for CPUfreq in MIPS Kconfig.arch/mips/Kconfig+2 -01 reply
3/4cpufreq: bmips-cpufreq: CPUfreq driver for Broadcom's BMIPS SoCsdrivers/cpufreq/Kconfig drivers/cpufreq/Makefile drivers/cpufreq/bmips-cpufreq.c+199 -02 replies
4/4MIPS: BMIPS: enable CPUfreqarch/mips/configs/bmips_stb_defconfig+8 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchViresh KumarFlorian Fainelli
1/4R-b
2/4A-b
3/4A-b A-b
4/4R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/4] cpufreq: bmips-cpufreq: Add CPUfreq driver for Broadcom's BMIPS SoCs

From: Markus Mayer <[email protected]>

Sorry for the new iteration. I found two more simplifications, so here goes. Only patch 3/4 has changed.

This series adds a CPUfreq driver for the BMIPS SoCs. In the first iteration only BMIPS5xxx SoCs are supported.

This series is based on pm/linux-next.

The series is also available at
https://github.com/mmayer/linux/tree/bmips-cpufreq-v3

Changes since v2:
- remove local variables freq and cpu_freq in bmips_cpufreq_get()
- assign global variable "priv" directly in bmips_cpufreq_probe() rather than setting driver_data and then retrieving it from there to set priv in bmips_cpufreq_init()

Changes since v1:
- based on pm/linux-next rather than 4.10-rc1
- sanitized bmips_stb_defconfig by running "make savedefconfig"; this also lead to an additional patch (1/4), which contains non-CPUfreq related updates that "make savedefconfig" performed
- use gobal variable to store driver data rather than policy->driver_data
- got rid of some code as a result of using said global variable
- kzalloc -> kmalloc
- removed policy->freq_table = NULL;

Markus Mayer (4):
MIPS: BMIPS: Update defconfig
BMIPS: Enable prerequisites for CPUfreq in MIPS Kconfig.
cpufreq: bmips-cpufreq: CPUfreq driver for Broadcom's BMIPS SoCs
MIPS: BMIPS: enable CPUfreq

 arch/mips/Kconfig                     |   2 +
 arch/mips/configs/bmips_stb_defconfig |  16 +--
 drivers/cpufreq/Kconfig               |  10 ++
 drivers/cpufreq/Makefile              |   1 +
 drivers/cpufreq/bmips-cpufreq.c       | 188 ++++++++++++++++++++++++++++++++++
 5 files changed, 211 insertions(+), 6 deletions(-)
 create mode 100644 drivers/cpufreq/bmips-cpufreq.c
Signature · 1 line
2.7.4