[PATCH v3 11/13] ARM: dts: am4372: Remove obsolete properties from edma node

2014-05-16 Thread Peter Ujfalusi
dma-channels, ti,edma-regions and ti,edma-slots no longer needed in DT since the the same information is available in the IP's CCCFG register. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/am4372.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/boot

[PATCH v3 13/13] ARM/platform_data: edma: Remove redundant/unused parameters from edma_soc_info

2014-05-16 Thread Peter Ujfalusi
this member does not make any sense (and the driver no longer uses it). Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/platform_data/edma.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/include/linux/platform_data/edma.h b/include/linux/platform_data/edma.h index

[PATCH v3 10/13] ARM: dts: am33xx: Remove obsolete properties from edma node

2014-05-16 Thread Peter Ujfalusi
dma-channels, ti,edma-regions and ti,edma-slots no longer needed in DT since the the same information is available in the IP's CCCFG register. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/am33xx.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/boot

[PATCH v3 08/13] ARM: edma: Get IP configuration from HW (number of channels, tc, etc)

2014-05-16 Thread Peter Ujfalusi
set up a default priority map. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 115 +++-- 1 file changed, 73 insertions(+), 42 deletions(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index aa9473cb0c23

[PATCH v3 06/13] ARM: edma: Remove num_cc member from struct edma

2014-05-16 Thread Peter Ujfalusi
The struct edma is allocated per CC bases so the member num_cc does not make any sense. One CC is one CC, it does not have sub CCs. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/common/edma.c b/arch

[PATCH v3 09/13] dt/bindings: ti,edma: Remove redundant properties from documentation

2014-05-16 Thread Peter Ujfalusi
since the very same information can be obtained from the HW. The mentioned properties are deprecated. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Documentation/devicetree/bindings/dma/ti-edma.txt | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git

[PATCH v3 03/13] ARM: edma: Do not change TC - Queue mapping, leave it to default.

2014-05-16 Thread Peter Ujfalusi
There is no need to change the default TC - Queue mapping. By default the mapping is: TC0 - Q0, TC1 - Q1, etc. Changing this has no benefits at all and all the board files are just setting the same mapping back to the HW. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common

[PATCH v3 05/13] ARM/platform_data: edma: Remove queue_tc_mapping data from edma_soc_info

2014-05-16 Thread Peter Ujfalusi
It is no longer in use by the driver or board files. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/platform_data/edma.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/platform_data/edma.h b/include/linux/platform_data/edma.h index 12f134b1493c

[PATCH v3 00/13] ARM/DT: edma: IP configuration from hardware and cleanups

2014-05-16 Thread Peter Ujfalusi
and they can be removed from the binding documentation and from the dtsi files as well. The change will not introduce regression when new kernel is booted using older DTB (since we just ignore the mentioned properties). Regards, Peter --- Peter Ujfalusi (13): ARM: edma: No need to clean the pdata

[PATCH v3 01/13] ARM: edma: No need to clean the pdata in edma_of_parse_dt()

2014-05-16 Thread Peter Ujfalusi
The pdata has been just allocated with devm_kzalloc() in edma_setup_info_from_dt() and passed to this function. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c

Re: [PATCH] clk: twl6040: Convert to use devm_clk_register

2014-05-19 Thread Peter Ujfalusi
On 05/18/2014 06:42 PM, Axel Lin wrote: Use devm_clk_register() to simplify the code by removing twl6040_clk_remove(). Acked-by: Peter Ujfalusi peter.ujfal...@ti.com Signed-off-by: Axel Lin axel@ingics.com --- drivers/clk/clk-twl6040.c | 12 +--- 1 file changed, 1 insertion

Re: [PATCH v3 02/13] ARM: edma: Take the number of tc from edma_soc_info (pdata)

2014-05-19 Thread Peter Ujfalusi
On 05/19/2014 02:07 PM, Sekhar Nori wrote: To which baseline do the patches apply? These lines are not present at least in v3.15-rc5. I am applying the patch without this hunk. It is generate on top of linux-next-20140515. next picked up several patches since 3.15-rc and I also have my other

Re: [PATCH v3 00/13] ARM/DT: edma: IP configuration from hardware and cleanups

2014-05-19 Thread Peter Ujfalusi
On 05/19/2014 04:06 PM, Sekhar Nori wrote: On Friday 16 May 2014 05:47 PM, Peter Ujfalusi wrote: Hi, Changes since v2: - Comments from Sekhar and Arnd has been addressed best as I could. - Use the CCCFG information in all cases instead of pdata provided information - To achieve this I

Re: [PATCH v2 0/2] clk: Support for Palmas clk32kg and clk32kgaudio clocks

2014-05-26 Thread Peter Ujfalusi
Mike, On 05/06/2014 04:31 PM, Nishanth Menon wrote: On 16:24-20140506, Peter Ujfalusi wrote: Hi, Changes since v1: - binding documentation and driver has been separated based on Nishanth Menon's comment Could you take a look at this series please? I really hoped that it would make

Re: [PATCH v3 01/10] platform_data: edma: Be precise with the paRAM struct

2014-05-27 Thread Peter Ujfalusi
On 05/27/2014 12:32 AM, Olof Johansson wrote: Hi, On Mon, Apr 14, 2014 at 4:41 AM, Peter Ujfalusi peter.ujfal...@ti.com wrote: The edmacc_param struct should follow the layout of the paRAM area in the HW. Be explicit on the size of the fields (u32) and also mark the struct as packed

Re: [PATCH v3 01/10] platform_data: edma: Be precise with the paRAM struct

2014-05-28 Thread Peter Ujfalusi
On 05/27/2014 06:03 PM, Joel Fernandes wrote: On 05/27/2014 05:22 AM, Peter Ujfalusi wrote: On 05/27/2014 12:32 AM, Olof Johansson wrote: [..] I came across this patch when I was looking at a pull request from Sekhar for EDMA cleanups, and it made me look closer at the contents of this file

[PATCH] ARM: edma: Clean up and simplify the code around irq request

2014-05-13 Thread Peter Ujfalusi
Get the two interrupt line number at the same time by merging the two instance of if(node){}else{} places. replace the pdev-dev with the already existing dev which makes it possible to collapse lines with devm_request_irq() Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common

[PATCH 0/4] ARM/DT: edma: Get IP configuration from hardware

2014-05-13 Thread Peter Ujfalusi
DTB (since we just ignore the mentioned properties). Regards, Peter --- Peter Ujfalusi (4): ARM: edma: Get IP information from HW when booting with DT dt/bindings: ti,edma: Remove redundant properties from documentation ARM: dts: am33xx: Remove obsolete properties from edma node ARM: dts

[PATCH 3/4] ARM: dts: am33xx: Remove obsolete properties from edma node

2014-05-13 Thread Peter Ujfalusi
dma-channels, ti,edma-regions and ti,edma-slots no longer needed in DT since the the same information is available in the IP's CCCFG register. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/am33xx.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/boot

[PATCH 4/4] ARM: dts: am4372: Remove obsolete properties from edma node

2014-05-13 Thread Peter Ujfalusi
dma-channels, ti,edma-regions and ti,edma-slots no longer needed in DT since the the same information is available in the IP's CCCFG register. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/am4372.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/boot

[PATCH 2/4] dt/bindings: ti,edma: Remove redundant properties from documentation

2014-05-13 Thread Peter Ujfalusi
since the very same information can be obtained from the HW. The mentioned properties can be removed from the binding document. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Documentation/devicetree/bindings/dma/ti-edma.txt | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH 1/4] ARM: edma: Get IP information from HW when booting with DT

