[PATCH 01/17] ARM: exynos: cpuidle: Prevent forward declaration

2014-04-04 Thread Daniel Lezcano
Move the structure below the 'exynos4_enter_lowpower' function so no more need of forward declaration. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c | 40 ++-- 1 file changed, 18 insertions(+), 22 deletions(-)

[PATCH 03/17] ARM: exynos: cpuidle: change function name prefix

2014-04-04 Thread Daniel Lezcano
The driver was initially written for exynos4 but the driver is used also for exynos5. Change the function prefix name exynos4 - exynos Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c | 20 ++-- 1 file changed, 10 insertions(+), 10

[PATCH 06/17] ARM: exynos: cpuidle: Fix S5P_WAKEUP_STAT call

2014-04-04 Thread Daniel Lezcano
This function should be called only when the powerdown sequence fails. Even if the current code does not hurt, by moving this line, we have the same code than the one in pm.c. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c |5 ++--- 1 file

[PATCH 07/17] ARM: exynos: cpuidle: Use the cpu_pm notifier

2014-04-04 Thread Daniel Lezcano
Use the cpu_pm_enter/exit notifier to group some pm code inside the pm file. The save and restore code is duplicated across pm.c and cpuidle.c. By using the cpu_pm notifier, we can factor out the routine. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c

[PATCH 08/17] ARM: exynos: cpuidle: Move scu_enable in the cpu_pm notifier

2014-04-04 Thread Daniel Lezcano
We make the cpuidle code less arch dependent. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c |6 -- arch/arm/mach-exynos/pm.c |3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c

[PATCH 04/17] ARM: exynos: cpuidle: encapsulate register access inside a function

2014-04-04 Thread Daniel Lezcano
That makes the code cleaner and encapsulted. The function will be reused in the next patch. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/pm.c | 65 - 1 file changed, 41 insertions(+), 24 deletions(-) diff --git

[PATCH 09/17] ARM: exynos: cpuidle: Remove ifdef for scu_enable

2014-04-04 Thread Daniel Lezcano
The scu_enable function is already a noop in the scu's header file is CONFIG_SMP=n, so no need to use these macros in the code. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/pm.c |5 - 1 file changed, 5 deletions(-) diff --git

[PATCH 12/17] ARM: exynos: cpuidle: Move S5P_CHECK_AFTR in a header

2014-04-04 Thread Daniel Lezcano
Move the S5P_CHECK_AFTR definition to the header it belongs to. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c |2 -- arch/arm/mach-exynos/regs-pmu.h |1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 10/17] ARM: exynos: cpuidle: Move exynos_set_wakeupmask in the cpu_pm notifier

2014-04-04 Thread Daniel Lezcano
Let's encapsulate more the PM code inside the PM file by moving the 'exynos_set_wakeupmask' function inside the pm.c and the call in the cpu_pm notifier. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c |7 --- arch/arm/mach-exynos/pm.c |

[PATCH 05/17] ARM: exynos: cpuidle: Move some code inside the idle_finisher

2014-04-04 Thread Daniel Lezcano
Move the code around to differentiate different section of code and prepare it to be factored out in the next patches. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git

[PATCH 00/17] ARM: exynos: cpuidle: Move the driver to drivers/cpuidle

2014-04-04 Thread Daniel Lezcano
This patchset relies on the cpm_pm notifier to initiate the powerdown sequence operations from pm.c instead cpuidle.c. Thus the cpuidle driver is no longer dependent from arch specific code as everything is called from the pm.c file. The patchset applies on top of v3.14. Tested on exynos4: 4210

[PATCH 16/17] ARM: exynos: cpuidle: Move the driver to drivers/cpuidle directory

2014-04-04 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/Makefile |1 - drivers/cpuidle/Kconfig.arm|7 +++ drivers/cpuidle/Makefile |1 + .../cpuidle.c = drivers/cpuidle/cpuidle-exynos.c

[PATCH 11/17] ARM: exynos: cpuidle: Move the power sequence call in the cpu_pm notifier

2014-04-04 Thread Daniel Lezcano
The code to initiate and exit the powerdown sequence is the same in pm.c and cpuidle.c. Let's split the common part in the pm.c and reuse it from the cpu_pm notifier. That is one more step forward to make the cpuidle driver arch indenpendant. Signed-off-by: Daniel Lezcano

