RE: [PATCH v2 0/4] can: c_can: Add suspend/resume and pinctrl support

2012-09-06 Thread AnilKumar, Chimata
On Thu, Sep 06, 2012 at 04:56:10, Tony Lindgren wrote: * Marc Kleine-Budde m...@pengutronix.de [120905 06:55]: On 09/05/2012 01:54 PM, Marc Kleine-Budde wrote: On 09/05/2012 01:12 PM, AnilKumar Ch wrote: Adds suspend/resume functionality of d_can driver along with d_can raminit support

RE: [PATCH v5 1/5] arm/dts: AM33XX: Add basic pinctrl device tree data

2012-09-06 Thread AnilKumar, Chimata
On Thu, Sep 06, 2012 at 05:02:05, Tony Lindgren wrote: * AnilKumar Ch anilku...@ti.com [120831 02:30]: Adds basic pinctrl device tree data for AM33XX family of devices. This patch is based on the pinctrl-single driver. Signed-off-by: AnilKumar Ch anilku...@ti.com ---

Re: [PATCH] ARM: OMAP4: wakeupgen: remove duplicate AUXCOREBOOT* read/write

2012-09-06 Thread Shilimkar, Santosh
On Thu, Sep 6, 2012 at 5:04 AM, Paul Walmsley p...@pwsan.com wrote: The wakeupgen context-save code reads and stores the AUXCOREBOOT0 and AUXCOREBOOT1 register contents twice. This seems like a waste of time, so, remove the duplicates. Signed-off-by: Paul Walmsley p...@pwsan.com Cc:

Re: [PATCH 2/4] ARM: OMAP: Split plat/hardware.h, introduce local hardware.h and soc.h for omap2+

2012-09-06 Thread Mark Brown
On Fri, Aug 31, 2012 at 07:06:54PM -0700, Tony Lindgren wrote: * Mark Brown broo...@opensource.wolfsonmicro.com [120831 17:28]: There's a topic/omap branch in ASoC which you can pull in to help reduce conflicts, or I could merge this there if that's sensible. Thanks. Did not see it yet at

[PATCH RESEND] arm/dts: AM33XX: Add SPI device tree data

2012-09-06 Thread Philip, Avinash
Add McSPI data node to AM33XX device tree file. The McSPI module (and so as the driver) is reused from OMAP4. Signed-off-by: Philip, Avinash avinashphi...@ti.com --- Resenting patch because ARM OMAP mailing list was not copied. :100644 100644 bb31bff... 6b469bd... M

Re: [PATCH] OMAP GPIO - don't wake from suspend unless requested.

2012-09-06 Thread Shilimkar, Santosh
On Thu, Sep 6, 2012 at 12:32 PM, NeilBrown ne...@suse.de wrote: On Thu, 6 Sep 2012 11:18:09 +0530 Shilimkar, Santosh santosh.shilim...@ti.com wrote: On Thu, Sep 6, 2012 at 8:35 AM, NeilBrown ne...@suse.de wrote: On Mon, 3 Sep 2012 22:59:06 -0700 Shilimkar, Santosh santosh.shilim...@ti.com

Re: [PATCH] ARM: omap_hwmod: Fix up resource names when booted with devicetree

2012-09-06 Thread Benoit Cousson
Hi Vaibhav, On 09/05/2012 10:05 PM, Vaibhav Hiremath wrote: On 9/5/2012 7:57 PM, Benoit Cousson wrote: Hi Paul, On 08/24/2012 06:20 PM, Peter Ujfalusi wrote: Hi Paul, On 08/24/2012 06:38 PM, Paul Walmsley wrote: Do we need both this one and your '[PATCH] driver core: Check if r-name is

Re: [alsa-devel] [PATCH] ASoC: ams-delta: fix card initalization failure

2012-09-06 Thread Mark Brown
On Sat, Sep 01, 2012 at 11:09:18AM +0200, Janusz Krzysztofik wrote: I see your point, however for now I can see no better way of referencing the data (of type struct snd_soc_card) then passing it to snd_soc_register_card(). But for this to work, I would have to register successfully an

RE: [PATCH v6 10/10] ARM: OMAP2+: tusb6010: generic timing calculation

2012-09-06 Thread Mohammed, Afzal
Hi Tony, On Mon, Sep 03, 2012 at 11:04:10, Mohammed, Afzal wrote: On Mon, Aug 27, 2012 at 14:04:44, Mohammed, Afzal wrote: On Sat, Aug 25, 2012 at 01:16:30, Tony Lindgren wrote: This hangs n800 during the boot. Paul reported that n800 stopped booting on OMAP baseline [1] due to an mmc

Re: [PATCH] OMAP GPIO - don't wake from suspend unless requested.

2012-09-06 Thread NeilBrown
On Thu, 6 Sep 2012 12:57:46 +0530 Shilimkar, Santosh santosh.shilim...@ti.com wrote: On Thu, Sep 6, 2012 at 12:32 PM, NeilBrown ne...@suse.de wrote: On Thu, 6 Sep 2012 11:18:09 +0530 Shilimkar, Santosh santosh.shilim...@ti.com wrote: On Thu, Sep 6, 2012 at 8:35 AM, NeilBrown

