[RFC PATCH 19/35] ARM: OMAP3: PRM: remove code from __init section

2015-04-15 Thread Tero Kristo
Needed by hwmod module boot. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/prm3xxx.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c index 5713bbd..4f16257 100644 ---

[RFC PATCH 22/35] ARM: OMAP2+: PM: remove code from __init section

2015-04-15 Thread Tero Kristo
Needed by hwmod module boot. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 58920bc..4891559 100644 --- a/arch/arm/mach-omap2/pm.c +++

[RFC PATCH 23/35] ARM: OMAP3: PM: remove code from __init section

2015-04-15 Thread Tero Kristo
Needed by hwmod module boot. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 88721df..de614e7 100644 ---

[RFC PATCH 33/35] ARM: OMAP3: pdata-quirks: add hwmod module platform data

2015-04-15 Thread Tero Kristo
Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_hwmod.h |8 arch/arm/mach-omap2/pdata-quirks.c | 11 +++ 2 files changed, 19 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod.h b/arch/arm/mach-omap2/omap_hwmod.h index 3ff9133..0c7eaf8

[RFC PATCH 26/35] ARM: OMAP2+: build: add support for hwmod data modules

2015-04-15 Thread Tero Kristo
New Kconfig option added, OMAP_HWMOD_DATA_MODULES, which builds hwmod data as modules if enabled. By default, the data is built-in to kernel image for ease of use. Makefile is also changed to support building of the new hwmod data modules. Signed-off-by: Tero Kristo t-kri...@ti.com ---

[RFC PATCH 29/35] ARM: OMAP2+: io: remove common_pm_late_init if using hwmod data modules

2015-04-15 Thread Tero Kristo
If hwmod data is built as a module, PM init will be done after the module has been loaded. PM code has dependencies towards certain hwmods, which are not going to be available during early init. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/io.c |2 ++ 1 file changed, 2

[RFC PATCH 28/35] ARM: OMAP2+: board-generic: add support for generic hwmod modular init

2015-04-15 Thread Tero Kristo
When hwmod data is built into modules, a slightly different init is required at the board level. Add this new init support function, and change the boards that support hwmod data module in subsequent patches. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/board-generic.c |

[RFC PATCH 17/35] ARM: OMAP3: control: remove code from __init section

2015-04-15 Thread Tero Kristo
Needed by hwmod module boot. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/control.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index da041b4..b0d5e47 100644 ---

[RFC PATCH 35/35] HACK: remove omap3 hwmod external dependencies

2015-04-15 Thread Tero Kristo
This is a hack in a sense that this is a temporary trial patch to verify the module functionality for omap3. The external dependencies should be removed all at once for all platforms when the support is added for all. Signed-off-by: Tero Kristo t-kri...@ti.com ---

[RFC PATCH 27/35] ARM: OMAP2+: pdata-quirks: add support for early and late pdata_quirks init

2015-04-15 Thread Tero Kristo
This splits up the platform bus registration to early boot and module time probe versions, which register different portions of the bus based on hwmod data availability. The common version is retained still for supporting the different SoCs during transition time. Signed-off-by: Tero Kristo

[RFC PATCH 18/35] ARM: OMAP3+: cpuidle: remove code from __init section

2015-04-15 Thread Tero Kristo
Needed by hwmod module boot. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/cpuidle34xx.c |2 +- arch/arm/mach-omap2/cpuidle44xx.c |2 +- arch/arm/mach-omap2/pm.h |4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git

[RFC PATCH 25/35] ARM: OMAP2+: DMA: remove omap2_system_dma_init from __init section

2015-04-15 Thread Tero Kristo
With the introduction of the hwmod data modules, the DMA init also needs to happen later in boot. Thus, remove it from the __init section, and also make the API publicly available. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/common.h |2 ++ arch/arm/mach-omap2/dma.c

[RFC PATCH 31/35] ARM: dts: omap3: split l3-smx node out of ocp bus node