2014-05-13 Thread Peter Ujfalusi
From CCCFG register of eDMA3 we can get all the needed information for the driver about the IP: Number of channels: NUM_DMACH Number of regions: NUM_REGN Number of slots (PaRAM sets): NUM_PAENTRY Number of TC/EQ: NUM_EVQUE Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common

Re: [PATCH 0/4] ARM/DT: edma: Get IP configuration from hardware

2014-05-13 Thread Peter Ujfalusi
On 05/13/2014 11:33 AM, Sekhar Nori wrote: On Tuesday 13 May 2014 01:13 PM, Peter Ujfalusi wrote: Hi, We are requesting redundant information via DT for the driver since the very same data is available in the HW: by reading and decoding the content of CCCFG register we can get: Number

[PATCH v2 5/5] ARM: dts: am4372: Remove obsolete properties from edma node

2014-05-13 Thread Peter Ujfalusi
dma-channels, ti,edma-regions and ti,edma-slots no longer needed in DT since the the same information is available in the IP's CCCFG register. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/am4372.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/boot

[PATCH v2 4/5] ARM: dts: am33xx: Remove obsolete properties from edma node

2014-05-13 Thread Peter Ujfalusi
dma-channels, ti,edma-regions and ti,edma-slots no longer needed in DT since the the same information is available in the IP's CCCFG register. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/am33xx.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/boot

[PATCH v2 3/5] dt/bindings: ti,edma: Remove redundant properties from documentation

