[PATCH] MFD: twl-core: Fix chip ID for the twl6030-pwm module

2012-10-31 Thread Peter Ujfalusi
= twl_modules[chip]; Which obviously going to do nasty things. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Hi Samuel, Can you push this patch to 3.7? Without this if the user enables the twl6030-pwm driver the kernel will not going to boot on OMAP4. Thank you, Peter drivers/mfd/twl-core.c

Re: linux-next: build failure after merge of the sound and sound-asoc trees

2012-09-24 Thread Peter Ujfalusi
On 09/24/2012 10:48 AM, Takashi Iwai wrote: At Mon, 24 Sep 2012 13:39:23 +1000, Stephen Rothwell wrote: Hi all, After merging the sound tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: In file included from include/linux/skbuff.h:31:0, from

[PATCH 0/2] dmaengine: Fix compillation issues in device_prep_dma_cyclic()

2012-09-24 Thread Peter Ujfalusi
--- Peter Ujfalusi (2): dmaengine: Add flags parameter to dmaengine_prep_dma_cyclic() ARM: SAMSUNG: dma-ops: Fix dmaengine_prep_dma_cyclic() parameter list arch/arm/plat-samsung/dma-ops.c | 3 ++- include/linux/dmaengine.h | 3 ++- sound/soc/soc-dmaengine-pcm.c | 6 +- 3 files changed

[PATCH 1/2] dmaengine: Add flags parameter to dmaengine_prep_dma_cyclic()

2012-09-24 Thread Peter Ujfalusi
(if DMA_PREP_INTERRUPT is cleared) when it is supported on the platform. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com CC: Lars-Peter Clausen l...@metafoo.de --- include/linux/dmaengine.h | 3 ++- sound/soc/soc-dmaengine-pcm.c | 6 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff

[PATCH 2/2] ARM: SAMSUNG: dma-ops: Fix dmaengine_prep_dma_cyclic() parameter list

2012-09-24 Thread Peter Ujfalusi
There is a new flags parameter for the function. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/plat-samsung/dma-ops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/plat-samsung/dma-ops.c b/arch/arm/plat-samsung/dma-ops.c index c38d754..d088afa

Re: CMA broken in next-20120926

2012-09-28 Thread Peter Ujfalusi
kernel works fine on OMAP platforms (without the patch audio was not working because dma_alloc_writecombine() was failing, probably other things were broken as well). Thank you for the quick fix! Tested-by: Peter Ujfalusi peter.ujfal...@ti.com Cc: Mel Gorman mgor...@suse.de Signed-off

Re: [PATCH 3.7-rc1] omap zoom2.c: Fix compile error by including correct header files

2012-10-03 Thread Peter Ujfalusi
On 10/03/2012 05:31 PM, Tim Gardner wrote: Cc: Peter Ujfalusi peter.ujfal...@ti.com Cc: Jarkko Nikula jarkko.nik...@bitmer.com Cc: Liam Girdwood l...@ti.com Cc: Mark Brown broo...@opensource.wolfsonmicro.com Cc: Jaroslav Kysela pe...@perex.cz Cc: Takashi Iwai ti...@suse.de Cc: linux-o

[PATCH] leds: leds-pwm: Convert to use devm_get_pwm

2012-11-07 Thread Peter Ujfalusi
Update the driver to use the new API for requesting pwm so we can take advantage of the pwm_lookup table to find the correct pwm to be used for the LED functionality. If the devm_get_pwm fails we fall back to legacy mode to try to get the pwm. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com

[PATCH 0/3] pwm: Drivers for twl4030/6030 PWMs and LEDs

2012-11-07 Thread Peter Ujfalusi
twl4030 (PWM driven LED A/B ports) and twl6030's Charging indication LED (PWM driven). Regards, Peter --- Peter Ujfalusi (3): pwm: Remove pwm-twl6030 driver pwm: New driver to support PWMs on TWL4030/6030 series of PMICs pwm: New driver to support PWM driven LEDs on TWL4030/6030 series

[PATCH 2/3] pwm: New driver to support PWMs on TWL4030/6030 series of PMICs

2012-11-07 Thread Peter Ujfalusi
. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/pwm/Kconfig | 10 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-twl.c | 304 ++ 3 files changed, 315 insertions(+) create mode 100644 drivers/pwm/pwm-twl.c diff --git a/drivers/pwm

[PATCH 3/3] pwm: New driver to support PWM driven LEDs on TWL4030/6030 series of PMICs

2012-11-07 Thread Peter Ujfalusi
. When the PWM has been freed, the LED driver is put back to HW control. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/pwm/Kconfig | 10 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-twl-led.c | 287 ++ 3 files changed, 298

[PATCH 1/3] pwm: Remove pwm-twl6030 driver