Re: [PATCH v2 0/4] can: c_can: Add suspend/resume and pinctrl support

2012-09-06 Thread Marc Kleine-Budde
On 09/06/2012 08:09 AM, AnilKumar, Chimata wrote: On Thu, Sep 06, 2012 at 04:56:10, Tony Lindgren wrote: * Marc Kleine-Budde m...@pengutronix.de [120905 06:55]: On 09/05/2012 01:54 PM, Marc Kleine-Budde wrote: On 09/05/2012 01:12 PM, AnilKumar Ch wrote: Adds suspend/resume functionality of

RE: [PATCH] ARM: omap_hwmod: Fix up resource names when booted with devicetree

2012-09-06 Thread Hiremath, Vaibhav
On Thu, Sep 06, 2012 at 13:07:29, Cousson, Benoit wrote: Hi Vaibhav, On 09/05/2012 10:05 PM, Vaibhav Hiremath wrote: On 9/5/2012 7:57 PM, Benoit Cousson wrote: Hi Paul, On 08/24/2012 06:20 PM, Peter Ujfalusi wrote: Hi Paul, On 08/24/2012 06:38 PM, Paul Walmsley wrote: Do we

Re: [PATCH] OMAP GPIO - don't wake from suspend unless requested.

2012-09-06 Thread Shilimkar, Santosh
On Thu, Sep 6, 2012 at 1:21 PM, NeilBrown ne...@suse.de wrote: On Thu, 6 Sep 2012 12:57:46 +0530 Shilimkar, Santosh santosh.shilim...@ti.com wrote: On Thu, Sep 6, 2012 at 12:32 PM, NeilBrown ne...@suse.de wrote: On Thu, 6 Sep 2012 11:18:09 +0530 Shilimkar, Santosh santosh.shilim...@ti.com

RE: [PATCH v2] of: Modify c_can binding documentation

2012-09-06 Thread AnilKumar, Chimata
Marc, On Tue, Sep 04, 2012 at 21:05:17, Stephen Warren wrote: On 09/02/2012 10:54 PM, AnilKumar Ch wrote: Modify c_can binding documentation according to recent review comments on device tree data addition patches. Signed-off-by: AnilKumar Ch anilku...@ti.com Reviewed-by: Stephen

Re: [PATCH v2] of: Modify c_can binding documentation

2012-09-06 Thread Marc Kleine-Budde
On 09/06/2012 11:26 AM, AnilKumar, Chimata wrote: Marc, On Tue, Sep 04, 2012 at 21:05:17, Stephen Warren wrote: On 09/02/2012 10:54 PM, AnilKumar Ch wrote: Modify c_can binding documentation according to recent review comments on device tree data addition patches. Signed-off-by: AnilKumar

RE: [PATCH v2] of: Modify c_can binding documentation

2012-09-06 Thread AnilKumar, Chimata
On Thu, Sep 06, 2012 at 15:00:34, Marc Kleine-Budde wrote: On 09/06/2012 11:26 AM, AnilKumar, Chimata wrote: Marc, On Tue, Sep 04, 2012 at 21:05:17, Stephen Warren wrote: On 09/02/2012 10:54 PM, AnilKumar Ch wrote: Modify c_can binding documentation according to recent review comments

[PATCH v7 0/3] arm/dts: Add device tree data for AM33XX devices

2012-09-06 Thread AnilKumar Ch
Add pinctrl and d_can device tree data to AM33XX family of devices. First two patches add support for pinctrl DT data and third one adds dcan DT data. Reason behind combining these patches is to apply cleanly on linux-omap tree, because these are sequential patches. These patches were tested on

[PATCH v7 2/3] arm/dts: AM33XX: Configure pinmuxs for user leds control on Bone

2012-09-06 Thread AnilKumar Ch
Adds GPIO pinctrl nodes to am3358_pinmux master node to control user leds (USR0, USR1, USR2 and USR3) present on BeagleBone. [k...@dominion.thruhere.net: led0, led1 suggested by koen] Signed-off-by: AnilKumar Ch anilku...@ti.com --- arch/arm/boot/dts/am335x-bone.dts | 43

[PATCH v7 3/3] arm/dts: AM33XX: Add D_CAN device tree data

2012-09-06 Thread AnilKumar Ch
Add Bosch D_CAN controller device tree data to AM33XX dtsi file by adding d_can device nodes with all the necessary parameters. Signed-off-by: AnilKumar Ch anilku...@ti.com --- arch/arm/boot/dts/am33xx.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git

[PATCH v7 1/3] arm/dts: AM33XX: Add basic pinctrl device tree data

2012-09-06 Thread AnilKumar Ch
Adds basic pinctrl device tree data for AM33XX family of devices. This patch is based on the pinctrl-single driver. Signed-off-by: AnilKumar Ch anilku...@ti.com --- arch/arm/boot/dts/am33xx.dtsi |9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi

Re: [PATCH v2] of: Modify c_can binding documentation

