Re: [PATCH 08/14] OMAPDSS: DSS: add new clock calculation code

2013-03-21 Thread Archit Taneja
On Wednesday 20 March 2013 08:58 PM, Tomi Valkeinen wrote: On 2013-03-20 17:17, Archit Taneja wrote: On Friday 08 March 2013 05:22 PM, Tomi Valkeinen wrote: Add new way to iterate over DSS clock divisors. dss_div_calc() provides a generic way to go over all the divisors, within given clock

Re: [PATCH v3 5/6] ARM: dts: omap: update usb_otg_hs data

2013-03-21 Thread kishon
Hi, On Thursday 21 March 2013 02:29 AM, Stephen Warren wrote: On 03/20/2013 03:12 AM, Kishon Vijay Abraham I wrote: Updated the usb_otg_hs dt data to include the *phy* and *phy-names* binding in order for the driver to use the new generic PHY framework. Also updated the Documentation to

Re: [PATCH 08/14] OMAPDSS: DSS: add new clock calculation code

2013-03-21 Thread Tomi Valkeinen
On 2013-03-21 08:14, Archit Taneja wrote: On Wednesday 20 March 2013 08:58 PM, Tomi Valkeinen wrote: On 2013-03-20 17:17, Archit Taneja wrote: On Friday 08 March 2013 05:22 PM, Tomi Valkeinen wrote: +if (dss.dpll4_m4_ck == NULL) { +/* XXX can we change the clock on omap2? */ We

Re: [BUG] bisected: PandaBoard smsc95xx ethernet driver error from USB timeout

2013-03-21 Thread Ming Lei
Hi Frank, On Thu, Mar 21, 2013 at 11:29 AM, Frank Rowand frank.row...@am.sony.com wrote: I found the problem on 3.6.11, but have not replicated it on 3.9-rcX yet because my config fails to build on 3.9-rc1 and 3.9-rc2. I'll try to work on that issue tomorrow. I play upstream kernel on

Re: [PATCH 5/6] OF: Introduce Device Tree resolve support.

2013-03-21 Thread Pantelis Antoniou
Hi Grant, On Mar 19, 2013, at 7:18 PM, Grant Likely wrote: On Tue, 19 Mar 2013 13:51:01 +0200, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Hi Grant, On Mar 16, 2013, at 11:24 AM, Grant Likely wrote: On Wed, 23 Jan 2013 12:58:02 +0200, Pantelis Antoniou

[PATCH v2] ARM: OMAP: clocks: Delay clk inits atleast until slab is initialized

2013-03-21 Thread Rajendra Nayak
clk inits on OMAP happen quite early, even before slab is available. The dependency comes from the fact that the timer init code starts to use clocks and hwmod and we need clocks to be initialized by then. There are various problems doing clk inits this early, one is, not being able to do dynamic

Re: [PATCH] ARM: convert arm/arm64 arch timer to use CLKSRC_OF init

2013-03-21 Thread Mark Rutland
Hi Rob, (adding Marc to Cc as he may have comments). On Wed, Mar 20, 2013 at 10:34:35PM +, Rob Herring wrote: From: Rob Herring rob.herr...@calxeda.com This converts arm and arm64 to use CLKSRC_OF DT based initialization for the arch timer. A new function arch_timer_arch_init is added

Re: [PATCH v2] ARM: OMAP: clocks: Delay clk inits atleast until slab is initialized

2013-03-21 Thread Santosh Shilimkar
On Thursday 21 March 2013 04:34 PM, Rajendra Nayak wrote: clk inits on OMAP happen quite early, even before slab is available. The dependency comes from the fact that the timer init code starts to use clocks and hwmod and we need clocks to be initialized by then. There are various problems

Re: [PATCH] ARM: convert arm/arm64 arch timer to use CLKSRC_OF init

2013-03-21 Thread Marc Zyngier
On 21/03/13 11:06, Mark Rutland wrote: Hi Rob, (adding Marc to Cc as he may have comments). On Wed, Mar 20, 2013 at 10:34:35PM +, Rob Herring wrote: From: Rob Herring rob.herr...@calxeda.com This converts arm and arm64 to use CLKSRC_OF DT based initialization for the arch timer. A

Re: [PATCH] mmc: omap_hsmmc: support deferred probing for GPIOs

2013-03-21 Thread Jan Lübbe
On Thu, 2013-02-14 at 19:23 +0530, Balaji T K wrote: On Thursday 14 February 2013 04:13 PM, Jan Lübbe wrote: On Wed, 2013-01-30 at 10:07 +0100, Jan Luebbe wrote: If the CD/WP-GPIOs are not provided by the SoC's GPIO controller, we need to handle the case where omap_hsmmc is probed earlier

Re: [PATCHv3 00/14] drivers: mailbox: framework creation

2013-03-21 Thread Linus Walleij
On Wed, Mar 13, 2013 at 4:23 AM, Suman Anna s-a...@ti.com wrote: Please find the updated mailbox patch series for pulling into linux-next. The series is rebased on top of 3.9-rc2, and includes one new patch to rename an existing mailbox.h added as part of the highbank cpufreq support for 3.9

[BUGFIX PATCH] ARM: OMAP: fix type of return values in omap_device_get_by_hwmod_name()

2013-03-21 Thread Lothar Waßmann
The merge bda5e141fbe96295c669692114d18687730269fb erroneously changed the return value of some error exits of omap_device_get_by_hwmod_name() from ERR_PTR() to -ENODEV. This fixes the warnings: arch/arm/mach-omap2/omap_device.c: In function 'omap_device_get_by_hwmod_name':

Re: [PATCH] ARM: convert arm/arm64 arch timer to use CLKSRC_OF init

2013-03-21 Thread Rob Herring
On 03/21/2013 06:06 AM, Mark Rutland wrote: Hi Rob, (adding Marc to Cc as he may have comments). On Wed, Mar 20, 2013 at 10:34:35PM +, Rob Herring wrote: From: Rob Herring rob.herr...@calxeda.com This converts arm and arm64 to use CLKSRC_OF DT based initialization for the arch

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-03-21 Thread Rajendra Nayak
[].. diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 0274ff7..23f2064 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c @@ -158,7 +158,7 @@ DT_MACHINE_START(OMAP4_DT, Generic OMAP4 (Flattened Device

Re: [PATCHv2 5/7] usb: phy: twl4030-usb: check if vbus is driven by twl itself

2013-03-21 Thread Grazvydas Ignotas
On Wed, Mar 20, 2013 at 3:07 PM, Felipe Balbi ba...@ti.com wrote: On Sun, Mar 17, 2013 at 08:23:25PM +0200, Grazvydas Ignotas wrote: At least on pandora, STS_VBUS gets set even when VBUS is driven by twl itself. Reporting VBUS in this case confuses OMAP musb glue and charger driver, so check

[PATCH] ARM: OMAP4: clock: Initialize USB DPLL

2013-03-21 Thread Roger Quadros
If the bootloader doesn't configure USB DPLL (e.g. in u-boot, disable CONFIG_USB_EHCI_OMAP), then we get all sorts of problems like - division by zero errors at boot [1] - USB DPLL fails to enter locked state - USB EHCI Host is non functional - Device can't enter OFF mode Initializing the USB

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-03-21 Thread Roger Quadros
On 03/21/2013 03:08 PM, Rajendra Nayak wrote: [].. diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 0274ff7..23f2064 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c @@ -158,7 +158,7 @@

Re: [PATCH] ARM: OMAP4: clock: Initialize USB DPLL

2013-03-21 Thread Roger Quadros
On 03/21/2013 03:48 PM, Roger Quadros wrote: If the bootloader doesn't configure USB DPLL (e.g. in u-boot, disable CONFIG_USB_EHCI_OMAP), then we get all sorts of problems like - division by zero errors at boot [1] - USB DPLL fails to enter locked state - USB EHCI Host is non functional -

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-03-21 Thread Rajendra Nayak
On Thursday 21 March 2013 07:24 PM, Roger Quadros wrote: On 03/21/2013 03:08 PM, Rajendra Nayak wrote: [].. diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 0274ff7..23f2064 100644 --- a/arch/arm/mach-omap2/board-generic.c +++

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-03-21 Thread Roger Quadros
+Paul Nishant On 03/19/2013 04:26 PM, Roger Quadros wrote: Register a device tree clock provider for AUX clocks on the OMAP4 SoC. Also provide the binding information. Signed-off-by: Roger Quadros rog...@ti.com --- .../devicetree/bindings/clock/omap4-clock.txt | 32

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-03-21 Thread Roger Quadros
On 03/21/2013 04:04 PM, Rajendra Nayak wrote: On Thursday 21 March 2013 07:24 PM, Roger Quadros wrote: On 03/21/2013 03:08 PM, Rajendra Nayak wrote: [].. diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 0274ff7..23f2064 100644 ---

Re: [PATCH] ARM: OMAP4: clock: Initialize USB DPLL

2013-03-21 Thread Roger Quadros
+Paul On 03/21/2013 03:48 PM, Roger Quadros wrote: If the bootloader doesn't configure USB DPLL (e.g. in u-boot, disable CONFIG_USB_EHCI_OMAP), then we get all sorts of problems like - division by zero errors at boot [1] - USB DPLL fails to enter locked state - USB EHCI Host is non

Re: [BUG] bisected: PandaBoard smsc95xx ethernet driver error from USB timeout

2013-03-21 Thread Alan Stern
On Wed, 20 Mar 2013, Frank Rowand wrote: Hi All, Not quite sure quite where the problem is (USB, OMAP, smsc95xx driver, other???), so casting the nets wide... The PandaBoard frequently fails to boot with an eth0 error when mounting the root file system via NFS (ethernet driver fails

[PATCH] ARM: OMAP4: Enable fix for Cortex-A9 erratas

2013-03-21 Thread Sricharan R
This enables the fixes for the below erratas applicable for OMAP4 Socs. 754322: Faulty MMU translations following ASID switch 775420: A data cache maintenance operation which aborts, followed by an ISB, without any DSB in-between, might lead to deadlock Signed-off-by: Sricharan

Re: [PATCHv2 5/7] usb: phy: twl4030-usb: check if vbus is driven by twl itself

2013-03-21 Thread Felipe Balbi
Hi, On Thu, Mar 21, 2013 at 03:42:46PM +0200, Grazvydas Ignotas wrote: At least on pandora, STS_VBUS gets set even when VBUS is driven by twl itself. Reporting VBUS in this case confuses OMAP musb glue and charger driver, so check if OTG VBUS charge pump is on before reporting VBUS event

Re: [PATCH v3 5/6] ARM: dts: omap: update usb_otg_hs data

2013-03-21 Thread Stephen Warren
On 03/21/2013 12:23 AM, kishon wrote: Hi, On Thursday 21 March 2013 02:29 AM, Stephen Warren wrote: On 03/20/2013 03:12 AM, Kishon Vijay Abraham I wrote: Updated the usb_otg_hs dt data to include the *phy* and *phy-names* binding in order for the driver to use the new generic PHY framework.

[RFC 0/8]: omap4: clk: move clock data under drivers/clk

2013-03-21 Thread Tero Kristo
Hi, This is an RFC version of the clock data move under drivers/clk. Tested under 3.8 and boots fine, but don't try this out unless you are experimental sort (I quickly tried with 3.9-rc3 and it failed to boot with that.) The approach taken here has minimal impact on the clock data and should

[RFC 3/8] CLK: OMAP4: Clock header register declarations to struct

2013-03-21 Thread Tero Kristo
Clock header register declarations were previously converting addresses to direct pointers. This doesn't work with an ioremapping driver, so these are changed into { module, offset } tuples. These are parsed by the driver into actual register addresses. Signed-off-by: Tero Kristo t-kri...@ti.com

[RFC 1/8] RFC: CLK: OMAP: Add basic infrastructure for OMAP clocks

2013-03-21 Thread Tero Kristo
This patch adds basic infrastructure support for registering clocks under common clock framework. This patch is done in preparation for moving clock data from arch/arm/mach-omap2/ folder under /drivers/clk/omap. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Mike Turquette mturque...@linaro.org

[RFC 6/8] CLK: OMAP4: add support for the new clock init code

2013-03-21 Thread Tero Kristo
Modifies the omap4 clock init code to support the new clock registration method. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Mike Turquette mturque...@linaro.org --- drivers/clk/omap/cclock44xx_data.c | 52 ++- 1 files changed, 21 insertions(+), 31

[RFC 7/8] clk: use strncmp for matching con_id in clk_find

2013-03-21 Thread Tero Kristo
As clkdev register forces the con_id length down to a maximum of 15 characters and terminating null, replace the internal implementation of clk_find to use strncmp instead of strcmp. This makes sure that if a user registers a clkdev with con_id name which gets trimmed, the same string used in the

Re: [PATCH v2] ARM: OMAP: clocks: Delay clk inits atleast until slab is initialized

2013-03-21 Thread Mike Turquette
Quoting Santosh Shilimkar (2013-03-21 04:18:08) On Thursday 21 March 2013 04:34 PM, Rajendra Nayak wrote: clk inits on OMAP happen quite early, even before slab is available. The dependency comes from the fact that the timer init code starts to use clocks and hwmod and we need clocks to be

Re: [PATCH] mach_omap2: use PTR_RET instead of IS_ERR + PTR_ERR

2013-03-21 Thread Silviu Popescu
On Wed, Mar 20, 2013 at 8:28 PM, Jon Hunter jon-hun...@ti.com wrote: On 03/12/2013 06:05 AM, Russell King - ARM Linux wrote: On Tue, Mar 12, 2013 at 09:58:29AM +0200, Silviu-Mihai Popescu wrote: This uses PTR_RET instead of IS_ERR and PTR_ERR in order to increase readability. Signed-off-by:

Re: [RFC 1/8] RFC: CLK: OMAP: Add basic infrastructure for OMAP clocks

2013-03-21 Thread Mike Turquette
Quoting Tero Kristo (2013-03-21 10:35:40) This patch adds basic infrastructure support for registering clocks under common clock framework. This patch is done in preparation for moving clock data from arch/arm/mach-omap2/ folder under /drivers/clk/omap. Signed-off-by: Tero Kristo

Re: [BUG] bisected: PandaBoard smsc95xx ethernet driver error from USB timeout

2013-03-21 Thread Frank Rowand
On 03/21/13 07:41, Alan Stern wrote: On Wed, 20 Mar 2013, Frank Rowand wrote: Hi All, Not quite sure quite where the problem is (USB, OMAP, smsc95xx driver, other???), so casting the nets wide... The PandaBoard frequently fails to boot with an eth0 error when mounting the root file

Re: [BUG] bisected: PandaBoard smsc95xx ethernet driver error from USB timeout

2013-03-21 Thread Frank Rowand
On 03/21/13 02:00, Ming Lei wrote: Hi Frank, On Thu, Mar 21, 2013 at 11:29 AM, Frank Rowand frank.row...@am.sony.com wrote: I found the problem on 3.6.11, but have not replicated it on 3.9-rcX yet because my config fails to build on 3.9-rc1 and 3.9-rc2. I'll try to work on that issue

Re: [BUG] bisected: PandaBoard smsc95xx ethernet driver error from USB timeout

2013-03-21 Thread Frank Rowand
On 03/21/13 13:25, Frank Rowand wrote: On 03/21/13 02:00, Ming Lei wrote: snip -- There are some timeout messages that I am not positive are symptoms of the problem. With these messages, the smsc95xx driver initialization is successful, so the ethernet device is available. For

[PATCH] ARM: OMAP1: remove config MACH_OMAP_HTCWIZARD

2013-03-21 Thread Paul Bolle
The Kconfig symbol MACH_OMAP_HTCWIZARD got added in v2.6.30. It has never been used. Its entry can safely be removed. Signed-off-by: Paul Bolle pebo...@tiscali.nl --- Untested. arch/arm/mach-omap1/Kconfig | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/arm/mach-omap1/Kconfig

Re: [PATCHv3 00/14] drivers: mailbox: framework creation

2013-03-21 Thread Stephen Rothwell
Hi Suman, On Tue, 12 Mar 2013 22:23:41 -0500 Suman Anna s-a...@ti.com wrote: Stephen, I have hosted the series at [3]. Can you pull this into linux-next sometime next week? [3] https://github.com/sumananna/mailbox/commits/dbx500-prcmu-mailbox Please quote git URLs ... I guessed you meant

RE: [PATCHv3 00/14] drivers: mailbox: framework creation

2013-03-21 Thread Anna, Suman
Stephen, I have hosted the series at [3]. Can you pull this into linux-next sometime next week? [3] https://github.com/sumananna/mailbox/commits/dbx500-prcmu-mailbox Please quote git URLs ... I guessed you meant git://github.com/sumananna/mailbox.git, branch dbx500-prcmu-mailbox ?

Re: [BUG] bisected: PandaBoard smsc95xx ethernet driver error from USB timeout

2013-03-21 Thread Frank Rowand
On 03/21/13 07:41, Alan Stern wrote: On Wed, 20 Mar 2013, Frank Rowand wrote: Hi All, Not quite sure quite where the problem is (USB, OMAP, smsc95xx driver, other???), so casting the nets wide... The PandaBoard frequently fails to boot with an eth0 error when mounting the root file

Re: [RFC 0/8]: omap4: clk: move clock data under drivers/clk

2013-03-21 Thread Rajendra Nayak
Tero, On Thursday 21 March 2013 11:05 PM, Tero Kristo wrote: Hi, This is an RFC version of the clock data move under drivers/clk. Tested under 3.8 and boots fine, but don't try this out unless you are experimental sort (I quickly tried with 3.9-rc3 and it failed to boot with that.) The