2012-11-07 Thread Peter Ujfalusi
This driver only supported the Charging indicator LED. New set of drivers going to provide support for both PWMs and LEDs for twl4030 and twl6030 series of PMICs. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/pwm/Kconfig | 9 --- drivers/pwm/Makefile | 1

[PATCH v2 1/3] pwm: Remove pwm-twl6030 driver

2012-11-08 Thread Peter Ujfalusi
This driver only supported the Charging indicator LED. New set of drivers going to provide support for both PWMs and LEDs for twl4030 and twl6030 series of PMICs. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/pwm/Kconfig | 9 --- drivers/pwm/Makefile | 1

[PATCH v2 3/3] pwm: New driver to support PWM driven LEDs on TWL4030/6030 series of PMICs

2012-11-08 Thread Peter Ujfalusi
. When the PWM has been freed, the LED driver is put back to HW control. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/pwm/Kconfig | 10 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-twl-led.c | 295 ++ 3 files changed, 306

[PATCH v2 0/3] pwm: Drivers for twl4030/6030 PWMs and LEDs

2012-11-08 Thread Peter Ujfalusi
, Peter --- Peter Ujfalusi (3): pwm: Remove pwm-twl6030 driver pwm: New driver to support PWMs on TWL4030/6030 series of PMICs pwm: New driver to support PWM driven LEDs on TWL4030/6030 series of PMICs drivers/pwm/Kconfig | 19 ++- drivers/pwm/Makefile | 3 +- drivers/pwm

[PATCH v2 2/3] pwm: New driver to support PWMs on TWL4030/6030 series of PMICs

2012-11-08 Thread Peter Ujfalusi
. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/pwm/Kconfig | 10 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-twl.c | 322 ++ 3 files changed, 333 insertions(+) create mode 100644 drivers/pwm/pwm-twl.c diff --git a/drivers/pwm

[PATCH 2/6] MFD: twl6040: Remove unused parameter for twl6040_power_up_completion()

2012-10-11 Thread Peter Ujfalusi
naudint parameter has not been used, remove it. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl6040-core.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/twl6040-core.c b/drivers/mfd/twl6040-core.c index b220aa2..a46d987 100644

[PATCH 6/6] MFD: twl6040: Rename the core driver

2012-10-11 Thread Peter Ujfalusi
After the regmap_irq conversion there is no need to call the driver as twl6040-core.c since there is only one c file remained. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/Makefile | 2 +- drivers/mfd/{twl6040-core.c = twl6040.c} | 0 2 files changed

[PATCH 0/6] MFD: twl6040: Conversion to use regmap_irq

2012-10-11 Thread Peter Ujfalusi
--- Peter Ujfalusi (6): MFD: twl6040: Fix typo for power on failure MFD: twl6040: Remove unused parameter for twl6040_power_up_completion() MFD: twl6040: Restructure power up and down code MFD: twl6040: Correct Ready and Thermal interrupt handling MFD: twl6040: Convert to use

[PATCH 1/6] MFD: twl6040: Fix typo for power on failure

2012-10-11 Thread Peter Ujfalusi
Fix old copy paste bug: automatic power-down failed - automatic power-up failed Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl6040-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/twl6040-core.c b/drivers/mfd/twl6040-core.c index

[PATCH 5/6] MFD: twl6040: Convert to use regmap_irq

2012-10-11 Thread Peter Ujfalusi
With regmap_irq it is possibole to remove the twl6040-irq.c file and simplify the code. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/Kconfig | 4 +- drivers/mfd/Makefile| 2 +- drivers/mfd/twl6040-core.c | 55 drivers/mfd/twl6040-irq.c

[PATCH 4/6] MFD: twl6040: Correct Ready and Thermal interrupt handling

2012-10-11 Thread Peter Ujfalusi
Create new irq handler for thermal events in order to be able to handle the event and clean up the code regarding to interrupt handling: Use proper function names for the irq handlers No need to read the INTD register anymore. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd

[PATCH 3/6] MFD: twl6040: Restructure power up and down code

2012-10-11 Thread Peter Ujfalusi
Rearrange the code path for power up and down sequence. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl6040-core.c | 38 ++ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/drivers/mfd/twl6040-core.c b/drivers/mfd/twl6040

[PATCH] MFD: twl-core: Register twl4030-madc child only for twl4030 class

2012-10-29 Thread Peter Ujfalusi
twl4030-madc driver can only handle twl4030 class MADC. The newer revisions of twl does not have MADC, instead they have different IP called GPADC which is not backward compatible. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Hi Samuel, When building the kernel to support OMAP3/4/5 we

[PATCH v2 3/3] leds: leds-pwm: Add device tree bindings

2012-11-12 Thread Peter Ujfalusi
Support for device tree booted kernel. When the kernel is booted with DeviceTree blob we support one led per leds-pwm device to have cleaner integration with the PWM subsystem. For usage see: Documentation/devicetree/bindings/leds/leds-pwm.txt Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com