2012-09-06 Thread Marc Kleine-Budde
On 09/03/2012 06:54 AM, AnilKumar Ch wrote: Modify c_can binding documentation according to recent review comments on device tree data addition patches. Signed-off-by: AnilKumar Ch anilku...@ti.com --- Changes from v1: - Separated from Add DT for AM33XX devices patch series -

Re: [PATCH v2] of: Modify c_can binding documentation

2012-09-06 Thread Marc Kleine-Budde
On 09/06/2012 11:42 AM, Marc Kleine-Budde wrote: On 09/03/2012 06:54 AM, AnilKumar Ch wrote: Modify c_can binding documentation according to recent review comments on device tree data addition patches. Signed-off-by: AnilKumar Ch anilku...@ti.com --- Changes from v1: - Separated from

RE: [PATCH v2] of: Modify c_can binding documentation

2012-09-06 Thread AnilKumar, Chimata
On Thu, Sep 06, 2012 at 15:12:29, Marc Kleine-Budde wrote: On 09/03/2012 06:54 AM, AnilKumar Ch wrote: Modify c_can binding documentation according to recent review comments on device tree data addition patches. Signed-off-by: AnilKumar Ch anilku...@ti.com --- Changes from v1:

[PATCH v3] of: Modify c_can binding documentation

2012-09-06 Thread AnilKumar Ch
Modify c_can binding documentation according to recent review comments on device tree data addition patches. Signed-off-by: AnilKumar Ch anilku...@ti.com --- Changes from v2: - Incorporated Marc's comments on v2 * Fixed typo mistake by renaming d_can1 to dcan1 Changes from v1:

Re: [PATCH v3] of: Modify c_can binding documentation

2012-09-06 Thread Marc Kleine-Budde
On 09/06/2012 12:02 PM, AnilKumar Ch wrote: Modify c_can binding documentation according to recent review comments on device tree data addition patches. Signed-off-by: AnilKumar Ch anilku...@ti.com Thanks, I've updated my master branch. Marc -- Pengutronix e.K. | Marc

[PATCH v3 08/14] Input: twl4030-vibra: Support for DT booted kernel

2012-09-06 Thread Peter Ujfalusi
Add support when the kernel has been booted with DT blob. In this case the pdata is NULL, we need to reach up to the core node and check if the codec part has been enabled to determine if we need to coexist with the codec or not. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com ---

[PATCH v3 14/14] ASoC: twl4030: Support for DT booted kernel

2012-09-06 Thread Peter Ujfalusi
When the kernel has been booted with DT blob the platform data is NULL for the driver. We need to construct the pdata based on the DT information for runtime use. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 57

[PATCH v3 06/14] dt: Add empty of_find_node_by_name() function

2012-09-06 Thread Peter Ujfalusi
This commit adds an empty of_find_node_by_name() function for !CONFIG_OF builds. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/of.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 1b11632..5c7a158 100644 ---

[PATCH v3 09/14] ASoC: twl4030: Move hs_extmute GPIO handling to driver

2012-09-06 Thread Peter Ujfalusi
The external mute (if it is in use) is handled by a GPIO line. Prepare to remove the set_hs_extmute callback and replace it with: hs_extmute_gpio: the GPIO number to use for external mute When the users of set_hs_extmute has been converted the callback can be removed. Signed-off-by: Peter

[PATCH v3 10/14] ARM: OMAP/ASoC: Zoom2: Let the codec to handle the hs_extmute GPIO

2012-09-06 Thread Peter Ujfalusi
Remove the use of set_hs_extmute callback and let the codec driver to handle the extmute GPIO. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-omap2/board-zoom-peripherals.c | 9 ++--- arch/arm/mach-omap2/include/mach/board-zoom.h | 2 -- sound/soc/omap/zoom2.c

[PATCH v3 12/14] ASoC: twl4030: Convert to use devm_kzalloc

2012-09-06 Thread Peter Ujfalusi
Allocate the private data with devm_kzalloc. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index 27ccea4..413e698 100644 ---

[PATCH v3 11/14] ASoC/MFD: twl4030: Remove set_hs_extmute callback from platform data

2012-09-06 Thread Peter Ujfalusi
We no longer have users for the set_hs_extmute callback which has been replaced by hs_extmute_gpio so the codec driver can handle the external mute if it is needed by the board. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/i2c/twl.h| 2 -- sound/soc/codecs/twl4030.c

[PATCH v3 13/14] ASoC: twl4030: Add pointer to pdata within the private data

2012-09-06 Thread Peter Ujfalusi
Access the pdata via a pointer within the twl4030_priv structure. In preparation for DeviceTree support. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH v3 07/14] MFD: twl4030-audio: Add DT support

2012-09-06 Thread Peter Ujfalusi
Support for loading the twl4030 audio module via devicetree. Sub devices for codec and vibra will be created as mfd devices once the core MFD driver is loaded when the kernel is booted with a DT blob. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com ---

[PATCH v3 05/14] MFD: twl4030-audio: Get audio MCLK via twl-core API instead of pdata

2012-09-06 Thread Peter Ujfalusi
twl-core has API to get the boot time configured HFCLK rate which has the same rate as the audio MCLK. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/twl4030-audio.c