[PATCH 17/17] ARM: exynos: config: Enable cpuidle

2014-04-04 Thread Daniel Lezcano
The cpuidle driver is broken since v3.11 and now we are at v3.14. Default the cpuidle driver to favorize a better detection next time. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/configs/exynos_defconfig |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 13/17] ARM: exynos: cpuidle: Move clock setup to pm.c

2014-04-04 Thread Daniel Lezcano
One more step is moving the clock ratio setting at idle time in pm.c The macro names have been changed to be consistent with the other macros name in the file. Note, the clock divider was working only when cpuidle was enabled because it was in its init routine. With this change, the clock

[PATCH 15/17] ARM: exynos: cpuidle: Pass the AFTR callback to the platform_data

2014-04-04 Thread Daniel Lezcano
No more dependency on the arch code. The platform_data field is used to set the PM callback as the other cpuidle driver. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/common.c |5 +++-- arch/arm/mach-exynos/common.h |1 +

[PATCH 14/17] ARM: exynos: cpuidle: Move the boot vector in pm.c

2014-04-04 Thread Daniel Lezcano
As usual, move the boot vector setting in the pm.c file and use the cpu_pm notifier to set it up. Remove the unused headers. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c | 22 -- arch/arm/mach-exynos/pm.c | 15

Re: [PATCH 01/17] ARM: exynos: cpuidle: Prevent forward declaration

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: Move the structure below the 'exynos4_enter_lowpower' function so no more need of forward declaration. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c | 40

Re: [PATCH 02/17] ARM: exynos: cpuidle: use cpuidle_register

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: Use the cpuidle generic function 'cpuidle_register'. That saves us from some extra lines of code and unneeded variables. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c | 18

Re: [PATCH 04/17] ARM: exynos: cpuidle: encapsulate register access inside a function

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: That makes the code cleaner and encapsulted. The function will be reused in the next patch. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/pm.c | 65

Re: [PATCH 05/17] ARM: exynos: cpuidle: Move some code inside the idle_finisher

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: Move the code around to differentiate different section of code and prepare it to be factored out in the next patches. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c | 17

Re: [PATCH 06/17] ARM: exynos: cpuidle: Fix S5P_WAKEUP_STAT call

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: This function should be called only when the powerdown sequence fails. Even if the current code does not hurt, by moving this line, we have the same code than the one in pm.c. Signed-off-by: Daniel Lezcano

Re: [PATCH 08/17] ARM: exynos: cpuidle: Move scu_enable in the cpu_pm notifier

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: We make the cpuidle code less arch dependent. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c |6 -- arch/arm/mach-exynos/pm.c |3 +++ 2 files changed, 3

Re: [PATCH 09/17] ARM: exynos: cpuidle: Remove ifdef for scu_enable

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: The scu_enable function is already a noop in the scu's header file is CONFIG_SMP=n, so no need to use these macros in the code. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/pm.c |5

Re: [PATCH 10/17] ARM: exynos: cpuidle: Move exynos_set_wakeupmask in the cpu_pm notifier

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: Let's encapsulate more the PM code inside the PM file by moving the 'exynos_set_wakeupmask' function inside the pm.c and the call in the cpu_pm notifier. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org ---

Re: [PATCH 00/17] ARM: exynos: cpuidle: Move the driver to drivers/cpuidle

2014-04-04 Thread Sachin Kamat
Hi Daniel, On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: This patchset relies on the cpm_pm notifier to initiate the powerdown sequence operations from pm.c instead cpuidle.c. Thus the cpuidle driver is no longer dependent from arch specific code as everything is

Re: [PATCH 08/17] ARM: exynos: cpuidle: Move scu_enable in the cpu_pm notifier

2014-04-04 Thread Daniel Lezcano
On 04/04/2014 10:57 AM, Viresh Kumar wrote: On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: We make the cpuidle code less arch dependent. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c |6 --

Re: [PATCH 12/17] ARM: exynos: cpuidle: Move S5P_CHECK_AFTR in a header

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: Move the S5P_CHECK_AFTR definition to the header it belongs to. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c |2 -- arch/arm/mach-exynos/regs-pmu.h |1 + 2 files