[PATCH v2 0/3] leds: leds-pwm: Device tree support

2012-11-12 Thread Peter Ujfalusi
with Device tree we handle one LED per device to be more aligned with PWM core's DT implementation. An example of the DT usage is provided in the new DT binding documentation for leds-pwm. Tested on OMAP4 Blaze (SDP) with legacy and DT boot. Regards, Peter --- Peter Ujfalusi (3): leds: leds-pwm

[PATCH v2 2/3] leds: leds-pwm: Preparing the driver for device tree support

2012-11-12 Thread Peter Ujfalusi
In order to be able to add device tree support for leds-pwm driver we need to rearrange the data structures used by the drivers. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/leds/leds-pwm.c | 39 +++ 1 file changed, 23 insertions(+), 16

[PATCH v2 1/3] leds: leds-pwm: Convert to use devm_get_pwm

2012-11-12 Thread Peter Ujfalusi
Update the driver to use the new API for requesting pwm so we can take advantage of the pwm_lookup table to find the correct pwm to be used for the LED functionality. If the devm_get_pwm fails we fall back to legacy mode to try to get the pwm. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com

Re: [PATCH] MFD: twl-core: Fix chip ID for the twl6030-pwm module

2012-11-12 Thread Peter Ujfalusi
Hi Samuel, On 11/01/2012 10:09 AM, Tero Kristo wrote: Acked-by: Tero Kristo t-kri...@ti.com Can you take this patch for 3.7? Thank you, Péter On Wed, 2012-10-31 at 15:54 +0100, Peter Ujfalusi wrote: The correct chip id is 1 since the PWM module is on address 0x49. With the current

Re: [PATCH 0/6] MFD: twl6040: Conversion to use regmap_irq

2012-11-12 Thread Peter Ujfalusi
Hi Samuel, On 10/11/2012 01:55 PM, Peter Ujfalusi wrote: Hello, This series will convert the twl6040 MFD core driver to use regmap_irq instead of the custom interrupt code it used. In this way considerable amount of code can be removed and we are going to use common, well tested code

[PATCH 01/13] MFD: twl-core: Register twl4030-madc child only for twl4030 class

2012-11-13 Thread Peter Ujfalusi
twl4030-madc driver can only handle twl4030 class MADC. The newer revisions of twl does not have MADC, instead they have different IP called GPADC which is not backward compatible. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 3 ++- 1 file changed, 2

[PATCH 07/13] mfd: twl: Convert module id definitions to enums

2012-11-13 Thread Peter Ujfalusi
can switch to use it as soon as it is possible. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 9 +++ include/linux/i2c/twl.h | 65 + 2 files changed, 36 insertions(+), 38 deletions(-) diff --git a/drivers

[PATCH 11/13] mfd: twl4030-power: Change TWL4030_MODULE_* ids to TWL_MODULE_*

2012-11-13 Thread Peter Ujfalusi
To facilitate upcoming cleanup in twl stack. No functional changes. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-power.c | 124 ++-- 1 file changed, 51 insertions(+), 73 deletions(-) diff --git a/drivers/mfd/twl4030-power.c

[PATCH 04/13] MFD/rtc/gpio: twl: No need to allocate bigger buffer for write

2012-11-13 Thread Peter Ujfalusi
Since the twl-core has been converted to use regmap it is no longer needed to allocate bigger buffer for data when writing to twl. CC: Grant Likely grant.lik...@secretlab.ca CC: Linus Walleij linus.wall...@linaro.org CC: Alessandro Zummo a.zu...@towertech.it Signed-off-by: Peter Ujfalusi

[PATCH 03/13] MFD: twl-core: Convert to use regmap for I/O

2012-11-13 Thread Peter Ujfalusi
Remove the custom code to do I/O and replace it with standard regmap calls. CC: Mark Brown broo...@opensource.wolfsonmicro.com Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 147 +++-- 1 file changed, 80 insertions

[PATCH 08/13] mfd: twl: Use decimal numbers for TWL6030_MODULE_IDs

2012-11-13 Thread Peter Ujfalusi
It is easier fro humans to understand decimal numbers than hexadecimals when they are used as indexes. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/i2c/twl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/i2c/twl.h b/include/linux

[PATCH 13/13] mfd: twl-core: Change TWL4030_MODULE_* ids to TWL_MODULE_*

2012-11-13 Thread Peter Ujfalusi
To facilitate upcoming cleanup in twl stack. No functional changes. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index f857097

[PATCH 12/13] mfd: twl4030-irq: Change TWL4030_MODULE_* ids to TWL_MODULE_*

2012-11-13 Thread Peter Ujfalusi
To facilitate upcoming cleanup in twl stack. No functional changes. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c index e900402

[PATCH 10/13] mfd: twl4030-madc: Change TWL4030_MODULE_* ids to TWL_MODULE_*