[PATCH v3 00/14] MFD/ASoC/Input: twl4030-audio submodule DT support

2012-09-06 Thread Peter Ujfalusi
Hello, Generated on top of: git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/omap Changed since v2: - Added commit message to patch 2 (as Tero requested it) - Fixed patch 6 (dt: Add empty...) since the previous patch caused x86_64 build to fail due to missing struct before

[PATCH v3 02/14] MFD: twl4030-audio: Convert to use devm_kzalloc

2012-09-06 Thread Peter Ujfalusi
To clean up the module probe and remove functions. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/mfd/twl4030-audio.c b/drivers/mfd/twl4030-audio.c index

[PATCH v3 01/14] MFD: twl4030-audio: Clean up MODULE_* and platform_driver part

2012-09-06 Thread Peter Ujfalusi
Place the MODULE_* lines in the same block and add MODULE_DESCRIPTION. Rearange the platform_driver structure at the same time. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v3 04/14] MFD: twl-core: Add API to query the HFCLK rate

2012-09-06 Thread Peter Ujfalusi
CFG_BOOT register's HFCLK_FREQ field hold information about the used HFCLK frequency. Add possibility for users to get the configured rate based on this register. This register was configured during boot, without it the chip would not operate correctly, so we can trust on this information.

Re: [PATCH v7 1/7] drivers: usb: phy: add a new driver for omap usb2 phy

2012-09-06 Thread ABRAHAM, KISHON VIJAY
Hi, On Mon, Aug 6, 2012 at 6:37 PM, Kishon Vijay Abraham I kis...@ti.com wrote: All phy related programming like enabling/disabling the clocks, powering on/off the phy is taken care of by this driver. It is also used for OTG related functionality like srp. This also includes device tree

[PATCH v3 03/14] MFD: twl4030-audio: Rearange and clean-up the probe function

2012-09-06 Thread Peter Ujfalusi
To facilitate the device tree support the probe function need to be rearanged. Small cleanup in the APLL frequency selection part as well. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c | 34 -- 1 file changed, 16

Re: [PATCH v3 03/23] serial: omap: don't access the platform_device

2012-09-06 Thread Felipe Balbi
On Wed, Sep 05, 2012 at 01:27:21PM -0700, Greg KH wrote: On Thu, Aug 23, 2012 at 01:32:43PM +0300, Felipe Balbi wrote: The driver doesn't need to know about its platform_device. Everything the driver needs can be done through the struct device pointer. In case we need to use the

Re: [PATCH v3 20/23] serial: omap: fix software flow control

2012-09-06 Thread Felipe Balbi
On Wed, Sep 05, 2012 at 01:27:49PM -0700, Greg KH wrote: On Thu, Aug 23, 2012 at 01:33:00PM +0300, Felipe Balbi wrote: From: Vikram Pandita vikram.pand...@ti.com Software flow control register bits were not defined correctly. Also clarify the IXON and IXOFF logic to reflect what

[PATCH v4 07/21] serial: omap: stick to put_autosuspend

2012-09-06 Thread Felipe Balbi
Everytime we're done using our TTY, we want the pm timer to be reinitilized. By sticking to pm_runtime_pm_autosuspend() we make sure that this will always be the case. The idea behind this patch is to make sure we will always reinitialize the pm timer so that we don't fall into a situation where

[PATCH v4 08/21] serial: omap: set dev-drvdata before enabling pm_runtime

2012-09-06 Thread Felipe Balbi
by the time we call our first pm_runtme_get_sync() after enable pm_runtime, our resume method might be called. To avoid problems, we must make sure that our dev-drvdata is set correctly before our resume method gets called. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh Shilimkar

[PATCH v4 10/21] serial: omap: make sure to suspend device before remove

2012-09-06 Thread Felipe Balbi
before removing the driver, let's make sure to force device into a suspended state in order to conserve power. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/tty/serial/omap-serial.c | 1 + 1

[PATCH v4 09/21] serial: omap: drop unnecessary check from remove

2012-09-06 Thread Felipe Balbi
if platform_get_drvdata() returns NULL, that's quite a nasty bug on the driver which we want to catch ASAP. Otherwise, that check is hugely unneeded. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com ---

[PATCH v4 13/21] serial: omap: optimization with section annotations

2012-09-06 Thread Felipe Balbi
Two functions: omap_serial_fill_features_erratas() and of_get_uart_port_info() are only called from probe(). Marking them as __devinit gives us another oportunity to free some code after .init.text is done. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Signed-off-by: Ruchika Kharwar

[PATCH v4 15/21] serial: omap: unlock the port lock

2012-09-06 Thread Felipe Balbi
From: Ruchika Kharwar ruch...@ti.com This patch unlocks the port lock before calling a serial_core API and re-acquires the port lock after calling it. This patch fixes a system freeze issue seen when the serial_core API uart_write_wakeup() eventually attempts to acquire the port lock already

[PATCH v4 18/21] serial: omap: fix software flow control

