Skip to contentSkip to conversation

cpufreq: exynos5440: support for cpufreq driver

PATCH Superseded Amit Daniel Kachhap 4 participants 13 messages Mar 28, 2013 – Apr 8, 2013

Subsystems (5)

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v5 cover cpufreq: exynos5440: support for cpufreq driver

Submitting the V5 version of exynos5440 cpufreq driver. This patchset addresses all the coding and design concerns raised especially by Viresh.

Changes in V5:
* Removed the unnecessary DT look up entry from mach-exynos5-dt.c.
* Fixed all coding and comments issue raised by Viresh.

Changes in V4:
* Added dev_err logs instead of pr_err.
* Used the devm_ioremap_resource API.
* Implemented several coding guidelines and minor error comments from Sylwester, Russell and Viresh.

Changes in V3:
* Converted the driver to probe based as suggested by Viresh. This is also beneficial for multiplatform kernel.
* Other coding guidelines related changes.
* Moved the DT node outside cpu0 node as the driver is now a platform driver.

Changes in V2:
* Added OPP library support to parse DT parameters.
* Removed a hack to handle interrupts in bootup.
* Implemented other review comments from Viresh and Inder.

All these patches are dependent on Thomas Abraham common clock patches.
(http://www.mail-archive.com/[email protected]/msg15860.html)
This whole patch series is based on 3.9-rc4.

Amit Daniel Kachhap (4):
cpufreq: exynos: Add cpufreq driver for exynos5440
cpufreq: exynos: Remove error return even if no soc is found
arm: exynos: Enable OPP library support for exynos5440
arm: dts: Add cpufreq controller node for Exynos5440 SoC

 .../bindings/cpufreq/cpufreq-exynos5440.txt        |   28 ++
 arch/arm/boot/dts/exynos5440.dtsi                  |   12 +
 arch/arm/mach-exynos/Kconfig                       |    2 +
 drivers/cpufreq/Kconfig.arm                        |    9 +
 drivers/cpufreq/Makefile                           |    1 +
 drivers/cpufreq/exynos-cpufreq.c                   |    2 +-
 drivers/cpufreq/exynos5440-cpufreq.c               |  474 ++++++++++++++++++++
 7 files changed, 527 insertions(+), 1 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-exynos5440.txt
 create mode 100644 drivers/cpufreq/exynos5440-cpufreq.c
#1 lore raw

PATCH v5 1/4 cpufreq: exynos: Add cpufreq driver for exynos5440

This patch adds dvfs support for exynos5440 SOC. This soc has 4 cores and they scale at same frequency. The nature of exynos5440 clock controller is different from previous exynos controllers so not using the common exynos cpufreq framework. The major difference being interrupt notification for frequency change. Also, OPP library is used for device tree parsing to get different parameters like frequency, voltage etc. Since the opp library sorts the frequency table in ascending order so they are again re-arranged in descending order. This will have one-to-one mapping with the clock controller state management logic.

---
 .../bindings/cpufreq/cpufreq-exynos5440.txt        |   28 ++
 drivers/cpufreq/Kconfig.arm                        |    9 +
 drivers/cpufreq/Makefile                           |    1 +
 drivers/cpufreq/exynos5440-cpufreq.c               |  474 ++++++++++++++++++++
 4 files changed, 512 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-exynos5440.txt
 create mode 100644 drivers/cpufreq/exynos5440-cpufreq.c
Documentation/devicetree/bindings/cpufreq/cpufreq-exynos5440.txt new file +28 -0
new file mode 100644
index 0000000..caff1a5
@@ -0,0 +1,28 @@
+
+Exynos5440 cpufreq driver
+-------------------
+
+Exynos5440 SoC cpufreq driver for CPU frequency scaling.
+
+Required properties:
+- interrupts: Interrupt to know the completion of cpu frequency change.
+- operating-points: Table of frequencies and voltage CPU could be transitioned into,
+	in the decreasing order. Frequency should be in KHz units and voltage
+	should be in microvolts.
+
+Optional properties:
+- clock-latency: Clock monitor latency in microsecond.
+
+All the required listed above must be defined under node cpufreq.
+
+Example:
+--------
+	cpufreq@160000 {
+		compatible = "samsung,exynos5440-cpufreq";
+		reg = <0x160000 0x1000>;
+		interrupts = <0 57 0>;
+		operating-points = <
+				1000000 975000
+				800000  925000>;
+		clock-latency = <100000>;
+	};
drivers/cpufreq/Kconfig.arm +9 -0
index 030ddf6..7ed9c4a 100644
@@ -77,6 +77,15 @@ config ARM_EXYNOS5250_CPUFREQ
 	  This adds the CPUFreq driver for Samsung EXYNOS5250
 	  SoC.
 
+config ARM_EXYNOS5440_CPUFREQ
+	def_bool SOC_EXYNOS5440
+	depends on HAVE_CLK && PM_OPP && OF
+	help
+	  This adds the CPUFreq driver for Samsung EXYNOS5440
+	  SoC. The nature of exynos5440 clock controller is
+	  different than previous exynos controllers so not using
+	  the common exynos framework.
+
 config ARM_KIRKWOOD_CPUFREQ
 	def_bool ARCH_KIRKWOOD && OF
 	help
drivers/cpufreq/Makefile +1 -0
index 863fd18..c841438 100644
@@ -52,6 +52,7 @@ obj-$(CONFIG_ARM_EXYNOS_CPUFREQ)	+= exynos-cpufreq.o
 obj-$(CONFIG_ARM_EXYNOS4210_CPUFREQ)	+= exynos4210-cpufreq.o
 obj-$(CONFIG_ARM_EXYNOS4X12_CPUFREQ)	+= exynos4x12-cpufreq.o
 obj-$(CONFIG_ARM_EXYNOS5250_CPUFREQ)	+= exynos5250-cpufreq.o
+obj-$(CONFIG_ARM_EXYNOS5440_CPUFREQ)	+= exynos5440-cpufreq.o
 obj-$(CONFIG_ARM_KIRKWOOD_CPUFREQ)	+= kirkwood-cpufreq.o
 obj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ)	+= omap-cpufreq.o
 obj-$(CONFIG_ARM_SPEAR_CPUFREQ)		+= spear-cpufreq.o