2014-05-13 Thread Peter Ujfalusi
since the very same information can be obtained from the HW. The mentioned properties can be removed from the binding document. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Documentation/devicetree/bindings/dma/ti-edma.txt | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH v2 1/5] ARM: edma: No need to clean the pdata in edma_of_parse_dt()

2014-05-13 Thread Peter Ujfalusi
The pdata has been just allocated with devm_kzalloc() in edma_setup_info_from_dt() and passed to this function. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c

[PATCH v2 0/5] ARM/DT: edma: Get IP configuration from hardware

2014-05-13 Thread Peter Ujfalusi
as well. The change will not introduce regression when new kernel is booted using older DTB (since we just ignore the mentioned properties). Regards, Peter --- Peter Ujfalusi (5): ARM: edma: No need to clean the pdata in edma_of_parse_dt() ARM: edma: Get IP information from HW when booting with DT

[PATCH v2 2/5] ARM: edma: Get IP information from HW when booting with DT

2014-05-13 Thread Peter Ujfalusi
From CCCFG register of eDMA3 we can get all the needed information for the driver about the IP: Number of channels: NUM_DMACH Number of regions: NUM_REGN Number of slots (PaRAM sets): NUM_PAENTRY Number of TC/EQ: NUM_EVQUE Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common

Re: [PATCH 08/11] ASoC: twl4030: Remove local reg cache

2014-01-08 Thread Peter Ujfalusi
Hi Lee, On 01/08/2014 10:05 AM, Lee Jones wrote: Depend on the regmap reg cache implementation for register caching done in the twl-core driver. The local register cache can be removed and we can keep only shadow copies of certain ctl registers for pop noise reduction. Signed-off-by: Peter

Re: sysfs: cannot create duplicate filename '/bus/platform/devices/twl4030-codec'

2014-01-27 Thread Peter Ujfalusi
Hi, On 01/25/2014 05:35 PM, Belisko Marek wrote: Hello, booting linux-next (not actual but older from 20.12 gives me following warning). I'm booting gta04 device via devicetree with added sound node (copied from beagleboard) Not sure what goes wrong on your board. I just tested today's

[PATCH 01/11] MFD: twl-core: Simplify IO wrapper functions by moving common code out

2014-01-03 Thread Peter Ujfalusi
The new twl_get_regmap() function will return a pointer to the regmap needed for the given module. Since both read and write function were using the same code to do the lookup we can reuse this in both places to simplify the code. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers

[PATCH 11/11] ASoC: twl4030: Pass the twl4030_priv directly to twl4030_can_write_to_chip()

2014-01-03 Thread Peter Ujfalusi
To avoid another lookup for the twl4030_priv in there. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index c3c15f891270

[PATCH 05/11] ASoC: twl4030: Remove check defaults functionality

2014-01-03 Thread Peter Ujfalusi
No need to keep the check defaults functionality anymore. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/i2c/twl.h| 1 - sound/soc/codecs/twl4030.c | 23 --- 2 files changed, 24 deletions(-) diff --git a/include/linux/i2c/twl.h b/include/linux/i2c

[PATCH 08/11] ASoC: twl4030: Remove local reg cache

2014-01-03 Thread Peter Ujfalusi
Depend on the regmap reg cache implementation for register caching done in the twl-core driver. The local register cache can be removed and we can keep only shadow copies of certain ctl registers for pop noise reduction. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs

[PATCH 10/11] ASoC: twl4030: Move the ctl cache update local to twl4030_write() function

2014-01-03 Thread Peter Ujfalusi
There's no other users of this functionality, the code can be moved inside of twl4030_write. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 36 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/sound/soc

[PATCH 09/11] ASoC: twl4030: Parameter alignment fixes (for code consistency)

2014-01-03 Thread Peter Ujfalusi
Over time the multi line alignment got messed up. Correct them in one go so the code will look consistent. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 93 ++ 1 file changed, 45 insertions(+), 48 deletions

[PATCH 07/11] ASoC: twl4030: Introduce local ctl register cache

2014-01-03 Thread Peter Ujfalusi
will be initialized. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index ab2f22299db2..f88207712d3d 100644 --- a/sound/soc/codecs/twl4030.c

[PATCH 02/11] MFD: twl-core: API to set the regcache bypass for a given regmap in twl

2014-01-03 Thread Peter Ujfalusi
to be monitored. With the twl_set_regcache_bypass() the client driver can switch regcache bypass on and off when it is needed so we can utilize the regcache for more registers. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 21 + include/linux

[PATCH 03/11] MFD: twl-core: Enable regcache for audio registers