2012-11-13 Thread Peter Ujfalusi
To facilitate upcoming cleanup in twl stack. No functional changes. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-madc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/twl4030-madc.c b/drivers/mfd/twl4030-madc.c index

[PATCH 09/13] MFD: twl-core: re-group the twl_mapping table for easier reading

2012-11-13 Thread Peter Ujfalusi
Group the twl_mapping table in 5 lines chunks so it is more easier to find the row we are looking for (if we need to). Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/twl

[PATCH 00/13] MFD: twl drivers: Convert to regmap IO and cleanups

2012-11-13 Thread Peter Ujfalusi
. The series depends on a regression fix patch for the twl-core: https://patchwork.kernel.org/patch/1679421/ Regards, Peter --- Peter Ujfalusi (13): MFD: twl-core: Register twl4030-madc child only for twl4030 class MFD: twl-core: Support for proper PWM drivers MFD: twl-core: Convert to use

[PATCH 05/13] MFD: twl-core: Clean up and correct child registration

2012-11-13 Thread Peter Ujfalusi
on 0x4b address and not 0x48 twl4030_pwrbutton is accessible on 0x4b address and not 0x49 twl4030-audio is on 0x49 all the time Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git

[PATCH 06/13] mfd: twl: Remove unused TWL_MODULE definitions

2012-11-13 Thread Peter Ujfalusi
AUDIO and MADC only available on twl4030 series and the TWL_MODULE_* mapping is not needed. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/i2c/twl.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 9a5e284

[PATCH 02/13] MFD: twl-core: Support for proper PWM drivers

2012-11-13 Thread Peter Ujfalusi
instance) while the twl-pwmled driver is to control the two LED instance on TWL4030 and to charging indicator LED (1 instance) on TWL6030. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git

[PATCH] gpio: twl4030: Use only TWL4030_MODULE_LED for LED configuration

2012-11-13 Thread Peter Ujfalusi
Avoid using the TWL4030_MODULE_PWMA/B as module ID. The LEDEN, PWMA ON/OFF and PWMB ON/OFF registers are in a continuous range starting from LED base. This is going to be helpful for further cleanup in the twl stack. No functional changes. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com

[PATCH] input: twl4030-pwrbutton: Change TWL4030_MODULE_PM_MASTER to TWL_MODULE_PM_MASTER

2012-11-13 Thread Peter Ujfalusi
To facilitate upcoming cleanup in twl stack. No functional changes. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/input/misc/twl4030-pwrbutton.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/misc/twl4030-pwrbutton.c b/drivers/input/misc

[PATCH] wdt: twl4030: Change TWL4030_MODULE_PM_RECEIVER to TWL_MODULE_PM_RECEIVER

2012-11-13 Thread Peter Ujfalusi
To facilitate upcoming cleanup in twl stack. No functional changes. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/watchdog/twl4030_wdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/twl4030_wdt.c b/drivers/watchdog/twl4030_wdt.c index

[PATCH] power: twl4030_charger: Change TWL4030_MODULE_* ids to TWL_MODULE_*

2012-11-13 Thread Peter Ujfalusi
To facilitate upcoming cleanup in twl stack. No functional changes. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/power/twl4030_charger.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/power/twl4030_charger.c b/drivers/power

[PATCH] usb: otg: twl4030: Change TWL4030_MODULE_* ids to TWL_MODULE_*

2012-11-13 Thread Peter Ujfalusi
To facilitate upcoming cleanup in twl stack. No functional changes. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/usb/otg/twl4030-usb.c | 46 --- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/drivers/usb/otg/twl4030

Re: [PATCH] usb: otg: twl4030: Change TWL4030_MODULE_* ids to TWL_MODULE_*

2012-11-13 Thread Peter Ujfalusi
Hi Felipe, On 11/13/2012 10:47 AM, Felipe Balbi wrote: On Tue, Nov 13, 2012 at 10:43:38AM +0100, Peter Ujfalusi wrote: To facilitate upcoming cleanup in twl stack. No functional changes. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com I guess this one must go together with the rest

Re: [PATCH] usb: otg: twl4030: Change TWL4030_MODULE_* ids to TWL_MODULE_*

2012-11-13 Thread Peter Ujfalusi
On 11/13/2012 11:37 AM, Felipe Balbi wrote: ok good. Unfortunately I have already sent this merge window's pull request to Greg so I'd have to delay this until v3.9. If that's ok with you, I can take it through my tree. I hoped that this can go with 3.8 since in 3.9 I'm planning to remove all

Re: [PATCH v2 1/3] leds: leds-pwm: Convert to use devm_get_pwm