drivers/cpufreq/exynos5440-cpufreq.c new file +474 -0

474 lines not on this page · raw message

Signature · 1 line
1.7.1
maintainer
#2 lore raw

Re: [PATCH V5 1/4] cpufreq: exynos: Add cpufreq driver for exynos5440

Quoted 11 lines · Amit Daniel Kachhap

This patch adds dvfs support for exynos5440 SOC. This soc has 4 cores and they scale at same frequency. The nature of exynos5440 clock controller is different from previous exynos controllers so not using the common exynos cpufreq framework. The major difference being interrupt notification for frequency change. Also, OPP library is used for device tree parsing to get different parameters like frequency, voltage etc. Since the opp library sorts the frequency table in ascending order so they are again re-arranged in descending order. This will have one-to-one mapping with the clock controller state management logic.

Mostly okay now, just minor comments:

drivers/cpufreq/exynos5440-cpufreq.c line 281

Quoted 12 lines
drivers/cpufreq/exynos5440-cpufreq.c +10 -0
+static void exynos_cpufreq_work(struct work_struct *work)
+{
 
+       if (likely(index < dvfs_info->freq_count)) {
+               freqs.new = freq_table[index].frequency;
+               for_each_cpu(freqs.cpu, policy->cpus)
+                       cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
+               dvfs_info->cur_frequency = freqs.new;
+       } else {
+               dev_crit(dvfs_info->dev, "New frequency out of range\n");
+       }

I believe there is something wrong here. For failure cases too we need to issue cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); with the old frequency.

drivers/cpufreq/exynos5440-cpufreq.c line 442

Quoted 11 lines
drivers/cpufreq/exynos5440-cpufreq.c +10 -0
+static int exynos_cpufreq_probe(struct platform_device *pdev)
+{
 
+       ret = cpufreq_register_driver(&exynos_driver);
+       if (ret) {
+               dev_err(dvfs_info->dev,
+                       "%s: failed to register cpufreq driver\n", __func__);
+               goto err_free_table;
+       }
+
+       of_node_put(np);

Don't we need to put node everytime?

drivers/cpufreq/exynos5440-cpufreq.c line 452

Quoted 10 lines
drivers/cpufreq/exynos5440-cpufreq.c +10 -0
+       dvfs_info->dvfs_enabled = true;
+       return 0;
+
+err_free_table:
+       opp_free_cpufreq_table(dvfs_info->dev, &dvfs_info->freq_table);
+err_put_node:
+       of_node_put(np);
+       dev_err(dvfs_info->dev, "%s: failed initialization\n", __func__);
+       return ret;
+}