2014-01-03 Thread Peter Ujfalusi
Enable regmap's regcache for the audio registers: i2c address 0x49, register range 0x01 - 0x49 Mark all other registers as volatile to avoid any side effect for the non audio functions behind 0x49 i2c address. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 111

[PATCH 04/11] ASoC: twl4030: Separate write condition checking from I/O function

2014-01-03 Thread Peter Ujfalusi
Simplifies the code a bit and prepares it to the removal of local caching. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 40 +++- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/sound/soc/codecs/twl4030.c

[PATCH 06/11] ASoC: twl4030: Remove reset registers functionality

2014-01-03 Thread Peter Ujfalusi
The register states now tracked by the regmap implementation in the core which makes the reset registers functionality 'redundant' since we know the state of the registers now all the time. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/i2c/twl.h| 1 - sound/soc

[PATCH 00/11] ASoC/MFD: twl4030 codec local register cache removal

2014-01-03 Thread Peter Ujfalusi
. Regards, Peter --- Peter Ujfalusi (11): MFD: twl-core: Simplify IO wrapper functions by moving common code out MFD: twl-core: API to set the regcache bypass for a given regmap in twl MFD: twl-core: Enable regcache for audio registers ASoC: twl4030: Separate write condition checking from

Re: [PATCH] mfd: twl6040: Optional clk32k clock handling

2014-04-28 Thread Peter Ujfalusi
that it is always running. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Documentation/devicetree/bindings/mfd/twl6040.txt | 2 ++ drivers/mfd/twl6040.c | 10 ++ include/linux/mfd/twl6040.h | 2 ++ 3 files changed, 14 insertions

Re: [PATCH v2 0/2] drivercore: deferral race condition fix

2014-04-29 Thread Peter Ujfalusi
On 04/28/2014 05:18 PM, Grant Likely wrote: On Thu, 24 Apr 2014 22:01:02 +0100, Grant Likely grant.lik...@secretlab.ca wrote: On Thu, Apr 24, 2014 at 8:31 AM, Peter Ujfalusi peter.ujfal...@ti.com wrote: Hi Greg, Grant, On 04/09/2014 01:52 PM, Peter Ujfalusi wrote: Hi, Changes since v1

[PATCH] clk: ti: clk-54xx: Set the rate for dpll_abe_m2x2_ck

2014-04-30 Thread Peter Ujfalusi
In order to get correct clock dividers for AESS/ABE we need to set the dpll_abe_m2x2_ck rate to be double of dpll_abe_ck. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/clk/ti/clk-54xx.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/ti/clk-54xx.c b

[PATCH 2/2] ARM: DTS: omap54xx-clocks: Correct abe_iclk clock node

2014-04-30 Thread Peter Ujfalusi
abe_iclk's parent is aess_fclk and not abe_clk. Also correct the parameters for clock rate calculation as used for OMAP4 since in PRCM level there's no difference between the two platform regarding to AESS/ABE clocking. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts

[PATCH 1/2] ARM: DTS: omap54xx-clocks: remove the autoidle properties for clock nodes

2014-04-30 Thread Peter Ujfalusi
In OMAP5 bit 8 in PRCM registers are not defined (Reserved) unlike their counterpart in OMAP4. It is better to not write to these bits. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/omap54xx-clocks.dtsi | 48 -- 1 file changed, 48

[PATCH] mfd: twl6040: Correct HPPLL configuration for 19.2 and 38.4 MHz mclk

2014-05-06 Thread Peter Ujfalusi
When the MCLK is 19.2 or 38.4 MHz the HPPLL need to be enabled and can be put in bypass mode. This will fix HPPLL use on boards with 19.2MHz mclk. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl6040.c | 13 + 1 file changed, 5 insertions(+), 8 deletions

[PATCH v2 2/2] clk: Add driver for Palmas clk32kg and clk32kgaudio clocks

2014-05-06 Thread Peter Ujfalusi
is done via the clock API there is a posibility to enable the external sleep control. In this way the clock can be enabled/disabled on demand by the user of the clock. See the documentation for more details. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/clk/Kconfig | 7

[PATCH v2 1/2] dt/bindings: Binding documentation for Palmas clk32kg and clk32kgaudio clocks

2014-05-06 Thread Peter Ujfalusi
is done via the clock API there is a posibility to enable the external sleep control. In this way the clock can be enabled/disabled on demand by the user of the clock. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- .../bindings/clock/clk-palmas-clk32kg-clocks.txt | 35

[PATCH v2 0/2] clk: Support for Palmas clk32kg and clk32kgaudio clocks