2012-09-06 Thread Felipe Balbi
From: Vikram Pandita vikram.pand...@ti.com Software flow control register bits were not defined correctly. Also clarify the IXON and IXOFF logic to reflect what userspace wants. Cc: sta...@vger.kernel.org Tested-by: Shubhrajyoti D shubhrajy...@ti.com Signed-off-by: Vikram Pandita

[PATCH v4 20/21] serial: omap: move uart_omap_port definition to C file

2012-09-06 Thread Felipe Balbi
nobody needs to access the uart_omap_port structure other than omap-serial.c file. Let's move that structure definition to the C source file in order to prevent anyone from accessing our structure. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Tony Lindgren t...@atomide.com

[PATCH v4 21/21] serial: omap: enable RX and TX FIFO usage

2012-09-06 Thread Felipe Balbi
enable RX FIFO for 16 characters and TX FIFO for 16 spaces. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/tty/serial/omap-serial.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/omap-serial.c

[PATCH v4 19/21] serial: omap: remove unnecessary header and add a missing one

2012-09-06 Thread Felipe Balbi
this driver doesn't use any from plat/dmtimer.h, so we can remove it without any problems. This will, however cause a problem because omap-serial.c was relying on indirect inclusion of linux/platform_device.h, let's fix the issue by including linux/platform_device.h on omap-serial.c as it should

[PATCH v4 17/21] serial: omap: make sure to put() on poll_get_char

2012-09-06 Thread Felipe Balbi
if we would reach serial_omap_get_char() while Data Ready bit isn't set, we would return from it without kicking our pm timer. This would mean we would, eventually, have an unbalanced pm_runtime_get on our device which would prevent it from ever sleeping again. Tested-by: Shubhrajyoti D

[PATCH v4 16/21] serial: omap: implement set_wake

2012-09-06 Thread Felipe Balbi
This has been missing from OMAP UART driver for quite a while and it's simple enough to implement it. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/tty/serial/omap-serial.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v4 12/21] serial: omap: fix sequence of pm_runtime_* calls.

2012-09-06 Thread Felipe Balbi
From: Ruchika Kharwar ruch...@ti.com pm_runtime_enable() needs to be invoked before pm_runtime_use_autosuspend(), and pm_runtime_set_autosuspend_delay() functions. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Signed-off-by: Nishanth Menon n...@ti.com Signed-off-by: Ruchika Kharwar

[PATCH v4 11/21] serial: omap: don't save IRQ flags on hardirq

2012-09-06 Thread Felipe Balbi
When we're running our hardirq handler, there's not need to disable IRQs with spin_lock_irqsave() because IRQs are already disabled. It also makes no difference if we save or not IRQ flags. Switch over to simple spin_lock/spin_unlock and drop the flags variable. Tested-by: Shubhrajyoti D

[PATCH v4 06/21] serial: omap: move THRE check to transmit_chars()

2012-09-06 Thread Felipe Balbi
since all other IRQ types now do all necessary checks inside their handlers, transmit_chars() was the only one left expecting serial_omap_irq() to check THRE for it. We can move THRE check to transmit_chars() in order to make serial_omap_irq() more uniform. Tested-by: Shubhrajyoti D

Re: [PATCH 13/17] Revert OMAPDSS: APPLY: add fifo-merge support

2012-09-06 Thread Tomi Valkeinen
On Wed, 2012-09-05 at 19:13 +0530, Archit Taneja wrote: On Wednesday 05 September 2012 01:55 PM, Tomi Valkeinen wrote: This reverts commit 1d71f42b35ed66d90a9a39bc515bb16cfe2d4a46. Adding fifo merge feature as an omapdss internal configuration was a mistake. We cannot hide from the users

[PATCH v4 00/21] OMAP UART Patches

2012-09-06 Thread Felipe Balbi
Hi guys, here's v4 of the omap uart patchset. No changes other than a rebase on top of Greg's tty-next branch and Tony's Acked-by being added to a couple patches Note: I'm resending the series with Vikram's Software Flow Control fix anyway as it can just be ignored if it's decided it needs to go

[PATCH v4 03/21] serial: add OMAP-specific defines

2012-09-06 Thread Felipe Balbi
OMAP has some extra Interrupt types which can be really useful for SW. Let's define them so we can later use those in OMAP's serial driver. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com ---

[PATCH v4 02/21] serial: omap: drop DMA support

2012-09-06 Thread Felipe Balbi
The current support is known to be broken and a later patch will come re-adding it using dma engine API. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/tty/serial/omap-serial.c | 330

[PATCH v4 01/21] serial: omap: don't access the platform_device

2012-09-06 Thread Felipe Balbi
The driver doesn't need to know about its platform_device. Everything the driver needs can be done through the struct device pointer. In case we need to use the OMAP-specific PM function pointers, those can make sure to find the device's platform_device pointer so they can find the struct

Re: [PATCH 02/10] ARM: OMAP: Fix timer posted mode support

2012-09-06 Thread Vaibhav Hiremath
On 9/6/2012 12:34 AM, Jon Hunter wrote: Currently the dmtimer posted mode is being enabled when the function __omap_dm_timer_reset() is called. This function is only being called for OMAP1 timers and OMAP2+ timers that are being used as system timers. Hence, for OMAP2+ timers that are NOT