--
viresh

maintainer
#3 lore raw

Re: [PATCH V5 1/4] cpufreq: exynos: Add cpufreq driver for exynos5440

In reply to Amit Daniel Kachhap

drivers/cpufreq/exynos5440-cpufreq.c line 331

Quoted 12 lines · Amit Daniel Kachhap

+++ b/drivers/cpufreq/exynos5440-cpufreq.c

drivers/cpufreq/exynos5440-cpufreq.c new file +11 -0
+static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy)
+{
+       policy->cur = dvfs_info->cur_frequency;
+       cpufreq_frequency_table_get_attr(dvfs_info->freq_table, policy->cpu);
+
+       /* set the transition latency value */
+       policy->cpuinfo.transition_latency = dvfs_info->latency;
+
+       cpumask_setall(policy->cpus);
+
+       return cpufreq_frequency_table_cpuinfo(policy, dvfs_info->freq_table);

I missed this earlier and saw this mistake in yet another driver. You need to call cpufreq_frequency_table_get_attr() only when cpufreq_frequency_table_cpuinfo() has passed.

Quoted 1 line

+}

#4 lore raw

Re: [PATCH V5 1/4] cpufreq: exynos: Add cpufreq driver for exynos5440

Quoted 18 lines · Viresh Kumar

drivers/cpufreq/exynos5440-cpufreq.c line 331

Quoted 12 lines · Amit Daniel Kachhap

+++ b/drivers/cpufreq/exynos5440-cpufreq.c

drivers/cpufreq/exynos5440-cpufreq.c new file +11 -0
+static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy)
+{
+       policy->cur = dvfs_info->cur_frequency;
+       cpufreq_frequency_table_get_attr(dvfs_info->freq_table, policy->cpu);
+
+       /* set the transition latency value */
+       policy->cpuinfo.transition_latency = dvfs_info->latency;
+
+       cpumask_setall(policy->cpus);
+
+       return cpufreq_frequency_table_cpuinfo(policy, dvfs_info->freq_table);

I missed this earlier and saw this mistake in yet another driver. You need to call cpufreq_frequency_table_get_attr() only when cpufreq_frequency_table_cpuinfo() has passed.

ok. Submitted the V6 version with this change.

Quoted 7 lines
Quoted 3 lines

+}

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

PATCH v5 2/4 cpufreq: exynos: Remove error return even if no soc is found

In reply to Amit Daniel Kachhap

This patch helps to have single binary for exynos5440 and previous exynos soc's. This change is needed for adding exynos5440 cpufreq driver which does not uses exynos-cpufreq common file and adds it own driver.

---
 drivers/cpufreq/exynos-cpufreq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/cpufreq/exynos-cpufreq.c +1 -1
index 78057a3..ee75997 100644
@@ -297,7 +297,7 @@ static int __init exynos_cpufreq_init(void)
 	else if (soc_is_exynos5250())
 		ret = exynos5250_cpufreq_init(exynos_info);
 	else
-		pr_err("%s: CPU type not found\n", __func__);
+		return 0;
 
 	if (ret)
 		goto err_vdd_arm;
Signature · 1 line
1.7.1
#6 lore raw

PATCH v5 3/4 arm: exynos: Enable OPP library support for exynos5440

In reply to Amit Daniel Kachhap

The OPP library support is needed for exynos5440 cpu frequency dynamic scaling driver.

---
 arch/arm/mach-exynos/Kconfig |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-exynos/Kconfig +2 -0
index 70f94c8..d5dde07 100644
@@ -72,10 +72,12 @@ config SOC_EXYNOS5440
 	bool "SAMSUNG EXYNOS5440"
 	default y
 	depends on ARCH_EXYNOS5
+	select ARCH_HAS_OPP
 	select ARM_ARCH_TIMER
 	select AUTO_ZRELADDR
 	select PINCTRL
 	select PINCTRL_EXYNOS5440
+	select PM_OPP
 	help
 	  Enable EXYNOS5440 SoC support
 
Signature · 1 line
1.7.1
#7 lore raw

PATCH v5 4/4 arm: dts: Add cpufreq controller node for Exynos5440 SoC

In reply to Amit Daniel Kachhap

Add cpufreq controller device node for Exynos5440 SoC for passing parameters like controller base address, interrupt and cpufreq table. This node is added outside cpu0 as this driver is now a platform driver and a new device structure is needed.

---
 arch/arm/boot/dts/exynos5440.dtsi |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
