[PATCH] cpufreq: imx: use the managed interfaces for resources allocation

2015-08-31 Thread Bai Ping
Replace the clk_get() and regulator_get() with the managed interfaces then the error path can be simplified. Signed-off-by: Bai Ping --- drivers/cpufreq/imx6q-cpufreq.c | 52 +++-- 1 file changed, 13 insertions(+), 39 deletions(-) diff --git a/drivers

Re: [PATCH] ARM: dts: imx: Fix the assigned-clock mismatch issue on imx6q/dl

2015-12-15 Thread Bai Ping
On 2015/12/15 19:16, Fabio Estevam wrote: On Tue, Dec 15, 2015 at 6:52 AM, Shawn Guo wrote: On Mon, Dec 14, 2015 at 11:07:50AM +0800, Shawn Guo wrote: On Wed, Dec 09, 2015 at 04:15:55PM +0800, Bai Ping wrote: The 'assigned-clock-parents' and 'assigned-clock-rates' list

[PATCH] cpufreq: imx: update the clock swith flow to support imx6ul

2015-09-10 Thread Bai Ping
6 SOC cpufreq driver. Signed-off-by: Bai Ping --- drivers/cpufreq/imx6q-cpufreq.c | 48 - 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index 380a90d..2431b6d 100644 --- a/d

[PATCH v2] cpufreq: imx: update the clock switch flow to support imx6ul

2015-09-11 Thread Bai Ping
6 SOC cpufreq driver. Signed-off-by: Bai Ping --- change for v2: add the missed 'clk_put' in imx6q_cpufreq_remove(). drivers/cpufreq/imx6q-cpufreq.c | 50 - 1 file changed, 45 insertions(+), 5 deletions(-) diff --git a/drivers/cpufreq/imx6q-cpu

Re: [PATCH v2] cpufreq: imx: update the clock switch flow to support imx6ul

2015-09-11 Thread Bai Ping
On 2015/9/11 16:07, Viresh Kumar wrote: On 11-09-15, 23:41, Bai Ping wrote: + if (of_machine_is_compatible("fsl,imx6ul")) { + pll2_bus_clk = clk_get(cpu_dev, "pll2_bus"); + secondary_sel_clk = clk_get(cpu_dev, "secondary_sel"

[PATCH] thermal: imx: register irq handler later in probe

2015-09-13 Thread Bai Ping
ter kernel panic. Signed-off-by: Bai Ping --- drivers/thermal/imx_thermal.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index 4bec1d3..acd1c78 100644 --- a/drivers/thermal/imx_thermal.c +++

[PATCH] ARM: dts: imx: Fix the assigned-clock mismatch issue on imx6q/dl

2015-12-09 Thread Bai Ping
The 'assigned-clock-parents' and 'assigned-clock-rates' list should corresponding to the 'assigned-clocks' property clock list. Signed-off-by: Bai Ping --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH] clk: imx: add 'is_prepared' clk_ops callback for pllv3 clk

2015-11-02 Thread Bai Ping
Add 'is_prepared' callback function for pllv3 type clk to make sure when the system is bootup, the unused clk is in a known state to match the prepare count info. Signed-off-by: Bai Ping --- drivers/clk/imx/clk-pllv3.c | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH] cpufreq: imx: Add cpufreq driver for imx7D/Solo SOC

2015-11-22 Thread Bai Ping
The i.MX7Dual/Solo is a new series of the i.MX SOC family. The existing cpufreq driver for 'i.MX6' or 'cpufreq-dt' can NOT match the requirement of this new SOC. This patch adds the cpufreq driver for i.MX7Dual/Solo. Signed-off-by: Bai Ping --- drivers/cpufreq/Kconfig.arm

Re: [PATCH] cpufreq: imx: Add cpufreq driver for imx7D/Solo SOC

2015-11-23 Thread Bai Ping
On 2015/11/23 17:40, Lucas Stach wrote: Am Montag, den 23.11.2015, 22:07 +0800 schrieb Bai Ping: The i.MX7Dual/Solo is a new series of the i.MX SOC family. The existing cpufreq driver for 'i.MX6' or 'cpufreq-dt' can NOT match the requirement of this new SOC. This patch add

[PATCH Resend] clk: imx: add 'is_prepared' clk_ops callback for pllv3 clk

2015-11-24 Thread Bai Ping
Add 'is_prepared' callback function for pllv3 type clk to make sure when the system is bootup, the unused clk is in a known state to match the prepare count info. Signed-off-by: Bai Ping Reviewed-by: Lucas Stach --- -resend, add clk maintainers. drivers/clk/imx/clk-pl

Re: [PATCH] cpufreq: imx: Add cpufreq driver for imx7D/Solo SOC

2015-11-24 Thread Bai Ping
On 2015/11/24 17:08, Lucas Stach wrote: Am Dienstag, den 24.11.2015, 15:35 +0800 schrieb Bai Ping: On 2015/11/23 17:40, Lucas Stach wrote: Am Montag, den 23.11.2015, 22:07 +0800 schrieb Bai Ping: The i.MX7Dual/Solo is a new series of the i.MX SOC family. The existing cpufreq driver for

[PATCH] ARM: imx: add cpufreq device for imx6ul

2015-10-09 Thread Bai Ping
Add cpufreq device for i.MX6UL. Using the common cpufreq of i.MX6 SOC. Signed-off-by: Bai Ping --- arch/arm/mach-imx/mach-imx6ul.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c index be832b9..acaf705 100644 --- a

Re: [PATCH] clk: imx: add 'is_prepared' clk_ops callback for pllv3 clk

2015-11-10 Thread Bai Ping
On 2015/11/2 18:10, Lucas Stach wrote: Am Dienstag, den 03.11.2015, 02:06 +0800 schrieb Bai Ping: Add 'is_prepared' callback function for pllv3 type clk to make sure when the system is bootup, the unused clk is in a known state to match the prepare count info. What does this comm