2015-04-15 Thread Tero Kristo
ocp bus node will be needed for hwmod data module init, so it can't be reserved by l3-smx driver. Thus, split l3-smx as its own separate node under the ocp bus, and add a new compatible string for the l3-bus. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/omap3.dtsi | 12

[RFC PATCH 30/35] ARM: OMAP3: io: remove early PM init when hwmod data is built as module

2015-04-15 Thread Tero Kristo
If hwmod data is built as a module, PM init will be done after the module has been loaded. PM code has dependencies towards certain hwmods, which are not going to be available during early init. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/io.c |2 ++ 1 file changed, 2

[RFC PATCH 24/35] ARM: OMAP2+: display: remove code from __init section

2015-04-15 Thread Tero Kristo
Needed by hwmod module boot. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/common.h |4 ++-- arch/arm/mach-omap2/devices.c |4 ++-- arch/arm/mach-omap2/display.c |8 arch/arm/mach-omap2/display.h |2 +- arch/arm/mach-omap2/drm.c |4 ++--

[RFC PATCH 21/35] ARM: OMAP2+: SR: remove code from __init section

2015-04-15 Thread Tero Kristo
Needed by hwmod module boot. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/sr_device.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/sr_device.c b/arch/arm/mach-omap2/sr_device.c index d7cff26..c453fe4 100644 ---

[RFC PATCH 20/35] ARM: OMAP2+: omap_device: remove omap_device_build from __init section

2015-04-15 Thread Tero Kristo
Some devices are built late in boot with the introduction of hwmod data modules, and the omap_device_build() function is required later in boot also. Thus, remove it from the __init section. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_device.c | 18

[RFC PATCH 32/35] ARM: OMAP3: hwmod_data: add support for hwmod early data

2015-04-15 Thread Tero Kristo
This data will be registered during early boot, rest of the hwmod data will be provided through a module during probe time. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_hwmod.h |1 + arch/arm/mach-omap2/omap_hwmod_3xxx_early_data.c | 549

[RFC PATCH 02/35] clk: ti: gate/interface: add support for clk_ops-disable_unused

2015-04-15 Thread Tero Kristo
While executing clk_disable_unused during boot, the dflt clk operations to disable the clocks include usecounting mechanism for clockdomains, which is indexed badly in case a direct clock disable call is made. This can potentially cause the underlying clockdomain to be disabled in certain cases.

[RFC PATCH 05/35] ARM: OMAP2+: hwmod: add support for rerouting hwmod links

2015-04-15 Thread Tero Kristo
If a hwmod with same name is already registered, reroute the links to use the existing one rather than fail. This is needed when hwmod data is made into a separate module, and for example, l3 bus is already registered under different hwmod. The late module init will use an l3 dummy hwmod instead,

[RFC PATCH 16/35] ARM: OMAP2+: voltage: remove code from __init section

2015-04-15 Thread Tero Kristo
Needed by hwmod module boot. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/voltage.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c index cba8cad..84512e9 100644 ---

[RFC PATCH 08/35] ARM: OMAP2+: hwmod: move APIs out of __init section

2015-04-15 Thread Tero Kristo
With hwmod init being split into an early and a late module init parts, certain hwmod APIs can't reside under __init section anymore. Thus, remove the __init declaration from the required APIs to make them accessible at the module probe phase also. Signed-off-by: Tero Kristo t-kri...@ti.com ---

[RFC PATCH 09/35] ARM: OMAP2+: hwmod: move omap_hwmod_init_postsetup to hwmod driver

2015-04-15 Thread Tero Kristo
Previously this function was incorrectly implemented under low level IO init. However, this API will be needed for late hwmod data module init also, so move it to the generic hwmod codebase, and export the function also for module use. Signed-off-by: Tero Kristo t-kri...@ti.com ---

[RFC PATCH 00/35] ARM: OMAP2+: hwmod data module support

2015-04-15 Thread Tero Kristo
Hi, This RFC provides support for moving hwmod data into separate modules which can be registered later during boot. Only system critical parts of the hwmod data remain in omap_hwmod_*_early_data.c file, rest are moved into omap_hwmod_*_late_data.c. The late data can alternatively be built into a