arch/arm/boot/dts/exynos5440.dtsi +12 -0
index 9a99755..94074ea 100644
@@ -63,6 +63,18 @@
 
 	};
 
+	cpufreq@160000 {
+		compatible = "samsung,exynos5440-cpufreq";
+		reg = <0x160000 0x1000>;
+		interrupts = <0 57 0>;
+		operating-points = <
+				/* KHz	  uV */
+				1200000 1025000
+				1000000 975000
+				800000  925000
+		>;
+	};
+
 	serial@B0000 {
 		compatible = "samsung,exynos4210-uart";
 		reg = <0xB0000 0x1000>;
Signature · 1 line
1.7.1
maintainer
#8 lore raw
In reply to Amit Daniel Kachhap
Quoted 6 lines · Amit Daniel Kachhap

Submitting the V5 version of exynos5440 cpufreq driver. This patchset addresses all the coding and design concerns raised especially by Viresh.

Changes in V5:
* Removed the unnecessary DT look up entry from mach-exynos5-dt.c.
* Fixed all coding and comments issue raised by Viresh.

People normally forget what they commented on earlier and that's why this change log phenomenon was introduced. Some more details would be better here for next time.

#9 lore raw
In reply to Amit Daniel Kachhap
Quoted 35 lines · Amit Daniel Kachhap

Submitting the V5 version of exynos5440 cpufreq driver. This patchset addresses all the coding and design concerns raised especially by Viresh.

Changes in V5:
* Removed the unnecessary DT look up entry from mach-exynos5-dt.c.
* Fixed all coding and comments issue raised by Viresh.

Changes in V4:
* Added dev_err logs instead of pr_err.
* Used the devm_ioremap_resource API.
* Implemented several coding guidelines and minor error comments from Sylwester, Russell and Viresh.

Changes in V3:
* Converted the driver to probe based as suggested by Viresh. This is also beneficial for multiplatform kernel.
* Other coding guidelines related changes.
* Moved the DT node outside cpu0 node as the driver is now a platform driver.

Changes in V2:
* Added OPP library support to parse DT parameters.
* Removed a hack to handle interrupts in bootup.
* Implemented other review comments from Viresh and Inder.

All these patches are dependent on Thomas Abraham common clock patches.
(http://www.mail-archive.com/[email protected]/msg15860.html)
This whole patch series is based on 3.9-rc4.

Amit Daniel Kachhap (4):
cpufreq: exynos: Add cpufreq driver for exynos5440
cpufreq: exynos: Remove error return even if no soc is found
arm: exynos: Enable OPP library support for exynos5440
arm: dts: Add cpufreq controller node for Exynos5440 SoC

Quoted 10 lines
 .../bindings/cpufreq/cpufreq-exynos5440.txt        |   28 ++
 arch/arm/boot/dts/exynos5440.dtsi                  |   12 +
 arch/arm/mach-exynos/Kconfig                       |    2 +
 drivers/cpufreq/Kconfig.arm                        |    9 +
 drivers/cpufreq/Makefile                           |    1 +
 drivers/cpufreq/exynos-cpufreq.c                   |    2 +-
 drivers/cpufreq/exynos5440-cpufreq.c               |  474 ++++++++++++++++++++
 7 files changed, 527 insertions(+), 1 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-exynos5440.txt
 create mode 100644 drivers/cpufreq/exynos5440-cpufreq.c

Is this for me or the Samsung tree?

If it's for me, I need ACKs from the Samsung tree maintainers. Also, please address the Viresh's comments.

Thanks,
Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#10 lore raw
Quoted 47 lines · Rafael J. Wysocki
Quoted 35 lines · Amit Daniel Kachhap

Submitting the V5 version of exynos5440 cpufreq driver. This patchset addresses all the coding and design concerns raised especially by Viresh.

Changes in V5:
* Removed the unnecessary DT look up entry from mach-exynos5-dt.c.
* Fixed all coding and comments issue raised by Viresh.

Changes in V4:
* Added dev_err logs instead of pr_err.
* Used the devm_ioremap_resource API.
* Implemented several coding guidelines and minor error comments from Sylwester, Russell and Viresh.

Changes in V3:
* Converted the driver to probe based as suggested by Viresh. This is also beneficial for multiplatform kernel.
* Other coding guidelines related changes.
* Moved the DT node outside cpu0 node as the driver is now a platform driver.

Changes in V2:
* Added OPP library support to parse DT parameters.
* Removed a hack to handle interrupts in bootup.
* Implemented other review comments from Viresh and Inder.

All these patches are dependent on Thomas Abraham common clock patches.
(http://www.mail-archive.com/[email protected]/msg15860.html)
This whole patch series is based on 3.9-rc4.

Amit Daniel Kachhap (4):
cpufreq: exynos: Add cpufreq driver for exynos5440
cpufreq: exynos: Remove error return even if no soc is found
arm: exynos: Enable OPP library support for exynos5440
arm: dts: Add cpufreq controller node for Exynos5440 SoC

Quoted 10 lines
 .../bindings/cpufreq/cpufreq-exynos5440.txt        |   28 ++
 arch/arm/boot/dts/exynos5440.dtsi                  |   12 +
 arch/arm/mach-exynos/Kconfig                       |    2 +
 drivers/cpufreq/Kconfig.arm                        |    9 +
 drivers/cpufreq/Makefile                           |    1 +
 drivers/cpufreq/exynos-cpufreq.c                   |    2 +-
 drivers/cpufreq/exynos5440-cpufreq.c               |  474 ++++++++++++++++++++
 7 files changed, 527 insertions(+), 1 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-exynos5440.txt
 create mode 100644 drivers/cpufreq/exynos5440-cpufreq.c
Quoted 8 lines

Is this for me or the Samsung tree?

If it's for me, I need ACKs from the Samsung tree maintainers. Also, please address the Viresh's comments.

Thanks,
Rafael

Hi Rafael,

I submitted the V6 version with all comments from Viresh addressed.

Hi Kukjin Kim,

Any suggestion on how this patch should be merged. In my opinion it should go via Rafael's tree as this patch uses some fixes present in Rafael's tree like modified cpufreq_notify_transition API.

Thanks,
Amit Daniel

Quoted 9 lines

--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Acked-by
#11 lore raw
Quoted 66 lines · amit daniel kachhap
Quoted 2 lines · Rafael J. Wysocki
Quoted 1 line · Amit Daniel Kachhap

Submitting the V5 version of exynos5440 cpufreq driver. This patchset

addresses

Quoted 10 lines
Quoted 10 lines

all the coding and design concerns raised especially by Viresh.

Changes in V5:
* Removed the unnecessary DT look up entry from mach-exynos5-dt.c.
* Fixed all coding and comments issue raised by Viresh.

Changes in V4:
* Added dev_err logs instead of pr_err.
* Used the devm_ioremap_resource API.
* Implemented several coding guidelines and minor error comments from

Sylwester,

Quoted 4 lines
Quoted 4 lines

Russell and Viresh.

Changes in V3:
* Converted the driver to probe based as suggested by Viresh. This is

also

Quoted 5 lines
Quoted 5 lines

beneficial for multiplatform kernel.
* Other coding guidelines related changes.
* Moved the DT node outside cpu0 node as the driver is now a platform driver.

Quoted 7 lines
Quoted 7 lines

Changes in V2:
* Added OPP library support to parse DT parameters.
* Removed a hack to handle interrupts in bootup.
* Implemented other review comments from Viresh and Inder.

All these patches are dependent on Thomas Abraham common clock patches.
(http://www.mail-archive.com/linux-samsung-

[email protected]/msg15860.html)

Quoted 8 lines
Quoted 8 lines

This whole patch series is based on 3.9-rc4.

Amit Daniel Kachhap (4):
cpufreq: exynos: Add cpufreq driver for exynos5440
cpufreq: exynos: Remove error return even if no soc is found
arm: exynos: Enable OPP library support for exynos5440
arm: dts: Add cpufreq controller node for Exynos5440 SoC

Quoted 7 lines
Quoted 7 lines
 .../bindings/cpufreq/cpufreq-exynos5440.txt        |   28 ++
 arch/arm/boot/dts/exynos5440.dtsi                  |   12 +
 arch/arm/mach-exynos/Kconfig                       |    2 +
 drivers/cpufreq/Kconfig.arm                        |    9 +
 drivers/cpufreq/Makefile                           |    1 +
 drivers/cpufreq/exynos-cpufreq.c                   |    2 +-
 drivers/cpufreq/exynos5440-cpufreq.c               |  474

++++++++++++++++++++

Quoted 2 lines
Quoted 2 lines
 7 files changed, 527 insertions(+), 1 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-

exynos5440.txt

Quoted 5 lines
Quoted 1 line
 create mode 100644 drivers/cpufreq/exynos5440-cpufreq.c

Is this for me or the Samsung tree?

If it's for me, I need ACKs from the Samsung tree maintainers. Also,

please

Quoted 5 lines

address the Viresh's comments.

Thanks,
Rafael

Hi Rafael,

Quoted 8 lines

I submitted the V6 version with all comments from Viresh addressed.

Hi Kukjin Kim,

Any suggestion on how this patch should be merged. In my opinion it should go via Rafael's tree as this patch uses some fixes present in Rafael's tree like modified cpufreq_notify_transition API.

Yes, I agree. The v6 series including resending 1/4 patch looks good to me. But the patch V6 4/4 would be sent to upstream via samsung tree to avoid useless merge conflicts and I think, it's possible.

So Rafael, please take 1/4 ~ 3/4 patches in your tree with my ack.

If any problems, please let me know.

Thanks.

- Kukjin

#12 lore raw
Quoted 79 lines · Kukjin Kim
Quoted 66 lines · amit daniel kachhap
Quoted 2 lines · Rafael J. Wysocki
Quoted 1 line · Amit Daniel Kachhap

Submitting the V5 version of exynos5440 cpufreq driver. This patchset

addresses

Quoted 10 lines
Quoted 10 lines

all the coding and design concerns raised especially by Viresh.

Changes in V5:
* Removed the unnecessary DT look up entry from mach-exynos5-dt.c.
* Fixed all coding and comments issue raised by Viresh.

Changes in V4:
* Added dev_err logs instead of pr_err.
* Used the devm_ioremap_resource API.
* Implemented several coding guidelines and minor error comments from

Sylwester,

Quoted 4 lines
Quoted 4 lines

Russell and Viresh.

Changes in V3:
* Converted the driver to probe based as suggested by Viresh. This is

also

Quoted 5 lines
Quoted 5 lines

beneficial for multiplatform kernel.
* Other coding guidelines related changes.
* Moved the DT node outside cpu0 node as the driver is now a platform driver.

Quoted 7 lines
Quoted 7 lines

Changes in V2:
* Added OPP library support to parse DT parameters.
* Removed a hack to handle interrupts in bootup.
* Implemented other review comments from Viresh and Inder.

All these patches are dependent on Thomas Abraham common clock patches.
(http://www.mail-archive.com/linux-samsung-

[email protected]/msg15860.html)

Quoted 8 lines
Quoted 8 lines

This whole patch series is based on 3.9-rc4.

Amit Daniel Kachhap (4):
cpufreq: exynos: Add cpufreq driver for exynos5440
cpufreq: exynos: Remove error return even if no soc is found
arm: exynos: Enable OPP library support for exynos5440
arm: dts: Add cpufreq controller node for Exynos5440 SoC

Quoted 7 lines
Quoted 7 lines
 .../bindings/cpufreq/cpufreq-exynos5440.txt        |   28 ++
 arch/arm/boot/dts/exynos5440.dtsi                  |   12 +
 arch/arm/mach-exynos/Kconfig                       |    2 +
 drivers/cpufreq/Kconfig.arm                        |    9 +
 drivers/cpufreq/Makefile                           |    1 +
 drivers/cpufreq/exynos-cpufreq.c                   |    2 +-
 drivers/cpufreq/exynos5440-cpufreq.c               |  474

++++++++++++++++++++

Quoted 2 lines
Quoted 2 lines
 7 files changed, 527 insertions(+), 1 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-

exynos5440.txt

Quoted 5 lines
Quoted 1 line
 create mode 100644 drivers/cpufreq/exynos5440-cpufreq.c

Is this for me or the Samsung tree?

If it's for me, I need ACKs from the Samsung tree maintainers. Also,

please

Quoted 5 lines

address the Viresh's comments.

Thanks,
Rafael

Hi Rafael,

Quoted 8 lines

I submitted the V6 version with all comments from Viresh addressed.

Hi Kukjin Kim,

Any suggestion on how this patch should be merged. In my opinion it should go via Rafael's tree as this patch uses some fixes present in Rafael's tree like modified cpufreq_notify_transition API.

Yes, I agree. The v6 series including resending 1/4 patch looks good to me. But the patch V6 4/4 would be sent to upstream via samsung tree to avoid useless merge conflicts and I think, it's possible.

Quoted 5 lines

So Rafael, please take 1/4 ~ 3/4 patches in your tree with my ack.

If any problems, please let me know.

I will, thank you!

Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.