Re: [PATCH 09/10] ARM: OMAP: Add dmtimer interrupt disable function

2012-09-06 Thread Vaibhav Hiremath
On 9/6/2012 12:34 AM, Jon Hunter wrote: The OMAP dmtimer driver does not currently have a function to disable the timer interrupts. For some timer instances the timer interrupt enable function can be used to disable the interrupts because the same interrupt enable register is used to disable

Re: [PATCH 00/10] ARM: OMAP: DMTIMER fixes and clean-up

2012-09-06 Thread Vaibhav Hiremath
On 9/6/2012 12:34 AM, Jon Hunter wrote: This series includes several fixes for the OMAP DMTIMER driver and a few clean-ups to simplify some of the code. This series is based upon 3.6-rc4. Tested on OMAP5912 OSK, OMAP2420 H4, OMAP3430 Beagle and OMAP4430 Panda. Testing includes ... 1.

Re: [PATCH v7 1/7] drivers: usb: phy: add a new driver for omap usb2 phy

2012-09-06 Thread Arnd Bergmann
On Thursday 06 September 2012, ABRAHAM, KISHON VIJAY wrote: diff --git a/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt b/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt index d2fe064..bb0c7f4 100644 --- a/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt +++

Re: [PATCH 15/17] OMAPDSS: remove extra_info completion code

2012-09-06 Thread Tomi Valkeinen
On Wed, 2012-09-05 at 19:01 +0530, Archit Taneja wrote: On Wednesday 05 September 2012 01:55 PM, Tomi Valkeinen wrote: Now that fifo merge has been removed, nobody uses the extra_info related completion code, which can be removed. I think this might come into use when we fix the usage of

[PATCH 1/2] ARM/dts: omap4-sdp: Enable GPO functionality for twl6040

2012-09-06 Thread Peter Ujfalusi
Add the needed properties for twl6040 so the GPO functionality can be used by other drivers. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/omap4-sdp.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/omap4-sdp.dts

[PATCH 0/2] ARM/dts: omap4 boards: Enable the use of GPO on twl6040

2012-09-06 Thread Peter Ujfalusi
Hello, twl6040 has GPO functionality. The driver for it is going via MFD tree. This series adds the needed properties to twl6040 in the dts files so other drivers can use the GPO lines. Regards, Peter --- Peter Ujfalusi (2): ARM/dts: omap4-sdp: Enable GPO functionality for twl6040 ARM/dts:

[PATCH 2/2] ARM/dts: omap4-panda: Enable GPO functionality for twl6040

2012-09-06 Thread Peter Ujfalusi
Add the needed properties for twl6040 so the GPO functionality can be used by other drivers. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/omap4-panda.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/omap4-panda.dts

Re: [PATCH] musb: Kill __init from function that are called at other times as well.