Re: [PATCH 13/17] ARM: exynos: cpuidle: Move clock setup to pm.c

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: One more step is moving the clock ratio setting at idle time in pm.c The macro names have been changed to be consistent with the other macros name in the file. Note, the clock divider was working only when cpuidle was

Re: [PATCH 14/17] ARM: exynos: cpuidle: Move the boot vector in pm.c

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:18, Daniel Lezcano daniel.lezc...@linaro.org wrote: As usual, move the boot vector setting in the pm.c file and use the cpu_pm notifier to set it up. Remove the unused headers. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/cpuidle.c |

Re: [PATCH 16/17] ARM: exynos: cpuidle: Move the driver to drivers/cpuidle directory

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:18, Daniel Lezcano daniel.lezc...@linaro.org wrote: Maybe a few lines here on why this is important.. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/Makefile |1 - drivers/cpuidle/Kconfig.arm

Re: [PATCH 15/17] ARM: exynos: cpuidle: Pass the AFTR callback to the platform_data

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:18, Daniel Lezcano daniel.lezc...@linaro.org wrote: No more dependency on the arch code. The platform_data field is used to set the PM callback as the other cpuidle driver. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org --- arch/arm/mach-exynos/common.c |5

Re: [PATCH 17/17] ARM: exynos: config: Enable cpuidle

2014-04-04 Thread Viresh Kumar
On 4 April 2014 13:18, Daniel Lezcano daniel.lezc...@linaro.org wrote: The cpuidle driver is broken since v3.11 and now we are at v3.14. Default the cpuidle driver to favorize a better detection next time. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org ---

Re: [PATCH 17/17] ARM: exynos: config: Enable cpuidle

2014-04-04 Thread Daniel Lezcano
On 04/04/2014 11:10 AM, Viresh Kumar wrote: On 4 April 2014 13:18, Daniel Lezcano daniel.lezc...@linaro.org wrote: The cpuidle driver is broken since v3.11 and now we are at v3.14. Default the cpuidle driver to favorize a better detection next time. Signed-off-by: Daniel Lezcano

[PATCH 2/2] drm/exynos/fbdev: don't set mode_config.fb_base

2014-04-04 Thread Daniel Kurtz
AFAICT, the fb_base of a drm_device's mode_config is never used. It isn't accessed by core drm, it isn't used by fbmem, and it isn't exposed to user space. Furthermore, it is probably supposed to be a physical address, not the dma address mapped to the display controller, so this is just wrong.

[PATCH 1/2] drm/exynos/fbdev: don't set fix.smem/mmio_{start,len}

2014-04-04 Thread Daniel Kurtz
Kernel access to the eyxnos fbdev framebuffer is via its gem object's kernel mapping (kvaddr, stored in info-screen_base). User space access is provided by mmap(), read() and write() of /dev/fb/fb0. These functions also only use screen_base/screen_size(). Therefore, it is not necessary to set

[PATCH] Exynos4: cpuidle: support dual CPUs with AFTR state

2014-04-04 Thread Daniel Lezcano
The following driver is for exynos4210. I did not yet finished the other boards, so I created a specific driver for 4210 which could be merged later. The driver is based on Colin Cross's driver found at:

Re: [PATCH 00/17] ARM: exynos: cpuidle: Move the driver to drivers/cpuidle

2014-04-04 Thread Daniel Lezcano
On 04/04/2014 11:00 AM, Sachin Kamat wrote: Hi Daniel, On 4 April 2014 13:17, Daniel Lezcano daniel.lezc...@linaro.org wrote: This patchset relies on the cpm_pm notifier to initiate the powerdown sequence operations from pm.c instead cpuidle.c. Thus the cpuidle driver is no longer dependent

Re: [media] V4L: Add driver for S3C24XX/S3C64XX SoC series camera interface

2014-04-04 Thread Dan Carpenter
Whatever happened with this btw? Also are you sure we don't need a second check after line 457? regards, dan carpenter On Tue, Aug 27, 2013 at 04:26:07PM +0200, Sylwester Nawrocki wrote: On 08/27/2013 04:19 PM, Dan Carpenter wrote: On Sun, Aug 25, 2013 at 02:23:18PM +0200, Sylwester Nawrocki

Company===Mail

2014-04-04 Thread sfdfgrth...@libero.it
1:GOOD NEWS,..... ..,1,...docx Description: application/vnd.openxmlformats-officedocument.wordprocessingml.document