2014-05-06 Thread Peter Ujfalusi
/disabled on demand by the user of the clock. Regards, Peter --- Peter Ujfalusi (2): dt/bindings: Binding documentation for Palmas clk32kg and clk32kgaudio clocks clk: Add driver for Palmas clk32kg and clk32kgaudio clocks .../bindings/clock/clk-palmas-clk32kg-clocks.txt | 35 +++ drivers

Re: [PATCH] clk: ti: clk-7xx: Correct ABE DPLL configuration

2014-05-06 Thread Peter Ujfalusi
Mike, On 04/24/2014 06:03 PM, Tero Kristo wrote: On 04/24/2014 12:11 PM, Peter Ujfalusi wrote: Mike, Tero, On 04/03/2014 09:29 AM, Peter Ujfalusi wrote: On 04/02/2014 05:12 PM, Tero Kristo wrote: On 04/02/2014 04:48 PM, Peter Ujfalusi wrote: ABE DPLL frequency need to be lowered from

Re: [PATCH] clk: Add driver for Palmas clk32kg and clk32kgaudio clocks

2014-04-04 Thread Peter Ujfalusi
On 04/03/2014 04:49 PM, Nishanth Menon wrote: On 04/03/2014 05:52 AM, Peter Ujfalusi wrote: [...] .../devicetree/bindings/clock/clk-palmas.txt | 35 +++ drivers/clk/Kconfig| 7 + drivers/clk/Makefile | 1 + drivers/clk

Re: [RESEND] drivercore: deferral race condition fix

2014-04-08 Thread Peter Ujfalusi
On 04/08/2014 03:47 PM, Grant Likely wrote: On Tue, Apr 8, 2014 at 3:27 AM, Grant Likely grant.lik...@secretlab.ca wrote: On Thu, 3 Apr 2014 10:40:59 +0100, Mark Brown broo...@kernel.org wrote: On Thu, Apr 03, 2014 at 10:12:07AM +0300, Peter Ujfalusi wrote: When the kernel is built

Re: [RESEND] drivercore: deferral race condition fix

2014-04-08 Thread Peter Ujfalusi
On 04/08/2014 03:43 PM, Grant Likely wrote: On Thu, 3 Apr 2014 10:12:07 +0300, Peter Ujfalusi peter.ujfal...@ti.com wrote: When the kernel is built with CONFIG_PREEMPT it is possible to reach a state when all modules loaded but some driver still stuck in the deferred list and there is a need

Re: [RESEND] drivercore: deferral race condition fix