2012-11-13 Thread Peter Ujfalusi
Hi Bryan, On 11/14/2012 02:14 AM, Bryan Wu wrote: diff --git a/include/linux/leds_pwm.h b/include/linux/leds_pwm.h index 33a0711..a65e964 100644 --- a/include/linux/leds_pwm.h +++ b/include/linux/leds_pwm.h @@ -7,7 +7,7 @@ struct led_pwm { const char *name; const

[PATCH] backlight: pandora_bl: Change TWL4030_MODULE_PWM0 to TWL_MODULE_PWM

2012-11-14 Thread Peter Ujfalusi
TWL_MODULE_PWM is defined as: #define TWL_MODULE_PWM TWL4030_MODULE_PWM0 Use the common module ID define here which will facilitate the upcoming twl-core cleanup. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/video/backlight/pandora_bl.c | 8 +++- 1 file changed

[PATCH] OMAPDSS: Correct check for the callback pointer in dss_dsi_disable_pads()

2012-10-16 Thread Peter Ujfalusi
Appear to be a copy-paste bug: the code was checking board_data-dsi_enable_pads while calling board_data-dsi_disable_pads. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Hi Tomi, not sure if this need to be included to 3.7 Regards, Peter drivers/video/omap2/dss/core.c | 2 +- 1

[PATCH 0/2] MFD: twl6040: Version support fixes, additions

2012-07-16 Thread Peter Ujfalusi
Hello, The following series fixes the revision information for twl6040 and adds support for twl6041. While the first patch is changing a driver in sound/soc/codecs the series can go via MFD since we do not have pending patches for twl6040 audio part for 3.6. Regards, Peter --- Peter Ujfalusi (2

[PATCH 1/2] MFD: twl6040: Fix revision information

2012-07-16 Thread Peter Ujfalusi
twl6040 ES1.1 and ES1.2 have the same revid (0x01). ES1.3 of twl6040 REVID is 0x02. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/mfd/twl6040.h |4 ++-- sound/soc/codecs/twl6040.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux

[PATCH 2/2] MFD: twl6040: Add support for twl6041

2012-07-16 Thread Peter Ujfalusi
The delta between twl6040 and twl6041 is small, the main difference is in the number of GPOs (3 on twl6040, 1 on twl6041). Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Documentation/devicetree/bindings/mfd/twl6040.txt |2 +- drivers/mfd/twl6040-core.c|1

Re: [alsa-devel] [PATCH 1/2] MFD: twl6040: Fix revision information

2012-07-17 Thread Peter Ujfalusi
On 07/17/2012 08:39 AM, Rajeev kumar wrote: #define TWL6040_REV_ES1_00x00 -#define TWL6040_REV_ES1_10x01 -#define TWL6040_REV_ES1_20x02 +#define TWL6040_REV_ES1_10x01 /* Rev ES1.1 and ES1.2 */ +#define TWL6040_REV_ES1_30x02 #define TWL6040_IRQ_TH

[PATCH 0/3] MFD/GPIO: Add twl6040 GPO driver

2012-07-18 Thread Peter Ujfalusi
tree (twl6040 revision fixes, twl6041 support). Linus, Grant, Samuel: Would it be possible to queue this series via the MFD tree to avoid merge issues? It applies cleanly on top of gpio-next I believe it will not cause problems via MFD. Regards, Peter --- Peter Ujfalusi (3): mfd: twl6040: Fix

[PATCH 3/3] gpio: Add basic support for TWL6040 GPOs

2012-07-18 Thread Peter Ujfalusi
TWL6040 provides GPO lines to be used for controlling external devices.The number of lines different between versions: twl6040 have 3 GPO while TWL6041 have 1. Signed-off-by: Sergio Aguirre saagui...@ti.com Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/gpio/Kconfig

[PATCH 2/3] mfd: twl6040: Add twl6040-gpio child

2012-07-18 Thread Peter Ujfalusi
Add needed platform data structure and code to be able to load the GPO child of twl6040. Update the devicetree binding documentation at the same time. Signed-off-by: Sergio Aguirre saagui...@ti.com Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Documentation/devicetree/bindings/mfd

[PATCH 1/3] mfd: twl6040: Fix GPO mask

2012-07-18 Thread Peter Ujfalusi
Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/mfd/twl6040.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h index eaad49f..269b706 100644 --- a/include/linux/mfd/twl6040.h +++ b/include

[PATCH] RTC: rtc-twl: Convert to module_platform_driver() and relocate reg_map init

2013-04-16 Thread Peter Ujfalusi
probe function. Reported-by: Christoph Fritz chf.fr...@googlemail.com Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Hi Tony, Alessandro, Christoph, I think this patch is the correct solution for the issue Christoph reported: http://www.spinics.net/lists/linux-omap/msg89980.html We can

Re: [PATCH] RTC: rtc-twl: Convert to module_platform_driver() and relocate reg_map init

2013-04-16 Thread Peter Ujfalusi
Hi Tomi, On 04/16/2013 10:10 AM, Tomi Valkeinen wrote: Hi, On 2013-04-16 10:44, Peter Ujfalusi wrote: Convert the driver to use module_platform_driver() to register the platform driver and relocate the rtc_reg_map initialization to platform driver's probe function. In this way we can make

[PATCH v2 2/2] RTC: rtc-twl: Cleanup with module_platform_driver() conversion

2013-04-16 Thread Peter Ujfalusi
Use module_platform_driver() to register the platform driver. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/rtc/rtc-twl.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c index c385e9b..22b2fd6 100644

[PATCH v2 1/2] RTC: rtc-twl: Fix rtc_reg_map initialization

2013-04-16 Thread Peter Ujfalusi
it's init. Reported-by: Christoph Fritz chf.fr...@googlemail.com Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Hi, As Tomi commented on the first version: www.spinics.net/lists/linux-omap/msg90064.html www.spinics.net/lists/linux-omap/msg90066.html I have separated the actual fix from

Re: [RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-08 Thread Peter Ujfalusi
Russell, On 04/03/2013 01:17 PM, Peter Ujfalusi wrote: cyclic DMA is only used by audio which needs DMA to be started without a delay. If the DMA for audio is started using the tasklet we experience random channel switch (to be more precise: channel shift). Reported-by: Peter Meerwald pme

Re: [RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-09 Thread Peter Ujfalusi
On 04/09/2013 08:52 AM, Santosh Shilimkar wrote: I suggest Peter resend the patch with also Grant + Linus W cc:d so they can queue it unless there are other related patches pending somewhere else. Am curious on your suggestion. DMA engine patches are going via Vinod Koul's tree so I think

Re: [RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-09 Thread Peter Ujfalusi
On 04/08/2013 07:09 PM, Russell King - ARM Linux wrote: Now that I'm back from a short 4 day break, then yes, and the answer is that it's fine. Who's handling the patch? Thank you, Péter -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-09 Thread Peter Ujfalusi
Russell, On 04/09/2013 09:19 AM, Peter Ujfalusi wrote: On 04/08/2013 07:09 PM, Russell King - ARM Linux wrote: Now that I'm back from a short 4 day break, then yes, and the answer is that it's fine. Who's handling the patch? Thank you, Péter Can I add you acked-by to the patch

Re: [RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-09 Thread Peter Ujfalusi
On 04/09/2013 09:26 AM, Vinod Koul wrote: Yes it should go thru dmaengine tree, sorry was travelling hence the delay, pls resend the patch and I will do the needful I already have the patch rebased on today's linux-next, just waiting for Russell to confirm that I can add his Acked-by to the

[PATCH] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-09 Thread Peter Ujfalusi
-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Russell King rmk+ker...@arm.linux.org.uk --- Hi Vinod, Would it be possible to send this patch for 3.9. The channel shift (or switch) issue in audio has been noticed recently and it turns out

[RFC] dmaengine: omap-dma: Start DMA without delay

2013-03-29 Thread Peter Ujfalusi
Remove the use of a tasklet to start the DMA channel when issue_pending is called. The use of tasklet delays the DMA start which can cause issues at drivers, for example the audio drivers expect that the DMA is started right away. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Hi Russell

Re: [PATCH] pwm: twl: Return proper error if twl6030_pwm_enable() fails

2013-04-02 Thread Peter Ujfalusi
On 03/31/2013 05:07 PM, Axel Lin wrote: Return proper error instead of 0 if twl6030_pwm_enable() fails. Signed-off-by: Axel Lin axel@ingics.com Acked-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/pwm/pwm-twl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH 3/4] pwm: twl-led: Add .owner to struct pwm_ops

2013-04-02 Thread Peter Ujfalusi
On 03/31/2013 05:16 AM, Axel Lin wrote: Add missing .owner of struct pwm_ops. This prevents the module from being removed from underneath its users. Signed-off-by: Axel Lin axel@ingics.com Acked-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/pwm/pwm-twl-led.c |2 ++ 1 file

Re: [PATCH 4/4] pwm: twl: Add .owner to struct pwm_ops

2013-04-02 Thread Peter Ujfalusi
On 03/31/2013 05:17 AM, Axel Lin wrote: Add missing .owner of struct pwm_ops. This prevents the module from being removed from underneath its users. Signed-off-by: Axel Lin axel@ingics.com Acked-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/pwm/pwm-twl.c |2 ++ 1 file

Re: [RFC] dmaengine: omap-dma: Start DMA without delay

2013-04-02 Thread Peter Ujfalusi
Russell, On 03/29/2013 06:31 PM, Russell King - ARM Linux wrote: On Fri, Mar 29, 2013 at 03:12:03PM +0100, Peter Ujfalusi wrote: Remove the use of a tasklet to start the DMA channel when issue_pending is called. The use of tasklet delays the DMA start which can cause issues at drivers

[RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-03 Thread Peter Ujfalusi
cyclic DMA is only used by audio which needs DMA to be started without a delay. If the DMA for audio is started using the tasklet we experience random channel switch (to be more precise: channel shift). Reported-by: Peter Meerwald pme...@pmeerw.net Signed-off-by: Peter Ujfalusi peter.ujfal

Re: [RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-03 Thread Peter Ujfalusi
On 04/03/2013 01:24 PM, Santosh Shilimkar wrote: On Wednesday 03 April 2013 04:47 PM, Peter Ujfalusi wrote: cyclic DMA is only used by audio which needs DMA to be started without a delay. If the DMA for audio is started using the tasklet we experience random channel switch (to be more precise

Re: [PATCH] omap: convert to devm_ioremap_resource()

2013-03-12 Thread Peter Ujfalusi
Hi, On 03/11/2013 04:58 PM, Silviu-Mihai Popescu wrote: Convert all uses of devm_request_and_ioremap() to the newly introduced devm_ioremap_resource() which provides more consistent error handling. devm_ioremap_resource() provides its own error messages so all explicit error messages can be

Re: [PATCH] omap: convert to devm_ioremap_resource()

2013-03-12 Thread Peter Ujfalusi
On 03/12/2013 09:24 AM, Silviu Popescu wrote: As far as I can tell from the mails that you have provided, those patches replace devm_request_mem_region(), followed by devm_ioremap() with devm_request_and_ioremap(). What this patch attempts to do is replace devm_request_and_ioremap() with the

Re: [PATCH] omap: convert to devm_ioremap_resource()

2013-03-12 Thread Peter Ujfalusi
be removed from the failure code paths. Acked-by: Peter Ujfalusi peter.ujfal...@ti.com Signed-off-by: Silviu-Mihai Popescu silviupopescu1...@gmail.com --- sound/soc/omap/omap-dmic.c |9 +++-- sound/soc/omap/omap-mcpdm.c |8 +++- 2 files changed, 6 insertions(+), 11 deletions

Re: [PATCH 1/8] usb: phy: nop: Add some parameters to platform data

2013-03-13 Thread Peter Ujfalusi
On 03/12/2013 04:20 PM, Roger Quadros wrote: Adding Peter to the loop. I faintly remember him mentioning this issue before for beagle. We really need the deferred probe mechanism or we need to resort to device registering order. Yes, BeagleBoard is a good example. Long story short: we have

Re: [PATCH] gpio: New driver for GPO emulation using PWM generators

2012-11-29 Thread Peter Ujfalusi
On 11/28/2012 08:30 PM, Thierry Reding wrote: I must say I'm not terribly thrilled to integrate something like this into the PWM subsystem. I agree. I would not really want to add my name to something like this either... I wish hardware engineers wouldn't come up with such designs. I have

Re: [PATCH] gpio: New driver for GPO emulation using PWM generators

2012-11-30 Thread Peter Ujfalusi
On 11/30/2012 11:20 AM, Grant Likely wrote: Umm, I agree with you on duty cycle, but that's got nothing to do with period. 100% duty cycle looks exactly the same whether the period is 10ns or 100s. Yes this is true. But some PWM hw can select it's clock based on the period_ns provided. In most

Re: [PATCH] gpio: New driver for GPO emulation using PWM generators

2012-11-30 Thread Peter Ujfalusi
On 11/29/2012 05:10 PM, Grant Likely wrote: /* Enable GPIO us of the PWMs */ gpio-controller = 1; This line should be simply (the property shouldn't have any data): gpio-controller; Yes I know. It is like this already in my code. I just mixed up things while hacking it

Re: [PATCH v2 1/3] leds: leds-pwm: Convert to use devm_get_pwm

2012-12-03 Thread Peter Ujfalusi
Hi Bryan, On 11/14/2012 02:14 AM, Bryan Wu wrote: On Mon, Nov 12, 2012 at 6:41 AM, Peter Ujfalusi peter.ujfal...@ti.com wrote: Update the driver to use the new API for requesting pwm so we can take advantage of the pwm_lookup table to find the correct pwm to be used for the LED functionality

Re: [PATCH v2 1/3] leds: leds-pwm: Convert to use devm_get_pwm

2012-12-04 Thread Peter Ujfalusi
Hi Bryan, On 12/03/2012 07:32 PM, Bryan Wu wrote: On Mon, Dec 3, 2012 at 6:13 AM, Peter Ujfalusi peter.ujfal...@ti.com wrote: Actually, I'm waiting for some feedback from DT maintainers about this new binding. But it looks find to me. Would it be possible to have the first (or even better

[PATCH] gpio: twl4030: Correct status reporting when the GPIO is used as output

2012-12-05 Thread Peter Ujfalusi
When the GPIO is configured as output we need to read the GPIODATAOUT* register to get correct information. When the GPIO is output the GPIODATAIN* registers report 0 all the time (no feedback from output path). Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/gpio/gpio-twl4030.c

Re: [PATCH v2 1/3] leds: leds-pwm: Convert to use devm_get_pwm

2012-12-05 Thread Peter Ujfalusi
On 12/04/2012 06:34 PM, Bryan Wu wrote: What's best thing I can do is I can merge these patchset into my -devel branch, after 3.8 merge window close I will move this -devel branch to my for-next branch for 3.9 merge window. Does this make sense to you? Not sure if I can get changes related

Re: [PATCH v2 09/11] mfd: twl-core: Collect global variables behind one private structure (global)

2013-02-08 Thread Peter Ujfalusi
to the beginning of the twl_i2c_read/write function because twl_get_last_module() also uses the twl_priv structure. Signed-off-by: Jon Hunter jon-hun...@ti.com Acked-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 16 1 file changed, 8 insertions(+), 8

Re: Sound record on Devkit8000 with DT boot issue

2013-02-11 Thread Peter Ujfalusi
On 02/10/2013 04:21 PM, Anil Kumar wrote: Hi All, I am working on Devkit8000 and adding DT support for that. I am trying to add sound DT node support for this boards. I have nearly done with this but facing issue on record. I do not have much knowledge of twl4030 audio codec but with small

Re: Sound record on Devkit8000 with DT boot issue

2013-02-11 Thread Peter Ujfalusi
Hi, On 02/11/2013 06:58 PM, Anil Kumar wrote: Here you should have something like: ti,audio-routing = Ext Spk, PREDRIVEL, Ext Spk, PREDRIVER, MAINMIC, Main Mic, Main Mic, Mic Bias 1; So you connect the MicBias1 to Main Mic. When you start playback MicBias1

Re: [PATCH v2 09/11] mfd: twl-core: Collect global variables behind one private structure (global)

2013-02-11 Thread Peter Ujfalusi
On 02/11/2013 09:22 PM, Jon Hunter wrote: Good point. I just noticed that none of my omap2+ board were booting and on omap3/4 I was the panic in the twl code. I can't say that I checked the panic on omap2, so may be that was another problem? Do you have insights on the code path leading to a

Re: [PATCH v2 09/11] mfd: twl-core: Collect global variables behind one private structure (global)

2013-02-13 Thread Peter Ujfalusi
Hi Jon, On 02/12/2013 05:15 PM, Jon Hunter wrote: On 02/12/2013 01:26 AM, Peter Ujfalusi wrote: On 02/11/2013 09:22 PM, Jon Hunter wrote: Good point. I just noticed that none of my omap2+ board were booting and on omap3/4 I was the panic in the twl code. I can't say that I checked

Re: [PATCH 1/4] pwm_backlight: Fix PWM levels support in non DT case

2013-01-29 Thread Peter Ujfalusi
On 01/29/2013 11:17 AM, Thierry Reding wrote: On Tue, Jan 29, 2013 at 09:17:04AM +0100, Peter Ujfalusi wrote: On 01/28/2013 10:01 PM, Thierry Reding wrote: On Tue, Jan 22, 2013 at 02:39:53PM +0100, Peter Ujfalusi wrote: It is expected that board files would have: static unsigned int bl_levels

Re: [PATCH 1/4] pwm_backlight: Fix PWM levels support in non DT case

2013-01-29 Thread Peter Ujfalusi
On 01/29/2013 01:30 PM, Thierry Reding wrote: Right. Now I know the background. However I do not agree with the conclusion. Probably it is fine in some cases to limit the number of configurable duty cycles to have only distinct steps. To not go too far, on my laptop I have: # cat

[PATCH] USB: musb: Correct Kconfig in order to avoid non compilable selection

2013-01-31 Thread Peter Ujfalusi
Currently it is possible to have: USB_MUSB_OMAP2PLUS=m TWL4030_USB=y which would result compile time error due to missing symbols. With this change USB_MUSB_OMAP2PLUS and TWL4030_USB will be in sync. Reported-by: Vincent Stehle v-ste...@ti.com Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com

Re: [PATCH 2/4] pwm_backlight: Validate dft_brightness in main probe function

2013-01-31 Thread Peter Ujfalusi
Hi Thierry, On 01/22/2013 02:39 PM, Peter Ujfalusi wrote: Move the dft_brightness validity check from the DT parsing function to the main probe. In this way we can validate it in case we are booting with or without DT. Based on the discussion the rest of the series is going to be dropped

Re: [PATCH] mfd: twl4030-audio: Fix argument type for twl4030_audio_disable_resource()

2013-03-02 Thread Peter Ujfalusi
On 03/02/2013 08:30 AM, Mark Brown wrote: Looks like the conversion to enum was missed for the definition of this function, the declaration has been updated. Acked-by: Peter Ujfalusi peter.ujfal...@ti.com Signed-off-by: Mark Brown broo...@opensource.wolfsonmicro.com --- drivers/mfd

  1   2   3   4   5   6   7   8   9   10   >