2012-09-06 Thread Felipe Balbi
On Thu, Sep 06, 2012 at 05:01:46PM +0300, Pantelis Antoniou wrote: Marking functions as __init or __devinit and calling them at other times leads to predictable crashes (if you're lucky). Remove them for now. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com ---

Re: [PATCH v7 1/7] drivers: usb: phy: add a new driver for omap usb2 phy

2012-09-06 Thread Felipe Balbi
On Thu, Sep 06, 2012 at 01:03:02PM +, Arnd Bergmann wrote: On Thursday 06 September 2012, ABRAHAM, KISHON VIJAY wrote: diff --git a/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt b/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt index d2fe064..bb0c7f4 100644 ---

Re: [PATCH] OMAP GPIO - don't wake from suspend unless requested.

2012-09-06 Thread Felipe Balbi
Hi, On Thu, Sep 06, 2012 at 05:02:45PM +1000, NeilBrown wrote: On Thu, 6 Sep 2012 11:18:09 +0530 Shilimkar, Santosh santosh.shilim...@ti.com wrote: On Thu, Sep 6, 2012 at 8:35 AM, NeilBrown ne...@suse.de wrote: On Mon, 3 Sep 2012 22:59:06 -0700 Shilimkar, Santosh

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

2012-09-06 Thread Peter Ujfalusi
Thanks Linus, On 09/01/2012 02:10 AM, Linus Walleij wrote: On Thu, Aug 30, 2012 at 11:16 AM, Peter Ujfalusi peter.ujfal...@ti.com wrote: Hi Samuel, Linus, (...) Did you had time to look at this series? Do you want me to resend it? I have provided my ACK on the GPIO part assuming you're

Resume crash: MUSB interrupt routine interactions with omap2430_musb_set_vbus()

2012-09-06 Thread Tim Nordell
All - We've been doing some suspend/resume testing and found that on occasion (on the order of 1 in 5000 cycles) the system would lock up. The problem was traced into the MUSB subsystem. Specifically, the interrupt requested inside musb_core.c is of the non-threaded type (e.g. it runs in

Re: [RFC PATCH] OMAPDSS: DISPC: Fix IRQ unregister race

2012-09-06 Thread Tomi Valkeinen
Hi, On Sun, 2012-09-02 at 22:12 +0300, Dimitar Dimitrov wrote: Very rare kernel crashes are reported on a custom OMAP4 board. Kernel panics due to corrupted completion structure while executing dispc_irq_wait_handler(). Excerpt from kernel log: Internal error: Oops - undefined

Re: Resume crash: MUSB interrupt routine interactions with omap2430_musb_set_vbus()

2012-09-06 Thread Tim Nordell
Felipe let me know of the patch that I didn't see in the queue. Thanks! - Tim On 09/06/12 08:35, Tim Nordell wrote: All - We've been doing some suspend/resume testing and found that on occasion (on the order of 1 in 5000 cycles) the system would lock up. The problem was traced into the MUSB

Re: [RFC RESEND 1/4] arm/dts: OMAP: Add timer nodes

2012-09-06 Thread Rob Herring
On 07/23/2012 10:24 AM, Jon Hunter wrote: Hi Rob, On 07/16/2012 10:56 AM, Jon Hunter wrote: Hi Rob, On 07/13/2012 09:15 PM, Rob Herring wrote: On 07/13/2012 05:26 PM, Jon Hunter wrote: Add the 12 GP timers nodes present in OMAP3. Add the 11 GP timers nodes present in OMAP4. Add

Re: [PATCH 0/2] arm/dts: AM33XX: Add reg and interrupt property for all nodes

2012-09-06 Thread Benoit Cousson
Hi Vaihbav, On 08/27/2012 02:31 PM, Vaibhav Hiremath wrote: This series is trivial patch-series and should be considered as preparation for the future where we supposed to get rid of hwmod dependency. 1/2: Converts all hex numbers to lowercase, fixing inconsistency 2/2: Add reg and

Re: [PATCH 15/17] OMAPDSS: remove extra_info completion code

2012-09-06 Thread Archit Taneja
On Thursday 06 September 2012 07:12 PM, Tomi Valkeinen wrote: On Thu, 2012-09-06 at 19:05 +0530, Archit Taneja wrote: On Thursday 06 September 2012 06:34 PM, Tomi Valkeinen wrote: On Wed, 2012-09-05 at 19:01 +0530, Archit Taneja wrote: On Wednesday 05 September 2012 01:55 PM, Tomi Valkeinen

Re: [PATCH] OMAP GPIO - don't wake from suspend unless requested.

2012-09-06 Thread Shubhrajyoti
On Thursday 06 September 2012 12:32 PM, NeilBrown wrote: From: NeilBrown ne...@suse.de Subject: [PATCH] OMAP GPIO - don't wake from suspend unless requested. Current kernel will wake from suspend on an event on any active GPIO even if enable_irq_wake() wasn't called. There are two reasons

Re: [PATCH 02/10] ARM: OMAP: Fix timer posted mode support

2012-09-06 Thread Jon Hunter
On 09/06/2012 07:57 AM, Vaibhav Hiremath wrote: On 9/6/2012 12:34 AM, Jon Hunter wrote: Currently the dmtimer posted mode is being enabled when the function __omap_dm_timer_reset() is called. This function is only being called for OMAP1 timers and OMAP2+ timers that are being used as

Re: [PATCH 09/10] ARM: OMAP: Add dmtimer interrupt disable function

2012-09-06 Thread Jon Hunter
On 09/06/2012 07:58 AM, Vaibhav Hiremath wrote: On 9/6/2012 12:34 AM, Jon Hunter wrote: The OMAP dmtimer driver does not currently have a function to disable the timer interrupts. For some timer instances the timer interrupt enable function can be used to disable the interrupts because

Re: [PATCH 15/17] OMAPDSS: remove extra_info completion code

2012-09-06 Thread Tomi Valkeinen
On Thu, 2012-09-06 at 19:31 +0530, Archit Taneja wrote: On Thursday 06 September 2012 07:12 PM, Tomi Valkeinen wrote: On Thu, 2012-09-06 at 19:05 +0530, Archit Taneja wrote: On Thursday 06 September 2012 06:34 PM, Tomi Valkeinen wrote: On Wed, 2012-09-05 at 19:01 +0530, Archit Taneja wrote:

Re: [PATCH 01/10] ARM: OMAP3+: Implement timer workaround for errata i103 and i767

2012-09-06 Thread Jon Hunter
On 09/06/2012 09:06 AM, Jon Hunter wrote: On 09/06/2012 12:07 AM, Vaibhav Hiremath wrote: On 9/6/2012 12:34 AM, Jon Hunter wrote: Errata Titles: i103: Delay needed to read some GP timer, WD timer and sync timer registers after wakeup (OMAP3/4) i767: Delay needed to read some GP

Re: [PATCH v2 1/8] ARM/dts: OMAP2: Add McBSP entries for OMAP2420 and OMAP2430 SoC

2012-09-06 Thread Benoit Cousson
On 09/05/2012 04:41 PM, Hiremath, Vaibhav wrote: ... There are other patches which are pending, arm/dts: AM33XX: Convert all hex numbers to lower-case https://patchwork.kernel.org/patch/1377351/ arm/dts: AM33XX: Specify reg and interrupt property for all nodes

[PATCH 2/5] drivers: usb: otg: make twl6030_usb as a comparator driver to omap_usb2

2012-09-06 Thread Kishon Vijay Abraham I
All the PHY configuration other than VBUS, ID GND and OTG SRP are removed from twl6030. The phy configurations are taken care by the dedicated usb2 phy driver. So twl6030 is made as comparator driver for VBUS and ID detection. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com ---

Re: [PATCH] musb: Kill __init from function that are called at other times as well.

2012-09-06 Thread Pantelis Antoniou
Hi Felipe, A proper answer required some instrumentation printks(). So what I did is that I peppered each function marked with a removed __init or __devinit with a printk(KERN_INFO %s:%d (%s) %s\n, __FILE__, __LINE__, KBUILD_MODNAME, __func__); Both omap2430 musb_hdrc are compiled as

[PATCH 1/5] drivers: usb: phy: add a new driver for omap usb2 phy

2012-09-06 Thread Kishon Vijay Abraham I
All phy related programming like enabling/disabling the clocks, powering on/off the phy is taken care of by this driver. It is also used for OTG related functionality like srp. This also includes device tree support for usb2 phy driver and the documentation with device tree binding information is

[PATCH 1/3] arm: omap: hwmod: add a new addr space in otg for writing to control module

2012-09-06 Thread Kishon Vijay Abraham I
The mailbox register for usb otg in omap is present in control module. On detection of any events VBUS or ID, this register should be written to send the notification to musb core. Till we have a separate control module driver to write to control module, omap2430 will handle the register writes

[PATCH 0/3] omap: musb: Add device tree support

2012-09-06 Thread Kishon Vijay Abraham I
This patch series adds device tree support for MUSB. The glue layer is now made to write to mailbox register (present in control module) instead of calling phy layer to write to mailbox register. Writing to mailbox register notifies the core of events like device connect/disconnect. Previously

[PATCH 2/3] usb: musb: omap: write directly to mailbox instead of using phy

2012-09-06 Thread Kishon Vijay Abraham I
The glue layer should directly write to mailbox register (present in control module) instead of calling phy layer to write to mailbox register. Writing to mailbox register notifies the core of events like device connect/disconnect. Currently writing to control module register is taken care in

[PATCH 4/5] drivers: usb: twl4030: Add device tree support for twl4030 usb

2012-09-06 Thread Kishon Vijay Abraham I
Add device tree support for twl4030 usb driver. Update the Documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- .../devicetree/bindings/usb/twl-usb.txt| 19 ++ drivers/usb/otg/twl4030-usb.c |

[PATCH 0/5] usb: phy/otg: add dt support

2012-09-06 Thread Kishon Vijay Abraham I
This patch series adds device tree support for phy's (twl4030 and twl6030). A new omap-usb2 phy driver has been added (with only dt suppport) to perform phy configurations. Previously this configuration was performed by twl6030, using pdata function pointers. With the addition of omap-usb2 to

[PATCH 3/5] drivers: usb: twl6030: Add dt support for twl6030 usb

2012-09-06 Thread Kishon Vijay Abraham I
Add device tree support for twl6030 usb driver. Update the Documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- .../devicetree/bindings/usb/twl-usb.txt| 21 +++ drivers/usb/otg/twl6030-usb.c | 39

[PATCH 5/5] arm: omap: phy: remove unused functions from omap-phy-internal.c

2012-09-06 Thread Kishon Vijay Abraham I
All the unnessary functions in omap-phy-internal is removed. These functionality are now handled by omap-usb2 phy driver. Cc: Felipe Balbi ba...@ti.com Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Acked-by: Tony Lindgren t...@atomide.com --- arch/arm/mach-omap2/omap_phy_internal.c | 138

[PATCH 3/3] usb: musb: omap: Add device tree support for omap musb glue

2012-09-06 Thread Kishon Vijay Abraham I
Added device tree support for omap musb driver and updated the Documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- Documentation/devicetree/bindings/usb/omap-usb.txt | 33 drivers/usb/musb/omap2430.c|

Re: [PATCH] arm: omap: hwmod: make *phy_48m* as the main_clk of ocp2scp

2012-09-06 Thread ABRAHAM, KISHON VIJAY
Hi, On Mon, Jul 2, 2012 at 2:25 PM, Kishon Vijay Abraham I kis...@ti.com wrote: Made *ocp2scp_usb_phy_phy_48m* as the main_clk for ocp2scp. Since this ocp2scp module does not have any fck but does have a single opt_clock, it is added as the main_clk for ocp2scp. Also removed phy_48m as the

Re: [RFC PATCH 2/5] arm: omap: remove ocp2scp_usb_phy_ick clock node

2012-09-06 Thread ABRAHAM, KISHON VIJAY
Hi, On Wed, May 30, 2012 at 4:26 PM, Kishon Vijay Abraham I kis...@ti.com wrote: ocp2scp_usb_phy_ick clock node was a fake clock node created to control MODULEMODE of ocp2scp. Since the hwmod for ocp2scp is now added (which can be used to control MODULEMODE) this clock node is removed. Cc:

  1   2   >