Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-24 Thread Viresh Kumar
hongbo.zh...@linaro.com Reviewed-by: Viresh Kumar viresh.ku...@linaro.org Reviewed-by: Francesco Lavra francescolavra...@gmail.com You can't add these lines, until somebody has replied you with them in earlier mails. They don't show that somebody has put effort in reviewing them, but that current

Re: [PATCH V2 6/6] Thermal: Add ST-Ericsson DB8500 thermal properties and platform data.

2012-10-24 Thread Viresh Kumar
On 24 October 2012 17:28, hongbo.zhang hongbo.zh...@linaro.org wrote: From: hongbo.zhang hongbo.zh...@linaro.com This patch adds device tree properties for ST-Ericsson DB8500 thermal driver, also adds the platform data to support the old fashion. Signed-off-by: hongbo.zhang

[PATCH] cpufreq: core: Fix typo in comment describing show_bios_limit()

2012-10-09 Thread Viresh Kumar
show_bios_limit is mistakenly written as show_scaling_driver in a comment describing purpose of show_bios_limit() routine. Fix it. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

Re: [RFC PATCH 02/10] sched: Task placement for heterogeneous systems based on task load-tracking

2012-10-09 Thread Viresh Kumar
On 9 October 2012 21:26, Morten Rasmussen morten.rasmus...@arm.com wrote: On Thu, Oct 04, 2012 at 07:02:03AM +0100, Viresh Kumar wrote: On 22 September 2012 00:02, morten.rasmus...@arm.com wrote: SCHED_HMP requires that the platform implements arch_get_hmp_domains() which should set up

[PATCH] cpufreq:core: Fix printing of governor and driver name

2012-10-09 Thread Viresh Kumar
character. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/cpufreq/cpufreq.c | 6 +++--- include/linux/cpufreq.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 021973b..db6e337 100644

Re: [PATCH 1/4] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-10-10 Thread viresh kumar
On Wed, Oct 10, 2012 at 2:34 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: On Tue, 2012-10-02 at 14:41 +0300, Andy Shevchenko wrote: From: Heikki Krogerus heikki.kroge...@linux.intel.com Since v3.2 we have nice macro to define the platform driver's init and exit calls. This

Re: [PATCH 1/4] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-10-10 Thread Viresh Kumar
On 10 October 2012 14:51, Andy Shevchenko andy.shevche...@gmail.com wrote: We have spi, i2c and hsuart devices connected to the DMA controller. In case we would like to use DMA we have to have the dw_dmac loaded before them. Currently we have spi driver on subsys_initcall level, and Mika, who

Re: [RFC PATCH 06/10] ARM: sched: Use device-tree to provide fast/slow CPU list for HMP

2012-10-10 Thread Viresh Kumar
On 10 October 2012 15:47, Morten Rasmussen morten.rasmus...@arm.com wrote: On Thu, Oct 04, 2012 at 07:49:32AM +0100, Viresh Kumar wrote: This patch is reuse of a patch by Jon Medhurst t...@linaro.org with a few bits left out. Then probably he must be the author of this commit? Also a SOB

[PATCH 1/3] dmaengine: dw_dmac: Update documentation style comments for dw_dma_platform_data

2012-10-11 Thread Viresh Kumar
Documentation style comments were missing for few fields in struct dw_dma_platform_data. Add these. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- include/linux/dw_dmac.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/dw_dmac.h b/include/linux/dw_dmac.h index

[PATCH 3/3] ARM: SPEAr13xx: Pass DW DMAC platform data from DT

2012-10-11 Thread Viresh Kumar
This patch adds dw_dmac's platform data to DT node. It also creates slave info node for SPEAr13xx, for the devices which were using dw_dmac. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- arch/arm/boot/dts/spear1340.dtsi | 19 ++ arch/arm/boot/dts/spear13xx.dtsi

[PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-11 Thread Viresh Kumar
, by the generic filter routine. - Update binding document Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- Documentation/devicetree/bindings/dma/snps-dma.txt | 44 ++ drivers/dma/dw_dmac.c | 147 + drivers/dma/dw_dmac_regs.h

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-11 Thread viresh kumar
On Fri, Oct 12, 2012 at 11:14 AM, Viresh Kumar viresh.ku...@linaro.org wrote: dw_dmac driver already supports device tree but it used to have its platform data passed the non-DT way. This patch does following changes: - pass platform data via DT, non-DT way still takes precedence if both

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 13:53, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: On Fri, 2012-10-12 at 11:14 +0530, Viresh Kumar wrote: My few comments are below. Most welcome :) diff --git a/Documentation/devicetree/bindings/dma/snps-dma.txt b/Documentation/devicetree/bindings/dma/snps

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 14:55, Andy Shevchenko andy.shevche...@gmail.com wrote: I understand your way of allocating memory, but what about using linked list instead of array? I gave it a thought. Overhead was 4 bytes more per slave structure + more cycles in filter routine (arrays are more faster

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread viresh kumar
On Fri, Oct 12, 2012 at 1:53 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: On Fri, 2012-10-12 at 11:14 +0530, Viresh Kumar wrote: + while (++i dw-sd_count) { + if (!strcmp(dw-sd[i].bus_id, param)) { + found = 1; + break

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 16:10, Andy Shevchenko andy.shevche...@gmail.com wrote: On Fri, Oct 12, 2012 at 1:36 PM, viresh kumar viresh.ku...@linaro.org wrote: On Fri, Oct 12, 2012 at 1:53 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: On Fri, 2012-10-12 at 11:14 +0530, Viresh Kumar

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 16:10, Andy Shevchenko andy.shevche...@gmail.com wrote: + if (!found) { + last_dw = dw; + last_bus_id = param; + return false; Because of return here you could eliminate 'found' flag at all. Here is the stuff copied from you ;)

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 16:55, Andy Shevchenko andy.shevche...@gmail.com wrote: EXPORT_SYMBOL(dw_generic_filter); Could we change a name to be more precise, like dw_dma_generic_filter ? Sure. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 18:58, Shevchenko, Andriy andriy.shevche...@intel.com wrote: On Fri, 2012-10-12 at 11:14 +0530, Viresh Kumar wrote: + if (!of_property_read_u32(np, chan_allocation_order, + val)) Fits one line? yes. + pdata

[PATCH V2 1/3] dmaengine: dw_dmac: Update documentation style comments for dw_dma_platform_data

2012-10-12 Thread Viresh Kumar
Documentation style comments were missing for few fields in struct dw_dma_platform_data. Add these. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- include/linux/dw_dmac.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/dw_dmac.h b/include/linux/dw_dmac.h index

[PATCH V2 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
, by the generic filter routine. - Update binding document Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- V1-V2: -- - Optimized filter DT parsing routine - Removed unnecessary casts from changes - renamed filter function - Fixed function prototype and return value of DT parsing routine

[PATCH V2 3/3] ARM: SPEAr13xx: Pass DW DMAC platform data from DT

2012-10-12 Thread Viresh Kumar
This patch adds dw_dmac's platform data to DT node. It also creates slave info node for SPEAr13xx, for the devices which were using dw_dmac. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- V1-V2: -- - renamed filter function arch/arm/boot/dts/spear1340.dtsi | 19

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 20:11, Shevchenko, Andriy andriy.shevche...@intel.com wrote: On Fri, 2012-10-12 at 19:36 +0530, Viresh Kumar wrote: I meant is to use that constant instead of hard coding 4 everywhere. It's a maximum value, not the SoC specific. Can be done. + u32 val, arr[4]; what

Re: [PATCH V2 3/3] ARM: SPEAr13xx: Pass DW DMAC platform data from DT

2012-10-12 Thread Viresh Kumar
On 12 October 2012 20:18, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: static struct of_dev_auxdata spear1310_auxdata_lookup[] __initdata = { - OF_DEV_AUXDATA(arasan,cf-spear1340, MCIF_CF_BASE, NULL, cf_dma_priv), - OF_DEV_AUXDATA(snps,dma-spear1340, DMAC0_BASE,

Re: [PATCH V2 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 20:20, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: On 20:01 Fri 12 Oct , Viresh Kumar wrote: dw_dmac driver already supports device tree but it used to have its platform data passed the non-DT way. This patch does following changes: - pass platform

Re: [PATCH V2 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 20:28, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: On Fri, 2012-10-12 at 20:01 +0530, Viresh Kumar wrote: + if (last_dw) { + if ((last_bus_id == param) (last_dw == dw)) + return false; + } Just came to my mind. dw

Re: [PATCH V2 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 21:23, Andy Shevchenko andy.shevche...@gmail.com wrote: 1. This is an equivalent of if (last_dw (last_bus_id == ... ) (last_dw == dw)) return false; 2. In case dw is always non-NULL the last_dw == dw is false if last_dw is NULL. Where am I wrong? Nowhere, I am drunk

Re: [PATCH V2 3/3] ARM: SPEAr13xx: Pass DW DMAC platform data from DT

2012-10-12 Thread Viresh Kumar
On 12 October 2012 21:51, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: + OF_DEV_AUXDATA(arasan,cf-spear1340, MCIF_CF_BASE, NULL, cf), ?/ Sorry. can't get it :( what is the cf as paltfrom data This is dma bus_id string, which matches with what is passed from dtb. -- To

Re: [PATCH V2 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 21:50, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: - pass platform data via DT, non-DT way still takes precedence if both are used. why keep it all platform are DT I would love to remove that, but not sure if somebody want's the non-DT way too. I

[PATCH] dt: add helper function to read u8 u16 variables arrays

2012-10-12 Thread Viresh Kumar
three *_array() routines. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/of/base.c | 73 +++--- include/linux/of.h | 30 ++ 2 files changed, 89 insertions(+), 14 deletions(-) diff --git a/drivers/of/base.c b

Re: [PATCH V2 3/3] ARM: SPEAr13xx: Pass DW DMAC platform data from DT

2012-10-13 Thread Viresh Kumar
On 13 October 2012 17:52, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: On 14:18 Sat 13 Oct , Viresh Kumar wrote: On Oct 13, 2012 12:16 PM, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: On 22:42 Fri 12 Oct , Viresh Kumar wrote: On 12

Re: [PATCH V2 3/3] ARM: SPEAr13xx: Pass DW DMAC platform data from DT

2012-10-13 Thread Viresh Kumar
On 13 October 2012 19:38, Viresh Kumar viresh.ku...@linaro.org wrote: On 13 October 2012 17:52, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: On 14:18 Sat 13 Oct , Viresh Kumar wrote: On Oct 13, 2012 12:16 PM, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com

Re: [PATCH V5] PWM: Add SPEAr PWM chip driver support

2012-10-24 Thread Viresh Kumar
manual, present at following[1] location. 1. http://www.st.com/internet/mcu/product/251211.jsp Cc: Thierry Reding thierry.red...@avionic-design.de Signed-off-by: Shiraz Hashim shiraz.has...@st.com Signed-off-by: Viresh Kumar viresh.ku...@linaro.org Reviewed-by: Vipin Kumar vipin.ku...@st.com

[RFC] cpufreq: Make sure target freq is within limits

2012-10-25 Thread Viresh Kumar
in all driver files. That's why this is an RFC. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/cpufreq/cpufreq.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index f552d5f..59264f1 100644

Re: [PATCH] dt: add helper function to read u8 u16 variables arrays

2012-10-25 Thread Viresh Kumar
On 12 October 2012 23:31, Viresh Kumar viresh.ku...@linaro.org wrote: This adds following helper routines: - of_property_read_u8_array() - of_property_read_u16_array() - of_property_read_u8() - of_property_read_u16() First two actually share most of the code with of_property_read_u32_array

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Viresh Kumar
On 25 October 2012 13:56, Hongbo Zhang hongbo.zh...@linaro.org wrote: While replying to mails, don't remove lines like above. They help identifying who wrote what. [...] +/* Callback to get temperature changing trend */ +static int db8500_sys_get_trend(struct thermal_zone_device *thermal,

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Viresh Kumar
On 25 October 2012 15:03, Hongbo Zhang hongbo.zh...@linaro.org wrote: On 25 October 2012 16:41, Viresh Kumar viresh.ku...@linaro.org wrote: Just paste my current pieces of codes here: static struct db8500_thsens_platform_data* db8500_thermal_parse_dt(struct platform_device

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Viresh Kumar
On 25 October 2012 15:26, Hongbo Zhang hongbo.zh...@linaro.org wrote: Verish, see the codes in include/linux/interrupt.h: s/verish/viresh :) static inline int __must_check devm_request_irq(struct device *dev, unsigned int irq, irq_handler_t handler, unsigned long irqflags,

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Viresh Kumar
On 25 October 2012 15:34, Viresh Kumar viresh.ku...@linaro.org wrote: On 25 October 2012 15:26, Hongbo Zhang hongbo.zh...@linaro.org wrote: This is what your prcmu driver's routines are doing: int db8500_prcmu_config_hotmon(u8 low, u8 high) { ... wait_for_completion(mb4_transfer.work

Re: [PATCH] dt: add helper function to read u8 u16 variables arrays

2012-10-25 Thread Viresh Kumar
On 25 October 2012 18:49, Rob Herring robherri...@gmail.com wrote: For some reason, this does not show up on the list either in my mail or mail list archives, but it is in patchwork. Can you resend it please. Strange. I kept you in --to field. I know people added in cc are sometimes removed by

Re: [PATCH 2/2] cpufreq: governors: remove redundant code

2012-10-25 Thread Viresh Kumar
On 26 October 2012 05:43, Rafael J. Wysocki r...@sisk.pl wrote: I have applied this patch only because of the fixes on top of it. It broke kernel compliation due to some missing EXPORT_SYMBOL_GPLs in cpufreq_governor.c, so I woulnd't have applied it otherwise. Hi Rafael, So sorry for

Re: [PATCH] dt: add helper function to read u8 u16 variables arrays

2012-10-25 Thread Viresh Kumar
On 25 October 2012 19:48, Viresh Kumar viresh.ku...@linaro.org wrote: The problem i see here is: The data passed via DT comes as Little Endian in the kernel. For a little endian system, byte zero will contain the data and so (u8) val look to be the correct thing. For a big endian system

[PATCH Resend V2] dt: add helper function to read u8 u16 variables arrays

2012-10-25 Thread Viresh Kumar
three *_array() routines. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- V1-V2: - - Use typeof() in of_property_read_array() macro instead of passing type to it drivers/of/base.c | 73 +++--- include/linux/of.h | 30

Re: [PATCH V3 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-26 Thread Viresh Kumar
Hi Vinod, On 16 October 2012 09:49, Viresh Kumar viresh.ku...@linaro.org wrote: dw_dmac driver already supports device tree but it used to have its platform data passed the non-DT way. This patch does following changes: - pass platform data via DT, non-DT way still takes precedence if both

[PATCH] cpufreq: Avoid calling cpufreq driver's target() routine if target_freq == policy-cur

2012-10-26 Thread Viresh Kumar
Avoid calling cpufreq driver's target() routine if new frequency is same as policies current frequency. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/cpufreq/cpufreq.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c

[PATCH RESEND] cpufreq: Make sure target freq is within limits

2012-10-26 Thread Viresh Kumar
__cpufreq_driver_target() must not pass target frequency beyond the limits of current policy. Today most of cpufreq platform drivers are doing this check in their target routines. Why not move it to __cpufreq_driver_target(). Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- Hi Rafael

[PATCH] net: dsa/slave: Fix compilation warnings

2012-10-29 Thread Viresh Kumar
-by: Viresh Kumar viresh.ku...@linaro.org --- net/dsa/slave.c | 4 1 file changed, 4 insertions(+) diff --git a/net/dsa/slave.c b/net/dsa/slave.c index e32083d..5606fae 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -48,6 +48,8 @@ void dsa_slave_mii_bus_init(struct dsa_switch *ds

[PATCH] mtd: map: Fix compilation warning

2012-10-29 Thread Viresh Kumar
[-Wmaybe-uninitialized] I could have used uninitialized_var() too, but didn't used it as the final else part of map_word_load() is missing. So there is a chance that it might be passed uninitialized. Better initialize to zero. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- include/linux

Re: [PATCH 1/3] input: spear-keyboard: Use devm_*() routines

2012-11-08 Thread Viresh Kumar
On 8 November 2012 22:08, Dmitry Torokhov dmitry.torok...@gmail.com wrote: On Thu, Nov 08, 2012 at 07:10:47PM +0530, Viresh Kumar wrote: It also breaks the error unwinding/removal of the driver as it frees input device while IRQ handler is still active. I have heard of this argument before

Re: [PATCH 1/3] input: spear-keyboard: Use devm_*() routines

2012-11-08 Thread Viresh Kumar
On 9 November 2012 08:06, Viresh Kumar viresh.ku...@linaro.org wrote: On 8 November 2012 22:08, Dmitry Torokhov dmitry.torok...@gmail.com wrote: There is devm_request_and_ioremap() which you can use here. Should have been done in V1 only. Hi Dmitry, Please apply below fixup to original patch

Re: [PATCH 1/3] rtc: rtc-spear: Use devm_*() routines

2012-11-08 Thread Viresh Kumar
On 8 November 2012 20:07, Viresh Kumar viresh.ku...@linaro.org wrote: This patch frees rtc-spear driver from tension of freeing resources :) devm_* derivatives of multiple routines are used while allocating resources, which would be freed automatically by kernel. Signed-off-by: Viresh Kumar

Re: [PATCH] pwm: spear: Staticize spear_pwm_config()

2012-11-09 Thread Viresh Kumar
On 9 November 2012 17:22, Axel Lin axel@ingics.com wrote: spear_pwm_config() is not referenced outside of this file, make it static. Signed-off-by: Axel Lin axel@ingics.com Acked-by: Viresh Kumar viresh.ku...@linaro.org -- To unsubscribe from this list: send the line unsubscribe linux

Re: [PATCH] pwm: spear: Staticize spear_pwm_config()

2012-11-09 Thread Viresh Kumar
On 9 November 2012 17:28, Thierry Reding thierry.red...@avionic-design.de wrote: Applied, thanks. Aah.. That's pretty fast :) within 5 minutes of posting the patch you got ACK and got applied too :) -- viresh -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

[PATCH] dmaengine/dmatest: terminate transfers only in case of errors

2012-11-09 Thread Viresh Kumar
From: Shiraz Hashim shiraz.has...@st.com dmatest erroneously terminated transfers in normal cases also leading to test failures for multiple threads over a channel. Fix this and terminate transfers only in case of errors. Signed-off-by: Shiraz Hashim shiraz.has...@st.com Signed-off-by: Deepak

[PATCH 1/3] input: stmpe-keyboard: Use devm_*() routines

2012-11-09 Thread Viresh Kumar
This patch frees stmpe-keyboard driver from tension of freeing resources :) devm_* derivatives of multiple routines are used while allocating resources, which would be freed automatically by kernel. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/input/keyboard/stmpe-keypad.c

[PATCH 2/3] input: stmpe-ts: Use devm_*() routines

2012-11-09 Thread Viresh Kumar
This patch frees stmpe-ts driver from tension of freeing resources :) devm_* derivatives of multiple routines are used while allocating resources, which would be freed automatically by kernel. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/input/touchscreen/stmpe-ts.c | 45

[PATCH 3/3] input:stmpe-ts:Initialize the phys field for input device

2012-11-09 Thread Viresh Kumar
From: Vipul Kumar Samar vipulkumar.sa...@st.com Signed-off-by: Vipul Kumar Samar vipulkumar.sa...@st.com --- drivers/input/touchscreen/stmpe-ts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c index

[PATCH 1/2] mfd: stmpe: Use devm_*() routines

2012-11-09 Thread Viresh Kumar
This patch frees stmpe driver from tension of freeing resources :) devm_* derivatives of multiple routines are used while allocating resources, which would be freed automatically by kernel. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/mfd/stmpe.c | 46

[PATCH 2/2] mfd: stmpe: Add DT support in stmpe driver

2012-11-09 Thread Viresh Kumar
From: Vipul Kumar Samar vipulkumar.sa...@st.com This patch adds support to probe stmpe devices via DT. Bindings are mentioned in binding document. Signed-off-by: Vipul Kumar Samar vipulkumar.sa...@st.com Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- Documentation/devicetree/bindings

Re: [PATCH 1/3] input: stmpe-keyboard: Use devm_*() routines

2012-11-09 Thread Viresh Kumar
On 9 November 2012 22:15, Dmitry Torokhov dmitry.torok...@gmail.com wrote: If input device was alocated with devm_* interface it does not need be explicitly unregistered/freed. Thanks for pointing out: Fixup: commit 4bf57c85f49f16a139af80f8de76fa01eee77a5d Author: Viresh Kumar viresh.ku

Re: [PATCH 2/3] input: stmpe-ts: Use devm_*() routines

2012-11-09 Thread Viresh Kumar
On 9 November 2012 20:57, Viresh Kumar viresh.ku...@linaro.org wrote: This patch frees stmpe-ts driver from tension of freeing resources :) devm_* derivatives of multiple routines are used while allocating resources, which would be freed automatically by kernel. Signed-off-by: Viresh Kumar

Re: [PATCH 1/3] input: spear-keyboard: Use devm_*() routines

2012-11-09 Thread Viresh Kumar
On 9 November 2012 11:03, Dmitry Torokhov dmitry.torok...@gmail.com wrote: On Fri, Nov 09, 2012 at 08:06:29AM +0530, Viresh Kumar wrote: On 8 November 2012 22:08, Dmitry Torokhov dmitry.torok...@gmail.com wrote: On Thu, Nov 08, 2012 at 07:10:47PM +0530, Viresh Kumar wrote: It also breaks

Re: [PATCH] dmatest: Fix NULL pointer dereference on ioat

2012-11-09 Thread viresh kumar
On Sat, Nov 10, 2012 at 2:27 AM, Jon Mason jon.ma...@intel.com wrote: device_control is an optional and not implemented in all DMA drivers. Any calls to these will result in a NULL pointer dereference. dmatest makes two of these calls when completing the kernel thread and removing the module.

Re: [PATCH 2/3] input: stmpe-ts: Use devm_*() routines

2012-11-10 Thread Viresh Kumar
again to verify what's playing with patches. On this copy i can see that this issue isn't there till now. commit dda6d45808d65aaf8b0d4153e7a418b255365818 Author: Viresh Kumar viresh.ku...@linaro.org Date: Fri Nov 9 22:28:26 2012 +0530 fixup! input: stmpe-ts: Use devm_*() routines --- drivers

Re: [PATCH 2/3] input: stmpe-ts: Use devm_*() routines

2012-11-10 Thread Viresh Kumar
On 10 November 2012 13:33, Viresh Kumar viresh.ku...@linaro.org wrote: On 10 November 2012 13:30, Dmitry Torokhov dmitry.torok...@gmail.com wrote: Sometimes your mailer does wrap long lines, please make sure to turn it off for patches. I am using gmail for replying on mails and this fixup

Re: [PATCH] pinctrl: spear: Staticize non-exported symbols

2012-11-10 Thread viresh kumar
spear_pinctrl_dt_free_map(struct pinctrl_dev *pctldev, + struct pinctrl_map *map, + unsigned num_maps) { kfree(map); } Acked-by: Viresh Kumar viresh.ku...@linaro.org -- To unsubscribe from this list: send the line unsubscribe linux

Re: [PATCH Resend V2] dt: add helper function to read u8 u16 variables arrays

2012-11-10 Thread Viresh Kumar
Ping!! On 7 November 2012 09:52, viresh kumar viresh.ku...@linaro.org wrote: On Tue, Nov 6, 2012 at 7:48 PM, Rob Herring robherri...@gmail.com wrote: +#define of_property_read_array(_np, _pname, _out, _sz) \ + while (_sz

Re: [PATCH Resend V2] dt: add helper function to read u8 u16 variables arrays

2012-11-11 Thread Viresh Kumar
On 11 November 2012 19:42, Rob Herring robherri...@gmail.com wrote: On 11/06/2012 10:22 PM, viresh kumar wrote: cluster0: cluster@0 { + data1 = 0x50 0x60 0x70; + data2 = 0x5000 0x6000 0x7000; + data3

Re: [PATCH Resend V2] dt: add helper function to read u8 u16 variables arrays

2012-11-11 Thread Viresh Kumar
On 12 November 2012 01:12, Rob Herring robherri...@gmail.com wrote: On 11/11/2012 11:27 AM, Viresh Kumar wrote: On 11 November 2012 19:42, Rob Herring robherri...@gmail.com wrote: On 11/06/2012 10:22 PM, viresh kumar wrote: cluster0: cluster@0 { + data1

Re: linux-next: manual merge of the pinctrl tree with the slave-dma tree

2012-11-11 Thread Viresh Kumar
On 12 November 2012 08:45, Stephen Rothwell s...@canb.auug.org.au wrote: Hi Linus, Today's linux-next merge of the pinctrl tree got a conflict in arch/arm/boot/dts/spear1340.dtsi between commit b47394911c26 (ARM: SPEAr13xx: Pass DW DMAC platform data from DT) from the slave-dma tree and

Re: [PATCH 2/3] Input: spear-keyboard: Add clk_{un}prepare() support

2012-11-11 Thread Viresh Kumar
On 8 November 2012 19:10, Viresh Kumar viresh.ku...@linaro.org wrote: From: Vipul Kumar Samar vipulkumar.sa...@st.com clk_{un}prepare is mandatory for platforms using common clock framework. Because for SPEAr we don't do anything in clk_{un}prepare() calls, just call them ones in probe

Re: [PATCH] dw_dmac: absence of pdata isn't critical when autocfg is set

2012-11-12 Thread viresh kumar
On Mon, Nov 12, 2012 at 4:53 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c static int __devinit dw_probe(struct platform_device *pdev) { struct dw_dma_platform_data *pdata; @@ -1604,9 +1610,6 @@ static int

Re: [PATCH] dw_dmac: absence of pdata isn't critical when autocfg is set

2012-11-12 Thread Viresh Kumar
On 12 November 2012 19:28, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: On Mon, 2012-11-12 at 19:24 +0530, viresh kumar wrote: Allocate it dynamically to support multiple controllers with different configuration in a SoC. Like you did for device tree? No problem, but here

Re: [PATCH] dw_dmac: absence of pdata isn't critical when autocfg is set

2012-11-12 Thread viresh kumar
On Mon, Nov 12, 2012 at 4:53 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: + if (!pdata autocfg) + pdata = dw_dma_pdata; + + if (!pdata || pdata-nr_channels DW_DMA_MAX_NR_CHANNELS) + return -EINVAL; + Another thing: replace the

Re: [PATCH v2] dmatest: Fix NULL pointer dereference on ioat

2012-11-13 Thread viresh kumar
-device_control(chan, cmd, arg); + else + return -ENOSYS; } Reviewed-by: Viresh Kumar viresh.ku...@linaro.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH] pinctrl: plgpio: Call clk_disable_unprepare only if clk_prepare_enable is called

2012-11-14 Thread Viresh Kumar
-by: Axel Lin axel@ingics.com Acked-by: Viresh Kumar viresh.ku...@linaro.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

[PATCH] Pinctrl: SPEAr: Plgpio: Don't call prepare/unprepare on request/free

2012-11-14 Thread Viresh Kumar
SPEAr SoC's don't do anything in clk_prepare() of plgpio driver, so there is no need to call this routine multiple times. Just call it once at probe. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- Hi Linus, This patch is rebased over https://lkml.org/lkml/2012/11/14/220 drivers

Re: [PATCH REGRESSION FIX] dw_dmac: make driver's endianness configurable

2012-10-14 Thread viresh kumar
) but then waited for Andy to finish other changes to the same module(3). (1) https://patchwork.kernel.org/patch/608211 (2) https://lkml.org/lkml/2012/8/26/148 (3) https://lkml.org/lkml/2012/9/21/173 Signed-off-by: Hein Tibosch hein_tibo...@yahoo.es Good. Acked-by: Viresh Kumar viresh.ku

Re: [PATCH V2 3/3] ARM: SPEAr13xx: Pass DW DMAC platform data from DT

2012-10-14 Thread Viresh Kumar
On 14 October 2012 15:31, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: On 19:40 Sat 13 Oct , Viresh Kumar wrote: On 13 October 2012 19:38, Viresh Kumar viresh.ku...@linaro.org wrote: On 13 October 2012 17:52, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote

Re: [PATCH V2 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-14 Thread Viresh Kumar
On 12 October 2012 20:28, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: + if (last_dw) { + if ((last_bus_id == param) (last_dw == dw)) + return false; + } Just came to my mind. dw can't be NULL, can't it? Then if (last_dw) { ... } is

Re: [PATCH V2 0/3] Create sched_select_cpu() and use it in workqueues

2012-10-14 Thread Viresh Kumar
On 27 September 2012 14:34, Viresh Kumar viresh.ku...@linaro.org wrote: This is V2 of my sched_select_cpu() work. In order to save power, it would be useful to schedule work onto non-IDLE cpus instead of waking up an IDLE one. To achieve this, we need scheduler to guide kernel frameworks

Re: [PATCH] dt: add helper function to read u8 u16 variables arrays

2012-10-15 Thread Viresh Kumar
On 15 October 2012 13:26, Shevchenko, Andriy andriy.shevche...@intel.com wrote: On Fri, 2012-10-12 at 23:31 +0530, Viresh Kumar wrote: + while (_sz--) \ + *_out++ = (_type)be32_to_cpup(_val++); \ How about

[PATCH] cpufreq: timer: Move tick-sched specific code outside of cpufreq governors

2012-10-15 Thread Viresh Kumar
Multiple cpufreq governers have defined similar get_cpu_idle_time_***() routines. These routines must be moved to some common place, so that all governors can use them. So moving them to tick-sched.c, which seems to be a better place for keeping these routines. Signed-off-by: Viresh Kumar

Re: [PATCH] cpufreq: timer: Move tick-sched specific code outside of cpufreq governors

2012-10-15 Thread Viresh Kumar
On 15 October 2012 14:05, Michal Hocko mho...@suse.cz wrote: On Mon 15-10-12 13:41:20, Viresh Kumar wrote: Multiple cpufreq governers have defined similar get_cpu_idle_time_***() routines. These routines must be moved to some common place, so that all governors can use them. So moving them

[PATCH V2] cpufreq: Move common part from governors to separate file

2012-10-15 Thread Viresh Kumar
Multiple cpufreq governers have defined similar get_cpu_idle_time_***() routines. These routines must be moved to some common place, so that all governors can use them. So moving them to cpufreq_governor.c, which seems to be a better place for keeping these routines. Signed-off-by: Viresh Kumar

Re: [PATCH] cpufreq:core: Fix printing of governor and driver name

2012-10-15 Thread Viresh Kumar
On 15 October 2012 23:21, Rafael J. Wysocki r...@sisk.pl wrote: On Wednesday 10 of October 2012 10:12:11 Viresh Kumar wrote: Arrays for governer and driver name are of size CPUFREQ_NAME_LEN or 16. i.e. 15 bytes for name and 1 for trailing '\0'. When cpufreq driver print these names (for sysfs

[PATCH V3 3/3] ARM: SPEAr13xx: Pass DW DMAC platform data from DT

2012-10-15 Thread Viresh Kumar
This patch adds dw_dmac's platform data to DT node. It also creates slave info node for SPEAr13xx, for the devices which were using dw_dmac. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- V1-V3: -- - renamed filter function arch/arm/boot/dts/spear1340.dtsi | 19

[PATCH V3 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-15 Thread Viresh Kumar
, by the generic filter routine. - Update binding document Signed-off-by: Viresh Kumar viresh.ku...@linaro.org Reviewed-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- V2-V3: -- - Simplified an equation in filter routine - renamed variable 'val' as 'tmp' in DT parsing routine V1-V2

[PATCH V3 1/3] dmaengine: dw_dmac: Update documentation style comments for dw_dma_platform_data

2012-10-15 Thread Viresh Kumar
Documentation style comments were missing for few fields in struct dw_dma_platform_data. Add these. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org Reviewed-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- include/linux/dw_dmac.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] dmatest: terminate all ongoing transfers before submitting new one

2012-10-16 Thread viresh kumar
On Tue, Oct 16, 2012 at 2:15 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: The following error messages come if we have software LLP emulation enabled and enough threads running. modprobe dmatest iterations=40 [ 168.048601] dmatest: Started 1 threads using dma0chan0 [

Re: [PATCH] dmatest: terminate all ongoing transfers before submitting new one

2012-10-16 Thread Viresh Kumar
Hi Andy, Adding blank lines before and after your replies makes it more readable. On 16 October 2012 15:05, Andy Shevchenko andy.shevche...@gmail.com wrote: On Tue, Oct 16, 2012 at 11:56 AM, viresh kumar viresh.ku...@linaro.org wrote: Can you try with a large timeout value for the module. I

Re: [PATCH] Make uapi/linux/irqnr.h non-empty

2012-10-16 Thread viresh kumar
patch to fix SPEAr's issues point out by Linus? x---x From: Viresh Kumar viresh.ku...@linaro.org Date: Wed, 17 Oct 2012 08:58:08 +0530 Subject: [PATCH] ARM: SPEAr: Remove unused empty files Few empty files (spear1310_misc_regs.h

Re: [PATCH 1/5] ata: suspend/resume callbacks should be conditionally compiled on CONFIG_PM_SLEEP

2012-10-16 Thread viresh kumar
] Because SET_SYSTEM_SLEEP_PM_OPS(suspend_fn, resume_fn) Only references the callbacks on CONFIG_PM_SLEEP (instead of CONFIG_PM). Cc: Jeff Garzik jgar...@pobox.com Cc: Viresh Kumar viresh.li...@gmail.com Cc: linux-...@vger.kernel.org Signed-off-by: Yuanhan Liu yuanhan

[PATCH 1/2] cpufreq: Improve debug prints

2012-10-16 Thread Viresh Kumar
With debug options on, it is difficult to locate cpufreq core's debug prints. Fix this by prefixing debug prints with: cpufreq: Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/cpufreq/cpufreq.c | 2 ++ drivers/cpufreq/cpufreq_performance.c | 2 ++ drivers/cpufreq

[PATCH 2/2] cpufreq: Debugging options for the cpufreq subsystem

2012-10-16 Thread Viresh Kumar
This adds Kconfig options for DEBUG and VERBOSE_DEBUG to the cpufreq subsystem, This is pretty useful for developers who want to debug cpufreq subsystem and don't want to editing the Makefile manually each time they want to debug. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers

Re: [PATCH 1/2] cpufreq: Improve debug prints

2012-10-16 Thread Viresh Kumar
On 17 October 2012 11:09, Joe Perches j...@perches.com wrote: On Wed, 2012-10-17 at 10:50 +0530, Viresh Kumar wrote: With debug options on, it is difficult to locate cpufreq core's debug prints. [] diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c [] @@ -15,6 +15,8

Re: [PATCH 1/2] cpufreq: Improve debug prints

2012-10-17 Thread Viresh Kumar
On 17 October 2012 11:34, Joe Perches j...@perches.com wrote: I believe you are quoting KBUILD_MODNAME Yes. :( Far better output with this. Thanks. @Rafael: Please consider below patch instead: From: Viresh Kumar viresh.ku...@linaro.org Date: Wed, 17 Oct 2012 10:38:31 +0530 Subject: [PATCH

Re: [PATCH 1/2] cpufreq: Improve debug prints

2012-10-17 Thread Viresh Kumar
--- From: Viresh Kumar viresh.ku...@linaro.org Date: Wed, 17 Oct 2012 10:38:31 +0530 Subject: [PATCH] cpufreq: Improve debug prints With debug options on, it is difficult to locate cpufreq core's debug prints. Fix this by prefixing debug prints with KBUILD_MODNAME. Signed-off-by: Viresh Kumar

Re: [PATCH 1/2] cpufreq: Improve debug prints

2012-10-17 Thread Viresh Kumar
On 17 October 2012 14:55, Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com wrote: With CONFIG_DYNAMIC_DEBUG, you can control(enable/disable) debug prints at different levels (file, module, line, function) Quickly went through this :) http://www.kernel.org/doc/ols/2009/ols2009-pages-39-46.pdf

Re: [PATCH 1/2] cpufreq: Improve debug prints

2012-10-17 Thread Viresh Kumar
On 17 October 2012 15:28, Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com wrote: May be kernel/Documentation/dynamic-debug-howto.txt is more up-to-date. yes. My usecase is a bit different. I want to see all bootprints with cpufreq pr_debug prints. So, this prefixing will help there.

<    1   2   3   4   5   6   7   8   9   10   >