[RFC PATCH 03/35] ARM: OMAP2: n8x0: remove __initdata declarations from code

2015-04-15 Thread Tero Kristo
Parts of the n8x0 board support code is needed during pdata registration, which will be moved later in the boot. Thus, it can't reside under __initdata section anymore and must be moved out of it. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/board-n8x0.c |8 1

[RFC PATCH 11/35] ARM: OMAP2+: pdata-quirks: move data out of __initdata section

2015-04-15 Thread Tero Kristo
These need to move later in the boot with hwmod data being moved into a module, thus remove the __init declarations to make them accessible at module probe phase also. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pdata-quirks.c | 58 ++-- 1

[RFC PATCH 14/35] ARM: OMAP2+: VC: remove code from __init section

2015-04-15 Thread Tero Kristo
Needed by hwmod module boot. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c index be9ef83..c67bdc5 100644 --- a/arch/arm/mach-omap2/vc.c

[RFC PATCH 12/35] ARM: OMAP2+: dma: change DMA iomap to use hwmod pointers instead of pdata

2015-04-15 Thread Tero Kristo
This makes it possible to do the iomapping before driver probe. Driver probe requires access to the DMA IO mapping already, so if it is allocated after omap_device_build, it is too late and causes a crash. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/dma.c | 25

[RFC PATCH 13/35] ARM: OMAP2+: VP: remove code from __init section

2015-04-15 Thread Tero Kristo
Needed for hwmod module boot. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/vp.c b/arch/arm/mach-omap2/vp.c index a3c3065..f757e94 100644 --- a/arch/arm/mach-omap2/vp.c +++

[RFC PATCH 04/35] ARM: OMAP2+: hwmod: add support for specifying memalloc functionality

2015-04-15 Thread Tero Kristo
hwmod currently uses memblock alloc, which only works very early in boot. Change this by adding a runtime setup support for specifying memory alloc functionality, this will allow hwmod init to be executed also later during boot, when memblock allocation is no longer available. Signed-off-by: Tero

[RFC PATCH 07/35] wl12xx: remove __init declaration from platform data setup API

2015-04-15 Thread Tero Kristo
With most of the OMAP hwmod data being moved to a module, this API needs to be accessed later in the boot and can't reside under __init section anymore. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/net/wireless/ti/wilink_platform_data.c |2 +- 1 file changed, 1 insertion(+), 1

[RFC PATCH 15/35] ARM: OMAP2+: twl: remove code from __init section

2015-04-15 Thread Tero Kristo
Needed by hwmod module boot. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_twl.c |4 ++-- arch/arm/mach-omap2/twl-common.c |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/omap_twl.c b/arch/arm/mach-omap2/omap_twl.c

[RFC PATCH 01/35] clk: composite: add support for disable_unused clk operation

2015-04-15 Thread Tero Kristo
Certain gate clocks require this for the init time clk_disable_unused functionality to work properly, thus add support for it. If the gate clock does not provide disable_unused ops, just call gate_ops-disable, just like the core clock code would do. Signed-off-by: Tero Kristo t-kri...@ti.com ---

[RFC PATCH 06/35] of/platform: export a couple of platform device init APIs

2015-04-15 Thread Tero Kristo
Some custom platform bus registration code needs access to couple of of/platform APIs, thus make these available outside of/platform. The APIs exported in this patch are required by OMAP hwmod data module support, which basically splits the platform bus registration to be done in two phases; an

[RFC PATCH 10/35] ARM: OMAP2+: hwmod: export hwmod APIs for driver use

2015-04-15 Thread Tero Kristo
These are required for providing hwmod data in late boot through a module. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_hwmod.c | 14 ++ arch/arm/mach-omap2/omap_hwmod.h |5 - 2 files changed, 18 insertions(+), 1 deletion(-) diff --git

Re: [RFC][PATCH v2 05/13] usb: otg: add OTG core