Company===Mail

2014-04-04 Thread sfdfgrth...@libero.it
1:GOOD NEWS,..... ..,1,...docx Description: application/vnd.openxmlformats-officedocument.wordprocessingml.document

AFTR does not work on arndale 5250

2014-04-04 Thread Daniel Lezcano
Hi, I tried to make the idle AFTR state working on arndale 5250 but that leads to a kernel reboot and crash. How to reproduce ? echo 0 /sys/devices/system/cpu/cpu1/online Reproductible on v3.14 and samsung/for-next Any ideas ? Thanks -- Daniel -- http://www.linaro.org/ Linaro.org │

[PATCH] usb: ohci-exynos: Remove locks for 'ohci' in suspend callback

2014-04-04 Thread Vivek Gautam
Patch : 14982e3 USB: OHCI: Properly handle ohci-exynos suspend has already removed 'ohci_hcd' settings from exynos glue layer as a part of streamlining the ohci controller's suspend. So we don't need the locks for 'ohci_hcd' anymore. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com Cc:

[PATCH V2 04/17] ARM: exynos: cpuidle: encapsulate register access inside a function

2014-04-04 Thread Daniel Lezcano
That makes the code cleaner and encapsulted. The function will be reused in the next patch. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org --- arch/arm/mach-exynos/pm.c | 65 - 1 file

[PATCH V2 13/17] ARM: exynos: cpuidle: Move clock setup to pm.c

2014-04-04 Thread Daniel Lezcano
One more step is moving the clock ratio setting at idle time in pm.c The macro names have been changed to be consistent with the other macros name in the file. Note, the clock divider was working only when cpuidle was enabled because it was in its init routine. With this change, the clock

[PATCH V2 06/17] ARM: exynos: cpuidle: Fix S5P_WAKEUP_STAT call

2014-04-04 Thread Daniel Lezcano
This function should be called only when the powerdown sequence fails. Even if the current code does not hurt, by moving this line, we have the same code than the one in pm.c. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org ---

[PATCH V2 10/17] ARM: exynos: cpuidle: Move exynos_set_wakeupmask in the cpu_pm notifier

2014-04-04 Thread Daniel Lezcano
Let's encapsulate more the PM code inside the PM file by moving the 'exynos_set_wakeupmask' function inside the pm.c and the call in the cpu_pm notifier. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org --- arch/arm/mach-exynos/cpuidle.c |

[PATCH V2 03/17] ARM: exynos: cpuidle: change function name prefix

2014-04-04 Thread Daniel Lezcano
The driver was initially written for exynos4 but the driver is used also for exynos5. Change the function prefix name exynos4 - exynos Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org --- arch/arm/mach-exynos/cpuidle.c | 20

[PATCH V2 08/17] ARM: exynos: cpuidle: Move scu_enable in the cpu_pm notifier

2014-04-04 Thread Daniel Lezcano
We make the cpuidle code less arch dependent. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org --- arch/arm/mach-exynos/cpuidle.c |6 -- arch/arm/mach-exynos/pm.c |4 2 files changed, 4 insertions(+), 6 deletions(-)

[PATCH] usb: ohci-exynos: Remove locks for 'ohci' in suspend callback

2014-04-04 Thread Vivek Gautam
Patch : 14982e3 USB: OHCI: Properly handle ohci-exynos suspend has already removed 'ohci_hcd' settings from exynos glue layer as a part of streamlining the ohci controller's suspend. So we don't need the locks for 'ohci_hcd' anymore. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com Cc:

Re: [PATCH] usb: ohci-exynos: Remove locks for 'ohci' in suspend callback

2014-04-04 Thread Vivek Gautam
On Fri, Apr 4, 2014 at 7:03 PM, Vivek Gautam gautamvivek1...@gmail.com wrote: Patch : 14982e3 USB: OHCI: Properly handle ohci-exynos suspend has already removed 'ohci_hcd' settings from exynos glue layer as a part of streamlining the ohci controller's suspend. So we don't need the locks for

Re: [PATCH] Exynos4: cpuidle: support dual CPUs with AFTR state

2014-04-04 Thread Lorenzo Pieralisi
Hi Daniel, On Fri, Apr 04, 2014 at 10:48:45AM +0100, Daniel Lezcano wrote: The following driver is for exynos4210. I did not yet finished the other boards, so I created a specific driver for 4210 which could be merged later. The driver is based on Colin Cross's driver found at:

[PATCH 0/4] Update to Exynos clocks

2014-04-04 Thread Tomasz Stanislawski
This patchset adds some updates to clocks for Exynos4 platform and to the clock core. The patches are rebased on linux/next. An interesting part might be 'propagation of clk_set_parent()'. This feature simplifies configuration of complex topologyof clocks by drivers. Such a situation happens

[PATCH 2/4] clk: exynos4: export sclk_hdmiphy clock

2014-04-04 Thread Tomasz Stanislawski
Export sclk_hdmiphy clock to be usable from DT. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com --- drivers/clk/samsung/clk-exynos4.c |2 +- include/dt-bindings/clock/exynos4.h |1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 4/4] Revert drm/exynos: add mout_hdmi clock in hdmi driver to change parent

2014-04-04 Thread Tomasz Stanislawski
This reverts commit 59956d35a8618235ea715280b49447bb36f2c975. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com --- drivers/gpu/drm/exynos/exynos_hdmi.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c

[PATCH 1/4] clk: propagate parent change up one level

2014-04-04 Thread Tomasz Stanislawski
This patch adds support for propagation of setup of clock's parent one level up. This feature is helpful when a driver changes topology of its clocks using clk_set_parent(). The problem occurs when on one platform/SoC driver's clock is located at MUX output but on the other platform/SoC there is

Re: [PATCH V2 01/17] ARM: exynos: cpuidle: Prevent forward declaration

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:42:53 PM Daniel Lezcano wrote: Move the structure below the 'exynos4_enter_lowpower' function so no more need of forward declaration. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org Reviewed-by:

Re: [PATCH V2 03/17] ARM: exynos: cpuidle: change function name prefix

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:42:55 PM Daniel Lezcano wrote: The driver was initially written for exynos4 but the driver is used also for exynos5. Change the function prefix name exynos4 - exynos Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar

Re: [PATCH V2 02/17] ARM: exynos: cpuidle: use cpuidle_register

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:42:54 PM Daniel Lezcano wrote: Use the cpuidle generic function 'cpuidle_register'. That saves us from some extra lines of code and unneeded variables. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org ---

Re: [PATCH V2 04/17] ARM: exynos: cpuidle: encapsulate register access inside a function

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:42:56 PM Daniel Lezcano wrote: That makes the code cleaner and encapsulted. The function will be reused in the next patch. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org Reviewed-by: Bartlomiej

Re: [PATCH V2 06/17] ARM: exynos: cpuidle: Fix S5P_WAKEUP_STAT call

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:42:58 PM Daniel Lezcano wrote: This function should be called only when the powerdown sequence fails. Even if the current code does not hurt, by moving this line, we have the same code than the one in pm.c. Signed-off-by: Daniel Lezcano

Re: [PATCH V2 07/17] ARM: exynos: cpuidle: Use the cpu_pm notifier

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:42:59 PM Daniel Lezcano wrote: Use the cpu_pm_enter/exit notifier to group some pm code inside the pm file. The save and restore code is duplicated across pm.c and cpuidle.c. By using the cpu_pm notifier, we can factor out the routine. Signed-off-by: Daniel

Re: [PATCH V2 08/17] ARM: exynos: cpuidle: Move scu_enable in the cpu_pm notifier

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:43:00 PM Daniel Lezcano wrote: We make the cpuidle code less arch dependent. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Best regards,

Re: [PATCH V2 09/17] ARM: exynos: cpuidle: Remove ifdef for scu_enable

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:43:01 PM Daniel Lezcano wrote: The scu_enable function is already a noop in the scu's header file is CONFIG_SMP=n, so no need to use these macros in the code. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar

Re: [PATCH V2 10/17] ARM: exynos: cpuidle: Move exynos_set_wakeupmask in the cpu_pm notifier

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:43:02 PM Daniel Lezcano wrote: Let's encapsulate more the PM code inside the PM file by moving the 'exynos_set_wakeupmask' function inside the pm.c and the call in the cpu_pm notifier. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh

Re: [PATCH V2 11/17] ARM: exynos: cpuidle: Move the power sequence call in the cpu_pm notifier

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:43:03 PM Daniel Lezcano wrote: The code to initiate and exit the powerdown sequence is the same in pm.c and cpuidle.c. Let's split the common part in the pm.c and reuse it from the cpu_pm notifier. That is one more step forward to make the cpuidle driver arch

Re: [PATCH V2 12/17] ARM: exynos: cpuidle: Move S5P_CHECK_AFTR in a header

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:43:04 PM Daniel Lezcano wrote: Move the S5P_CHECK_AFTR definition to the header it belongs to. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org Reviewed-by: Bartlomiej Zolnierkiewicz

Re: [PATCH V2 14/17] ARM: exynos: cpuidle: Move the boot vector in pm.c

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:43:06 PM Daniel Lezcano wrote: As usual, move the boot vector setting in the pm.c file and use the cpu_pm notifier to set it up. Remove the unused headers. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar

Re: [PATCH V2 13/17] ARM: exynos: cpuidle: Move clock setup to pm.c

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:43:05 PM Daniel Lezcano wrote: One more step is moving the clock ratio setting at idle time in pm.c The macro names have been changed to be consistent with the other macros name in the file. Note, the clock divider was working only when cpuidle was enabled

Re: [PATCH V2 15/17] ARM: exynos: cpuidle: Pass the AFTR callback to the platform_data

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:43:07 PM Daniel Lezcano wrote: No more dependency on the arch code. The platform_data field is used to set the PM callback as the other cpuidle drivers. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org

Re: [PATCH V2 16/17] ARM: exynos: cpuidle: Move the driver to drivers/cpuidle directory

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:43:08 PM Daniel Lezcano wrote: Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar viresh.ku...@linaro.org Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Best regards, -- Bartlomiej Zolnierkiewicz Samsung RD Institute

Re: [PATCH V2 17/17] ARM: exynos: config: Enable cpuidle

2014-04-04 Thread Bartlomiej Zolnierkiewicz
On Friday, April 04, 2014 03:43:09 PM Daniel Lezcano wrote: The cpuidle driver is broken since v3.11 and now we are at v3.14. Default the cpuidle driver to favorize a better detection next time. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reviewed-by: Viresh Kumar

Re: [RESEND: RFC PATCH 3/3] pcie: keystone: add pcie driver based on designware core driver

2014-04-04 Thread Murali Karicheri
On 4/3/2014 4:32 AM, Lucas Stach wrote: Am Mittwoch, den 02.04.2014, 13:17 -0400 schrieb Murali Karicheri: Arnd, Thanks for reviewing the RFC patch. Please see below my response. On 3/25/2014 3:44 AM, Arnd Bergmann wrote: On Monday 24 March 2014 20:35:26 Murali Karicheri wrote: [...] +

Re: [PATCH v2 2/6] PCI: tegra: use new OF interrupt mapping when possible

2014-04-04 Thread Bjorn Helgaas
On Wed, Mar 05, 2014 at 02:25:47PM +0100, Lucas Stach wrote: This is the recommended method of doing the IRQ mapping. For old devicetrees we fall back to the previous practice. Signed-off-by: Lucas Stach l.st...@pengutronix.de Acked-by: Arnd Bergmann a...@arndb.de Applied with Stephen's

Re: [PATCH v2 6/6] PCI: designware: use new OF interrupt mapping when possible

2014-04-04 Thread Bjorn Helgaas
On Wed, Mar 05, 2014 at 11:42:19AM -0700, Jason Gunthorpe wrote: On Wed, Mar 05, 2014 at 02:25:51PM +0100, Lucas Stach wrote: - return pp-irq; + irq = of_irq_parse_and_map_pci(dev, slot, pin); + if (!irq) + irq = pp-irq; In light of the two bugs that Tim found, it might

Re: [PATCH v2 6/6] PCI: designware: use new OF interrupt mapping when possible

2014-04-04 Thread Bjorn Helgaas
On Fri, Apr 04, 2014 at 11:03:41AM -0600, Bjorn Helgaas wrote: On Wed, Mar 05, 2014 at 11:42:19AM -0700, Jason Gunthorpe wrote: On Wed, Mar 05, 2014 at 02:25:51PM +0100, Lucas Stach wrote: - return pp-irq; + irq = of_irq_parse_and_map_pci(dev, slot, pin); + if (!irq) + irq =