2014-04-09 Thread Peter Ujfalusi
On 04/08/2014 04:35 PM, Peter Ujfalusi wrote: On 04/08/2014 03:43 PM, Grant Likely wrote: diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 06051767393f..80703de6e6ad 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -53,6 +53,10 @@ static LIST_HEAD(deferred_probe_pending_list

[PATCH v2 0/2] drivercore: deferral race condition fix

2014-04-09 Thread Peter Ujfalusi
like connecting USB stick, etc. The proposed solution is to try the deferred queue once more when the last driver is asking for deferring and we had drivers loaded while this last driver was probing. This way we can avoid drivers stuck in the deferred queue. Regards, Peter --- Peter Ujfalusi (2

[PATCH v2 2/2] drivercore: deferral race condition fix

2014-04-09 Thread Peter Ujfalusi
. This way we can avoid drivers stuck in the deferred queue. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/base/dd.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 43d573b960ba

[PATCH v2 1/2] drivercore: dd: Move driver_deferred_probe_add/del function down in the code

2014-04-09 Thread Peter Ujfalusi
Move both functions after driver_deferred_probe_trigger() in the source file since upcoming patch will need to call the _trigger from _add. Move also the _del so the functions will be kept together. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/base/dd.c | 40

[RESEND] dmaengine: edma: Add channel number to debug prints

2014-04-24 Thread Peter Ujfalusi
It helps to identify issues if we have some information regarding to the channel which the event is associated. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- Hi Vinod, rebased on: git://git.infradead.org/users/vkoul/slave-dma.git next On top

Re: [PATCH v2 0/2] drivercore: deferral race condition fix

2014-04-24 Thread Peter Ujfalusi
Hi Greg, Grant, On 04/09/2014 01:52 PM, Peter Ujfalusi wrote: Hi, Changes since v1: - The deferral race detection and handling has been moved to driver_deferred_probe_trigger() and driver_deferred_probe_add() functions with comment section. - driver_deferred_probe_add/del function

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-24 Thread Peter Ujfalusi
On 04/16/2014 07:05 PM, Joel Fernandes wrote: On 04/16/2014 07:59 AM, Peter Ujfalusi wrote: [..] If the dma-priority is missing we should assume lowest priority (0). The highest priority depends on the platform. For eDMA3 in AM335x it is three level. For designware controller you might have

Re: [PATCH] clk: Add driver for Palmas clk32kg and clk32kgaudio clocks

2014-04-24 Thread Peter Ujfalusi
Hi Mike, On 04/03/2014 01:52 PM, Peter Ujfalusi wrote: Palmas class of devices have either twl 32K clock outputs: CLK32K_KG and CLK32K_KGAUDIO or only one: CLK32K_KG (TPS659039 for example) Use separate compatible flags for the two 32K clock. A system which needs or have only one

Re: [PATCH] clk: ti: clk-7xx: Correct ABE DPLL configuration

2014-04-24 Thread Peter Ujfalusi
Mike, Tero, On 04/03/2014 09:29 AM, Peter Ujfalusi wrote: On 04/02/2014 05:12 PM, Tero Kristo wrote: On 04/02/2014 04:48 PM, Peter Ujfalusi wrote: ABE DPLL frequency need to be lowered from 361267200 to 180633600 to facilitate the ATL requironments. The dpll_abe_m2x2_ck clock need to be set

Re: [RESEND 0/3] mfd: twl6040: Updates for i2s speed and fix for chip deadlock

2014-04-24 Thread Peter Ujfalusi
Lee, On 04/01/2014 04:44 PM, Peter Ujfalusi wrote: Hi, While looking into a report by Florian Vaussard [1] I have noticed couple of most likely unrelated issues: - all boards using twl6040 configures the i2c bus to 400KHz while twl6040 is set to 100KHz as default. - if I set

Re: [PATCH 0/3] clk: Add clock driver for DRA7 ATL (Audio Tracking Logic)

2014-04-24 Thread Peter Ujfalusi
Hi Mike, On 04/02/2014 04:55 PM, Peter Ujfalusi wrote: Hi, Audio Tracking Logic is designed to be used by HD Radio applications to synchronize the audio output clocks to the baseband clock. ATL can be also used to track errors between two reference clocks (BWS, AWS) and generate

Re: [PATCH] mfd: twl6040: Optional clk32k clock handling

2014-04-24 Thread Peter Ujfalusi
Lee, On 04/03/2014 01:54 PM, Peter Ujfalusi wrote: In certain boards the source for the clk32k clock can be gated. In these boards the clk32k clock can be provided to the driver and it is going to be enabled/disabled when it is needed. If the clk32k clock is not provided the driver

Re: [PATCH V2 00/19] bus: omap_l3_noc: driver cleanups and support for DRA7/AM4372

2014-04-24 Thread Peter Ujfalusi
On 04/18/2014 12:00 AM, Nishanth Menon wrote: On 04/17/2014 03:57 PM, Santosh Shilimkar wrote: I looked at the series and its looks pretty good. Thanks for fixups, updates. For whole series, Acked-by: Santosh Shilimkar santosh.shilim...@ti.com Thanks. Patches(including Peter's) is

Re: [PATCH V2 00/19] bus: omap_l3_noc: driver cleanups and support for DRA7/AM4372

2014-04-25 Thread Peter Ujfalusi
On 04/24/2014 05:19 PM, Nishanth Menon wrote: On 04/24/2014 03:55 AM, Peter Ujfalusi wrote: On 04/18/2014 12:00 AM, Nishanth Menon wrote: On 04/17/2014 03:57 PM, Santosh Shilimkar wrote: I looked at the series and its looks pretty good. Thanks for fixups, updates. For whole series, Acked

[PATCH] ARM: Wire up the renameat2() syscall

2014-04-22 Thread Peter Ujfalusi
The new renameat2() system call was only wired up for ARM causing: CALL /home/ujfalusi/work/kernel/kernel.org-next-linux-next/scripts/checksyscalls.sh stdin:1232:2: warning: #warning syscall renameat2 not implemented [-Wcpp] Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Hi, I have

[PATCH 0/2] fs/ext4: fix for aio_write related kernel crash in linux-next

2014-04-23 Thread Peter Ujfalusi
Hi, This might be already fixed. I have noticed that with linux-next the kernel crashes when trying to use ext4 as rootfs. Regards, Peter --- Peter Ujfalusi (2): fs: read_write: Check -aio_write in __kernel_write() and vfs_write() ext4: Fix up the .write callback to use new_sync_write fs

[PATCH 2/2] ext4: Fix up the .write callback to use new_sync_write

2014-04-23 Thread Peter Ujfalusi
Other filesystems has been updated but ext4 has been left out and since ext4 does not provide aio_write callback we have kernel crash in do_sync_write() Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- fs/ext4/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs

[PATCH 1/2] fs: read_write: Check -aio_write in __kernel_write() and vfs_write()

2014-04-23 Thread Peter Ujfalusi
Do similar checks as it has been done in vfs_read for the aio_write callback. ext4 for example does not provide aio_write callback causing NULL pointer dereference in do_sync_write() without this check. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- fs/read_write.c | 8 ++-- 1 file

Re: [PATCH] ARM: Wire up the renameat2() syscall

2014-04-23 Thread Peter Ujfalusi
On 04/22/2014 10:05 AM, Peter Ujfalusi wrote: The new renameat2() system call was only wired up for ARM causing: obviously I mean that system call was _not_ wired up for ARM causing I can send the patch again with a fixed up commit message... CALL /home/ujfalusi/work/kernel/kernel.org

Re: [PATCHv2 07/11] ARM: OMAP3: Beagle: use PWM_LOOKUP to initialize struct pwm_lookup

2014-04-15 Thread Peter Ujfalusi
On 04/15/2014 12:59 AM, Alexandre Belloni wrote: Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-omap2/board-omap3beagle.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c

Re: [PATCHv2 07/11] ARM: OMAP3: Beagle: use PWM_LOOKUP to initialize struct pwm_lookup

2014-04-15 Thread Peter Ujfalusi
On 04/15/2014 10:14 AM, Simon Horman wrote: On Tue, Apr 15, 2014 at 10:01:44AM +0300, Peter Ujfalusi wrote: On 04/15/2014 12:59 AM, Alexandre Belloni wrote: Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-omap2/board-omap3beagle.c | 10 ++ 1

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-16 Thread Peter Ujfalusi
On 04/14/2014 05:32 PM, Sekhar Nori wrote: Yes, you can. But as soon as you have other devices using the same priority (with eDMA3 at least) and asks for a 'long' transfer it can ruin the audio. During audio playback/capture you execute a long MMC read for example can introduce a glitch.

Re: [PATCH v2 10/14] dma: edma: Simplify direction configuration in edma_config_pset()

2014-04-11 Thread Peter Ujfalusi
On 04/11/2014 01:40 AM, Joel Fernandes wrote: On 04/01/2014 08:06 AM, Peter Ujfalusi wrote: We only support DEV_TO_MEM or MEM_TO_DEV directions with edma driver and the check for the direction has been already done in the function calling edma_config_pset(). The error reporting is redundant

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-11 Thread Peter Ujfalusi
On 04/11/2014 11:17 AM, Sekhar Nori wrote: On Tuesday 01 April 2014 06:36 PM, Peter Ujfalusi wrote: Use the EVENTQ_1 for default and leave the EVENTQ_0 to be used by high priority channels, like audio. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Sekhar Nori nsek...@ti.com

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-11 Thread Peter Ujfalusi
On 04/11/2014 11:56 AM, Sekhar Nori wrote: On Friday 11 April 2014 02:20 PM, Peter Ujfalusi wrote: On 04/11/2014 11:17 AM, Sekhar Nori wrote: On Tuesday 01 April 2014 06:36 PM, Peter Ujfalusi wrote: Use the EVENTQ_1 for default and leave the EVENTQ_0 to be used by high priority channels, like

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-11 Thread Peter Ujfalusi
Hi Vinod, On 04/11/2014 12:42 PM, Vinod Koul wrote: On Fri, Apr 11, 2014 at 12:38:00PM +0300, Peter Ujfalusi wrote: On 04/11/2014 11:56 AM, Sekhar Nori wrote: On Friday 11 April 2014 02:20 PM, Peter Ujfalusi wrote: On 04/11/2014 11:17 AM, Sekhar Nori wrote: On Tuesday 01 April 2014 06:36 PM

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-11 Thread Peter Ujfalusi
On 04/11/2014 02:31 PM, Vinod Koul wrote: I would say that it is channel based config. I don't see the reason why would one mix different priorities on a configured channel between descriptors. If not then we can add this in dma_slave_config ? So adding to the struct for example: bool

[PATCH v3 09/10] dmaengine: edma: Add channel number to debug prints

2014-04-14 Thread Peter Ujfalusi
It helps to identify issues if we have some information regarding to the channel which the event is associated. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[PATCH v3 05/10] dmaengine: edma: Set DMA_CYCLIC capability flag

2014-04-14 Thread Peter Ujfalusi
Indicate that the edma dmaengine driver has support for cyclic mode. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- arch/arm/common/edma.c | 1 + drivers/dma/edma.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/common/edma.c b

[PATCH v3 10/10] dmaengine: edma: Print the direction value as well when it is not supported

2014-04-14 Thread Peter Ujfalusi
In case of not supported direction it is better to print the direction also. It is unlikely, but in such an event it helps with the debugging. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 4 ++-- 1 file changed, 2 insertions

[PATCH v3 01/10] platform_data: edma: Be precise with the paRAM struct

2014-04-14 Thread Peter Ujfalusi
The edmacc_param struct should follow the layout of the paRAM area in the HW. Be explicit on the size of the fields (u32) and also mark the struct as packed to avoid any padding on non 32bit architectures. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com

[PATCH v3 06/10] dmaengine: edma: Implement device_slave_caps callback

2014-04-14 Thread Peter Ujfalusi
With the callback implemented omap-dma can provide information to client drivers regarding to supported address widths, directions, residue granularity, etc. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 18

[PATCH v3 08/10] dmaengine: edma: Prefix debug prints where the text were identical in prep callbacks

2014-04-14 Thread Peter Ujfalusi
since all other error cases are dev_err and this failure is similarly fatal as the other ones. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/dma

[PATCH v3 07/10] dmaengine: edma: Reduce debug print verbosity for non verbose debugging

2014-04-14 Thread Peter Ujfalusi
Do not print the paRAM information when verbose debugging is not asked and also reduce the number of lines printed in edma_prep_dma_cyclic() Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 11 +-- 1 file changed, 5

[PATCH v3 04/10] dmaengine: edma: Add support for DMA_PAUSE/RESUME operation

2014-04-14 Thread Peter Ujfalusi
Pause/Resume can be used by the audio stack when the stream is paused/resumed The edma platform code has support for this and the legacy audio stack used this. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 28

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-14 Thread Peter Ujfalusi
Hi Vinod, On 04/11/2014 03:46 PM, Vinod Koul wrote: I think the number shouldn't be viewed in absolute terms. If we decide that (lets say) 0-7, then any controller should map 0 to lowest and 7 to highest. For your case you can do this and then intermediate numbers would be medium

[PATCH v3 03/10] dmaengine: edma: Correct the handling of src/dst_maxburst == 0

2014-04-14 Thread Peter Ujfalusi
When clients asks for maxburst = 0 it is basically the same case as if they were asking for maxburst = 1 since in both case ASYNC need to be used and the eDMA is expected to write/read one word per DMA request. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo

[PATCH v3 00/10] dma: edma: Fixes for cyclic (audio) operation

2014-04-14 Thread Peter Ujfalusi
things sorted out I noticed that the debug was too verbose and the important information was hidden even when the we did not asked for verbose dmaengine debug. I have included some debug cleanups for the edma dmaengine driver also. Regards, Peter --- Peter Ujfalusi (10): platform_data: edma

[PATCH v3 02/10] arm: common: edma: Save the number of event queues/TCs

2014-04-14 Thread Peter Ujfalusi
For later use save the number of queues available for the CC. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- arch/arm/common/edma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-14 Thread Peter Ujfalusi
On 04/14/2014 03:12 PM, Sekhar Nori wrote: On Monday 14 April 2014 05:26 PM, Peter Ujfalusi wrote: Hi Vinod, On 04/11/2014 03:46 PM, Vinod Koul wrote: I think the number shouldn't be viewed in absolute terms. If we decide that (lets say) 0-7, then any controller should map 0 to lowest

[PATCH v2 04/14] dma: edma: Set DMA_CYCLIC capability flag

2014-04-01 Thread Peter Ujfalusi
Indicate that the edma dmaengine driver has support for cyclic mode. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 1 + drivers/dma/edma.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index

[PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-01 Thread Peter Ujfalusi
Use the EVENTQ_1 for default and leave the EVENTQ_0 to be used by high priority channels, like audio. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common

[PATCH v2 01/14] platform_data: edma: Be precise with the paRAM struct

2014-04-01 Thread Peter Ujfalusi
The edmacc_param struct should follow the layout of the paRAM area in the HW. Be explicit on the size of the fields (u32) and also mark the struct as packed to avoid any padding on non 32bit architectures. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/platform_data/edma.h

[PATCH v2 13/14] dma: edma: Add channel number to debug prints

2014-04-01 Thread Peter Ujfalusi
It helps to identify issues if we have some information regarding to the channel which the event is associated. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma

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