2015-04-15 Thread Roger Quadros
On 15/04/15 12:29, Paul Bolle wrote: (This will go into a minor detail. That's probably not what you want when posting an RFC. But this patch got caught by an email filter I use and a future, non-RFC, version will get caught too. So I decided to bother you with this now.) On Tue, 2015-04-14

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-15 Thread Michael Welling
On Wed, Apr 15, 2015 at 09:34:48AM +0300, Tero Kristo wrote: On 04/15/2015 12:17 AM, Michael Welling wrote: Greetings, I have developed an AM3354 based SoM and it uses an external SI5351 clock generator to drive the clock inputs for an external duart and I2S audio master clock. With the

Re: [PATCH v4 3/7] drm/tilcdc: Add support for external tda998x encoder

2015-04-15 Thread Jyri Sarha
On 04/02/15 01:20, Russell King - ARM Linux wrote: This is where the DRM model is weak - we don't really have a way to say this is the set of CRTCs which/can/ be associated with this connector, can any of the CRTCs accept this mode? and eliminate modes which fail that check. This problem seems

Re: ARM errata 430973 on multi platform kernels

2015-04-15 Thread Sebastian Reichel
Hi, On Thu, Apr 09, 2015 at 02:48:43PM +0100, Russell King - ARM Linux wrote: On Thu, Apr 09, 2015 at 12:06:58AM +0100, Russell King - ARM Linux wrote: On Tue, Apr 07, 2015 at 08:22:08AM -0700, Tony Lindgren wrote: Works for me. The above needs the following fix folded in to build:

Re: [PATCH 1/2] pinctrl: bindings: pinctrl: Add support for TI's IODelay configuration

2015-04-15 Thread Nishanth Menon
On 04/14/2015 08:29 PM, Lennart Sorensen wrote: On Tue, Mar 17, 2015 at 06:41:51PM -0700, Tony Lindgren wrote: Yeah agreed. I suggest discussing the binding and the generic parsing code for it first :) It seems with the generic binding the actual driver should be just the hardware specific

Re: [PATCH 1/2] pinctrl: bindings: pinctrl: Add support for TI's IODelay configuration

2015-04-15 Thread Lennart Sorensen
On Wed, Apr 15, 2015 at 11:51:32AM -0500, Nishanth Menon wrote: I am yet to post a new revision to this series - few other stuff got in the way. IODelay driver in no way removes the constraint that the SoC architecture has - most of the pins still need to be muxed in bootloader - we cannot

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-15 Thread Tero Kristo
On 04/15/2015 05:09 PM, Michael Welling wrote: On Wed, Apr 15, 2015 at 09:34:48AM +0300, Tero Kristo wrote: On 04/15/2015 12:17 AM, Michael Welling wrote: Greetings, I have developed an AM3354 based SoM and it uses an external SI5351 clock generator to drive the clock inputs for an external

Re: [PATCH 1/2] pinctrl: bindings: pinctrl: Add support for TI's IODelay configuration

2015-04-15 Thread Nishanth Menon
On 04/15/2015 01:44 PM, Lennart Sorensen wrote: On Wed, Apr 15, 2015 at 11:51:32AM -0500, Nishanth Menon wrote: I am yet to post a new revision to this series - few other stuff got in the way. IODelay driver in no way removes the constraint that the SoC architecture has - most of the pins

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-15 Thread Mike Turquette
On Wed, Apr 15, 2015 at 12:47 PM, Michael Welling mwell...@ieee.org wrote: On Wed, Apr 15, 2015 at 09:43:30PM +0300, Tero Kristo wrote: On 04/15/2015 05:09 PM, Michael Welling wrote: On Wed, Apr 15, 2015 at 09:34:48AM +0300, Tero Kristo wrote: On 04/15/2015 12:17 AM, Michael Welling wrote:

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-15 Thread Michael Welling
On Wed, Apr 15, 2015 at 01:45:53PM -0700, Mike Turquette wrote: On Wed, Apr 15, 2015 at 12:47 PM, Michael Welling mwell...@ieee.org wrote: On Wed, Apr 15, 2015 at 09:43:30PM +0300, Tero Kristo wrote: On 04/15/2015 05:09 PM, Michael Welling wrote: On Wed, Apr 15, 2015 at 09:34:48AM +0300,

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-15 Thread Michael Welling
On Wed, Apr 15, 2015 at 09:43:30PM +0300, Tero Kristo wrote: On 04/15/2015 05:09 PM, Michael Welling wrote: On Wed, Apr 15, 2015 at 09:34:48AM +0300, Tero Kristo wrote: On 04/15/2015 12:17 AM, Michael Welling wrote: Greetings, I have developed an AM3354 based SoM and it uses an external

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-15 Thread Tero Kristo
On 04/15/2015 11:51 PM, Michael Welling wrote: On Wed, Apr 15, 2015 at 01:45:53PM -0700, Mike Turquette wrote: On Wed, Apr 15, 2015 at 12:47 PM, Michael Welling mwell...@ieee.org wrote: On Wed, Apr 15, 2015 at 09:43:30PM +0300, Tero Kristo wrote: On 04/15/2015 05:09 PM, Michael Welling wrote:

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-15 Thread Tero Kristo
On 04/15/2015 12:17 AM, Michael Welling wrote: Greetings, I have developed an AM3354 based SoM and it uses an external SI5351 clock generator to drive the clock inputs for an external duart and I2S audio master clock. With the registration according to the documentation the reference clock is

[PATCH v2] genirq: Set IRQCHIP_SKIP_SET_WAKE flag for dummy_irq_chip

2015-04-15 Thread Roger Quadros
Without this system suspend is broken on systems that have drivers calling enable/disable_irq_wake() for interrupts based off the dummy irq hook. (e.g. drivers/gpio/gpio-pcf857x.c) http://article.gmane.org/gmane.linux.kernel/1879035 Signed-off-by: Roger Quadros rog...@ti.com ---

Re: [PATCH v4 1/8] dmaengine: of_dma: Support for DMA routers

2015-04-15 Thread Peter Ujfalusi
On 04/10/2015 10:40 AM, Maxime Ripard wrote: On Thu, Apr 09, 2015 at 11:24:58AM +0300, Peter Ujfalusi wrote: On 04/08/2015 06:42 PM, Maxime Ripard wrote: --- Documentation/devicetree/bindings/dma/dma.txt | 28 + drivers/dma/dmaengine.c | 7 +++

Re: [PATCH] genirq: provide dummy set_irq_wake()

2015-04-15 Thread Gregory CLEMENT
Hi Roger, On 15/04/2015 10:07, Roger Quadros wrote: Hi Gregory, On 14/04/15 17:02, Gregory CLEMENT wrote: Hi Roger, On 14/04/2015 12:13, Roger Quadros wrote: Hi Thomas, On 30/03/15 16:15, Roger Quadros wrote: Without this system suspend is broken on systems that have drivers calling

Re: [RFC][PATCH v2 05/13] usb: otg: add OTG core

2015-04-15 Thread Paul Bolle
(This will go into a minor detail. That's probably not what you want when posting an RFC. But this patch got caught by an email filter I use and a future, non-RFC, version will get caught too. So I decided to bother you with this now.) On Tue, 2015-04-14 at 13:41 +0300, Roger Quadros wrote: ---

Re: [PATCH v2] genirq: Set IRQCHIP_SKIP_SET_WAKE flag for dummy_irq_chip

2015-04-15 Thread Gregory CLEMENT
On 15/04/2015 10:14, Roger Quadros wrote: Without this system suspend is broken on systems that have drivers calling enable/disable_irq_wake() for interrupts based off the dummy irq hook. (e.g. drivers/gpio/gpio-pcf857x.c) http://article.gmane.org/gmane.linux.kernel/1879035

Re: [PATCH] genirq: provide dummy set_irq_wake()

2015-04-15 Thread Roger Quadros
Hi Gregory, On 14/04/15 17:02, Gregory CLEMENT wrote: Hi Roger, On 14/04/2015 12:13, Roger Quadros wrote: Hi Thomas, On 30/03/15 16:15, Roger Quadros wrote: Without this system suspend is broken on systems that have drivers calling enable/disable_irq_wake() for interrupts based off the