Re: [RESEND PATCH v7 00/22] MBus DT binding: The return of PCIe

2013-07-20 Thread Ezequiel Garcia
Andrew, On Sat, Jul 20, 2013 at 07:38:47PM +0200, Andrew Lunn wrote: > On Sat, Jul 20, 2013 at 06:58:55PM +0200, Andrew Lunn wrote: > > On Mon, Jul 15, 2013 at 11:57:29AM -0300, Ezequiel Garcia wrote: > > > Here's the new MBus DT binding, implementing the changes proposed

Re: [RESEND PATCH v7 00/22] MBus DT binding: The return of PCIe

2013-07-20 Thread Ezequiel Garcia
Andrew, On Sat, Jul 20, 2013 at 07:38:47PM +0200, Andrew Lunn wrote: > On Sat, Jul 20, 2013 at 06:58:55PM +0200, Andrew Lunn wrote: > > On Mon, Jul 15, 2013 at 11:57:29AM -0300, Ezequiel Garcia wrote: > > > Here's the new MBus DT binding, implementing the changes proposed

Re: [RESEND PATCH v7 00/22] MBus DT binding: The return of PCIe

2013-07-20 Thread Ezequiel Garcia
Hi Grant, Arnd, Jason: On Mon, Jul 15, 2013 at 11:57:29AM -0300, Ezequiel Garcia wrote: > Here's the new MBus DT binding, implementing the changes proposed > by Thomas when we discussed the previous patchset: > > http://www.spinics.net/lists/arm-kernel/msg257170.html >

Re: [PATCH] ARM: Kirkwood: Fix the internal register ranges translation

2013-07-18 Thread Ezequiel Garcia
Gerlando, On Tue, Jul 16, 2013 at 08:51:37PM +0200, Gerlando Falauto wrote: [...] > > > > Also, speaking of "device bus" this nand node should be behind a devicebus > > node. > > > > ranges = > internal-regs */ > > MBUS_ID(0x01, 0x2f) 0 0 0xf400 0x400>; > >

Re: [PATCH] ARM: Kirkwood: Fix the internal register ranges translation

2013-07-18 Thread Ezequiel Garcia
Hi Gerlando, On Wed, Jul 17, 2013 at 08:35:38AM +0200, Gerlando Falauto wrote: > On 07/16/2013 02:56 PM, Ezequiel Garcia wrote: > [...] > > Also, speaking of "device bus" this nand node should be behind a devicebus > > node. > > > &g

Re: [PATCH 05/10] watchdog: orion: Add a memory resource for RSTOUT register

2013-07-16 Thread Ezequiel Garcia
Andrew, On Tue, Jul 16, 2013 at 04:04:15PM +0200, Andrew Lunn wrote: > On Mon, Jul 15, 2013 at 08:32:38PM -0300, Ezequiel Garcia wrote: > > Instead of accessing the RSTOUT register directly, this commit > > adds a platform memory resource to map this register into the driver. &

Re: [PATCH 00/10] Orion Watchdog fixes

2013-07-16 Thread Ezequiel Garcia
On Tue, Jul 16, 2013 at 09:44:22AM -0400, Jason Cooper wrote: > On Tue, Jul 16, 2013 at 09:14:33AM -0300, Ezequiel Garcia wrote: > > On the other side, I'm much interested in knowing if you are OK with > > breaking the watchdog DT compatibility. If you NACK this, then I'

Re: [PATCH] ARM: Kirkwood: Fix the internal register ranges translation

2013-07-16 Thread Ezequiel Garcia
Hi Gerlando, On Tue, Jul 16, 2013 at 11:37:30AM +0200, Gerlando Falauto wrote: > > apologies in advance for commenting on an already-merged patch. Sure, no problem. > > On 06/18/2013 05:31 PM, Ezequiel Garcia wrote: > > Although the internal register window size is 1

Re: [PATCH 00/10] Orion Watchdog fixes

2013-07-16 Thread Ezequiel Garcia
Hi Sebastian, On Tue, Jul 16, 2013 at 09:48:56AM +0200, Sebastian Hesselbarth wrote: > > In the discussion about orion clocksource Russell was proposing a generic > thread-safe write. That puts a single lock around all those writes. Of > course, it will also blocked by totally unrelated thread-

Re: [PATCH 00/10] Orion Watchdog fixes

2013-07-16 Thread Ezequiel Garcia
Hi Thomas, Andrew: Thanks for looking at this! On Tue, Jul 16, 2013 at 09:31:01AM +0200, Andrew Lunn wrote: > On Tue, Jul 16, 2013 at 09:20:59AM +0200, Thomas Petazzoni wrote: > > > > On Tue, 16 Jul 2013 08:59:52 +0200, Andrew Lunn wrote: > > > > > Maybe i'm missing something here. You are maki

[PATCH 07/10] watchdog: orion: Remove unneeded BRIDGE_CAUSE clear

2013-07-15 Thread Ezequiel Garcia
With the introduction of the orion irqchip driver, now the BRIDGE_CAUSE bit is cleared by it. There's no longer a need to do it in the watchdog driver, so we can simply remove it. Signed-off-by: Ezequiel Garcia --- drivers/watchdog/orion_wdt.c | 7 --- 1 file changed, 7 deletions(-)

[PATCH 06/10] watchdog: orion: Update device-tree binding documentation

2013-07-15 Thread Ezequiel Garcia
Now that the 'reg' property meaning has been changed, this commit updates the deivce-tree binding documentation. Signed-off-by: Ezequiel Garcia --- Documentation/devicetree/bindings/watchdog/orion-wdt.txt | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Doc

[PATCH 08/10] watchdog: orion: Remove mach-specific unneeded header

2013-07-15 Thread Ezequiel Garcia
The mach/bridge-regs.h header is not needed anymore, so we can remove it. This commit allows to use this driver on multiplatforms builds. Signed-off-by: Ezequiel Garcia --- drivers/watchdog/orion_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog

[PATCH 09/10] watchdog: orion: Use BIT()

2013-07-15 Thread Ezequiel Garcia
This is a purely cosmetic commit: we replace hardcoded values that representing bits by BIT(), which is slightly more readable. Signed-off-by: Ezequiel Garcia --- drivers/watchdog/orion_wdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/orion_wdt.c b

[PATCH 10/10] ARM: kirkwood: Fix the device-tree watchdog's node reg property

2013-07-15 Thread Ezequiel Garcia
The watchdog driver now needs two 'reg' property cells. The first one is for the register containing the watchdog counter, while the second one is for the RSTOUT register. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/kirkwood.dtsi | 3 ++- 1 file changed, 2 insertions(+),

[PATCH 05/10] watchdog: orion: Add a memory resource for RSTOUT register

2013-07-15 Thread Ezequiel Garcia
Instead of accessing the RSTOUT register directly, this commit adds a platform memory resource to map this register into the driver. Note that by adding a required 2nd-cell for the reg property, this change breaks the device-tree binding compatibility. Signed-off-by: Ezequiel Garcia --- arch

[PATCH 04/10] watchdog: orion: Use the proper watchdog register

2013-07-15 Thread Ezequiel Garcia
direct use of it. Note that this breaks the current device-tree binding compatibility since it changes the meaning of the 'reg' property. Signed-off-by: Ezequiel Garcia --- arch/arm/mach-kirkwood/include/mach/bridge-regs.h | 1 + arch/arm/mach-orion5x/include/mach/bridge-regs.h | 1 + arc

[PATCH 03/10] watchdog: orion: Rename device-tree binding documentation

2013-07-15 Thread Ezequiel Garcia
Name this file to something a bit more judicious. Signed-off-by: Ezequiel Garcia --- Documentation/devicetree/bindings/watchdog/{marvel.txt => orion-wdt.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/devicetree/bindings/watchdog/{marvel.txt => orion-w

[PATCH 01/10] clocksource: orion: Add thread-safe API header

2013-07-15 Thread Ezequiel Garcia
Add a header declaration to allow drivers (such as watchdog) to access this exported API. Signed-off-by: Ezequiel Garcia --- include/linux/time-orion.h | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 include/linux/time-orion.h diff --git a/include/linux/time-orion.h b/include

[PATCH 02/10] watchdog: orion: Use thread-safe clocksource API

2013-07-15 Thread Ezequiel Garcia
The TIMER_CTRL register allows to control timer and watchdog counters, so it's a register shared between the clocksource and the watchdog drivers. In order to prevent race-conditions the clocksource driver exposed a thread-safe API. Use the API. Signed-off-by: Ezequiel Garcia --- dr

[PATCH 00/10] Orion Watchdog fixes

2013-07-15 Thread Ezequiel Garcia
27;m not sure how 'stable' the Kirkwood DT is considered. So, given we're currently moving things around, maybe there is still a chance to do this. This patchset applies on top of Sebastian Hesselbarth's branch: git://github.com/shesselba/linux-dove.git orion-irqchip-for-

[RESEND PATCH v7 14/22] bus: mvebu-mbus: Update main description

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni After replacing the MBus name-based by the new ID-based API let's fix the general description of the driver at the beginning of the file. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff -

[RESEND PATCH v7 21/22] ARM: mvebu: Relocate Armada 370/XP DeviceBus device tree nodes

2013-07-15 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the DeviceBus out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-xp.dtsi

[RESEND PATCH v7 17/22] ARM: mvebu: Initialize MBus using the DT binding

2013-07-15 Thread Ezequiel Garcia
Now that the mbus device tree binding has been introduced, we can switch over to it. Also, and since the initialization of the mbus driver is quite fundamental for the system to work properly, this patch adds a BUG() in case mbus fails to initialize. Signed-off-by: Ezequiel Garcia --- arch/arm

[RESEND PATCH v7 16/22] ARM: mvebu: Remove the harcoded BootROM window allocation

2013-07-15 Thread Ezequiel Garcia
The address decoding window to access the BootROM should not be allocated programatically, but instead declared in the device tree. Signed-off-by: Ezequiel Garcia --- arch/arm/mach-mvebu/platsmp.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/arch

[RESEND PATCH v7 20/22] ARM: mvebu: Add BootROM to Armada 370/XP device tree

2013-07-15 Thread Ezequiel Garcia
In order to access the SoC BootROM, we need to declare a mapping (through a ranges property). The mbus driver will use this property to allocate a suitable address decoding window. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-db.dts | 3 ++- arch/arm/boot/dts

[RESEND PATCH v7 15/22] bus: mvebu-mbus: Factorize Armada 370/XP data structures

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni These structures were only different in the mapping tables. Now that those tables have been removed, it doesn't make any sense to keep different structures. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 14 +++--- 1 file changed, 3 insertions(+),

[RESEND PATCH v7 22/22] ARM: mvebu: Relocate Armada 370/XP PCIe device tree nodes

2013-07-15 Thread Ezequiel Garcia
et ID and attribute. Since this depends on the PCIe port, we split the ranges translation entries, to correspond to each MBus window. Signed-off-by: Thomas Petazzoni Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-mirabox.dts | 32 +- arch/arm/boot/dts/armada-370-xp

[RESEND PATCH v7 19/22] ARM: mvebu: Add MBus to Armada 370/XP device tree

2013-07-15 Thread Ezequiel Garcia
akes all of them sit behind the mbus, thus describing the hardware accurately. A translation entry has been added for the internal-regs mapping. This can't be done in the common armada-370-xp.dtsi because A370 and AXP have different addressing width. Signed-off-by: Ezequiel Garcia --- arch/arm/b

[RESEND PATCH v7 18/22] ARM: mvebu: Use the preprocessor on Armada 370/XP device tree files

2013-07-15 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-db.dts | 2 +- arch/arm/boot/dts/armada-370-mirabox.dts | 2 +- arch/arm/boot/dts/armada-370-rd.dts | 2 +- arch/arm/boot/dts/armada-370.dtsi| 2 +- arch/arm/boot/dts/armada-xp

[RESEND PATCH v7 11/22] PCI: mvebu: Adapt to the new device tree layout

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni The new device tree layout encodes the window's target ID and attribute in the PCIe controller node's ranges property. This allows to parse such entries to obtain such information and use the recently introduced MBus API to create the windows, instead of using the current n

[RESEND PATCH v7 12/22] bus: mvebu-mbus: Remove the no longer used name-based API

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni Now that every user of the deprecated name-based API has been converted to using the ID-based API, let's remove the former one. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 38 -- include/linux/mbus.h | 5 -

[RESEND PATCH v7 13/22] bus: mvebu-mbus: Remove name -> target, attribute mapping tables

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni This tables were used together with the name-based MBus window creation API. Since that's has been removed, we can also remove the tables. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 150 +++ 1 file changed,

[RESEND PATCH v7 09/22] bus: mvebu-mbus: Add static window allocation to the DT binding

2013-07-15 Thread Ezequiel Garcia
This patch adds static window allocation to the device tree binding. Each first-child of the mbus-compatible node, with a suitable 'ranges' property, declaring an address translation, will trigger an address decoding window allocation. Signed-off-by: Ezequiel Garcia --- .../devicetre

[RESEND PATCH v7 10/22] bus: mvebu-mbus: Add new API for the PCIe memory and IO aperture

2013-07-15 Thread Ezequiel Garcia
. Signed-off-by: Ezequiel Garcia --- .../devicetree/bindings/bus/mvebu-mbus.txt | 14 +++ drivers/bus/mvebu-mbus.c | 49 ++ include/linux/mbus.h | 4 ++ 3 files changed, 67 insertions(+) diff --git a

[RESEND PATCH v7 06/22] ARM: dove: Move to ID based window creation

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-dove/common.c | 68 ++

[RESEND PATCH v7 05/22] ARM: orion5x: Move to ID based window creation

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-orion5x/common.c

[RESEND PATCH v7 08/22] bus: mvebu-mbus: Introduce device tree binding

2013-07-15 Thread Ezequiel Garcia
zzoni Signed-off-by: Ezequiel Garcia --- drivers/bus/mvebu-mbus.c | 49 include/linux/mbus.h | 1 + 2 files changed, 50 insertions(+) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 1b17954..44a07c4 100644 --- a/driver

[RESEND PATCH v7 07/22] bus: mvebu-mbus: Factor out initialization details

2013-07-15 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia --- drivers/bus/mvebu-mbus.c | 47 ++- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 827468a..1b17954 100644 --- a/drivers/bus/mvebu-mbus.c +++ b

[RESEND PATCH v7 01/22] memory: mvebu-devbus: Remove address decoding window workaround

2013-07-15 Thread Ezequiel Garcia
an Signed-off-by: Ezequiel Garcia --- drivers/memory/mvebu-devbus.c | 64 ++- 1 file changed, 2 insertions(+), 62 deletions(-) diff --git a/drivers/memory/mvebu-devbus.c b/drivers/memory/mvebu-devbus.c index 978e8e3..94c9248 100644 --- a/drivers/memory/mveb

[RESEND PATCH v7 04/22] ARM: mv78xx0: Move to ID based window creation

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-mv78xx0/pcie.c | 23 +

[RESEND PATCH v7 02/22] bus: mvebu-mbus: Add new API for window creation

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni We add an API to create MBus address decoding windows from the target ID and attribute. This function will be used later and deprecate the current name based scheme. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 33 + incl

[RESEND PATCH v7 00/22] MBus DT binding: The return of PCIe

2013-07-15 Thread Ezequiel Garcia
}; }; internal-regs { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x10>; mbusc: mbus-controller@2 { reg = &

[RESEND PATCH v7 03/22] ARM: kirkwood: Move to ID based MBus window creation

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-kirkwood/common.c | 1

Re: [PATCH v7 11/22] PCI: mvebu: Adapt to the new device tree layout

2013-07-09 Thread Ezequiel Garcia
On Tue, Jul 09, 2013 at 12:50:47PM -0600, Bjorn Helgaas wrote: > On Tue, Jul 9, 2013 at 12:20 PM, Jason Cooper wrote: > > On Tue, Jul 09, 2013 at 01:41:13PM -0300, Ezequiel Garcia wrote: > >> From: Thomas Petazzoni > >> > >> The new device tree layout encodes

[PATCH v7 17/22] ARM: mvebu: Initialize MBus using the DT binding

2013-07-09 Thread Ezequiel Garcia
Now that the mbus device tree binding has been introduced, we can switch over to it. Also, and since the initialization of the mbus driver is quite fundamental for the system to work properly, this patch adds a BUG() in case mbus fails to initialize. Signed-off-by: Ezequiel Garcia --- arch/arm

[PATCH v7 02/22] bus: mvebu-mbus: Add new API for window creation

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni We add an API to create MBus address decoding windows from the target ID and attribute. This function will be used later and deprecate the current name based scheme. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 33 + incl

[PATCH v7 12/22] bus: mvebu-mbus: Remove the no longer used name-based API

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni Now that every user of the deprecated name-based API has been converted to using the ID-based API, let's remove the former one. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 38 -- include/linux/mbus.h | 5 -

[PATCH v7 07/22] bus: mvebu-mbus: Factor out initialization details

2013-07-09 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia --- drivers/bus/mvebu-mbus.c | 47 ++- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 827468a..1b17954 100644 --- a/drivers/bus/mvebu-mbus.c +++ b

[PATCH v7 15/22] bus: mvebu-mbus: Factorize Armada 370/XP data structures

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni These structures were only different in the mapping tables. Now that those tables have been removed, it doesn't make any sense to keep different structures. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 14 +++--- 1 file changed, 3 insertions(+),

[PATCH v7 18/22] ARM: mvebu: Use the preprocessor on Armada 370/XP device tree files

2013-07-09 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-db.dts | 2 +- arch/arm/boot/dts/armada-370-mirabox.dts | 2 +- arch/arm/boot/dts/armada-370-rd.dts | 2 +- arch/arm/boot/dts/armada-370.dtsi| 2 +- arch/arm/boot/dts/armada-xp

[PATCH v7 04/22] ARM: mv78xx0: Move to ID based window creation

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-mv78xx0/pcie.c | 23 +

[PATCH v7 05/22] ARM: orion5x: Move to ID based window creation

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-orion5x/common.c

[PATCH v7 09/22] bus: mvebu-mbus: Add static window allocation to the DT binding

2013-07-09 Thread Ezequiel Garcia
This patch adds static window allocation to the device tree binding. Each first-child of the mbus-compatible node, with a suitable 'ranges' property, declaring an address translation, will trigger an address decoding window allocation. Signed-off-by: Ezequiel Garcia --- .../devicetre

[PATCH v7 00/22] MBus DT binding: The return of PCIe

2013-07-09 Thread Ezequiel Garcia
= <0>; clocks = <&gateclk 9>; status = "disabled"; }; }; internal-regs { compatible = "simple-bus"; #address-cells = <1>; #size-cells

[PATCH v7 21/22] ARM: mvebu: Relocate Armada 370/XP DeviceBus device tree nodes

2013-07-09 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the DeviceBus out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-xp.dtsi

[PATCH v7 22/22] ARM: mvebu: Relocate Armada 370/XP PCIe device tree nodes

2013-07-09 Thread Ezequiel Garcia
et ID and attribute. Since this depends on the PCIe port, we split the ranges translation entries, to correspond to each MBus window. Signed-off-by: Thomas Petazzoni Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-mirabox.dts | 32 +- arch/arm/boot/dts/armada-370-xp

[PATCH v7 20/22] ARM: mvebu: Add BootROM to Armada 370/XP device tree

2013-07-09 Thread Ezequiel Garcia
In order to access the SoC BootROM, we need to declare a mapping (through a ranges property). The mbus driver will use this property to allocate a suitable address decoding window. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-db.dts | 3 ++- arch/arm/boot/dts

[PATCH v7 19/22] ARM: mvebu: Add MBus to Armada 370/XP device tree

2013-07-09 Thread Ezequiel Garcia
akes all of them sit behind the mbus, thus describing the hardware accurately. A translation entry has been added for the internal-regs mapping. This can't be done in the common armada-370-xp.dtsi because A370 and AXP have different addressing width. Signed-off-by: Ezequiel Garcia --- arch/arm/b

[PATCH v7 14/22] bus: mvebu-mbus: Update main description

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni After replacing the MBus name-based by the new ID-based API let's fix the general description of the driver at the beginning of the file. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff -

[PATCH v7 16/22] ARM: mvebu: Remove the harcoded BootROM window allocation

2013-07-09 Thread Ezequiel Garcia
The address decoding window to access the BootROM should not be allocated programatically, but instead declared in the device tree. Signed-off-by: Ezequiel Garcia --- arch/arm/mach-mvebu/platsmp.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/arch

[PATCH v7 10/22] bus: mvebu-mbus: Add new API for the PCIe memory and IO aperture

2013-07-09 Thread Ezequiel Garcia
. Signed-off-by: Ezequiel Garcia --- .../devicetree/bindings/bus/mvebu-mbus.txt | 14 +++ drivers/bus/mvebu-mbus.c | 49 ++ include/linux/mbus.h | 4 ++ 3 files changed, 67 insertions(+) diff --git a

[PATCH v7 13/22] bus: mvebu-mbus: Remove name -> target, attribute mapping tables

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni This tables were used together with the name-based MBus window creation API. Since that's has been removed, we can also remove the tables. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 150 +++ 1 file changed,

[PATCH v7 11/22] PCI: mvebu: Adapt to the new device tree layout

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni The new device tree layout encodes the window's target ID and attribute in the PCIe controller node's ranges property. This allows to parse such entries to obtain such information and use the recently introduced MBus API to create the windows, instead of using the current n

[PATCH v7 08/22] bus: mvebu-mbus: Introduce device tree binding

2013-07-09 Thread Ezequiel Garcia
zzoni Signed-off-by: Ezequiel Garcia --- drivers/bus/mvebu-mbus.c | 49 include/linux/mbus.h | 1 + 2 files changed, 50 insertions(+) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 1b17954..44a07c4 100644 --- a/driver

[PATCH v7 06/22] ARM: dove: Move to ID based window creation

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-dove/common.c | 68 ++

[PATCH v7 01/22] memory: mvebu-devbus: Remove address decoding window workaround

2013-07-09 Thread Ezequiel Garcia
an Signed-off-by: Ezequiel Garcia --- drivers/memory/mvebu-devbus.c | 64 ++- 1 file changed, 2 insertions(+), 62 deletions(-) diff --git a/drivers/memory/mvebu-devbus.c b/drivers/memory/mvebu-devbus.c index 978e8e3..94c9248 100644 --- a/drivers/memory/mveb

[PATCH v7 03/22] ARM: kirkwood: Move to ID based MBus window creation

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-kirkwood/common.c | 1

Re: [PATCH v6 00/21] MBus DT binding: PCIe strikes back

2013-07-08 Thread Ezequiel Garcia
On Mon, Jul 08, 2013 at 10:42:25AM -0600, Jason Gunthorpe wrote: > On Sat, Jul 06, 2013 at 01:38:35AM +0200, Arnd Bergmann wrote: > > On Saturday 06 July 2013, Thomas Petazzoni wrote: > > > Arnd, Jason, if you could confirm that you both agree with this DT > > > binding soon, Ezequiel and I would q

[PATCH v6 19/21] ARM: mvebu: Add BootROM to Armada 370/XP device tree

2013-07-05 Thread Ezequiel Garcia
In order to access the SoC BootROM, we need to declare a mapping (through a ranges property). The mbus driver will use this property to allocate a suitable address decoding window. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-db.dts | 3 ++- arch/arm/boot/dts

[PATCH v6 18/21] ARM: mvebu: Add MBus to Armada 370/XP device tree

2013-07-05 Thread Ezequiel Garcia
akes all of them sit behind the mbus, thus describing the hardware accurately. A translation entry has been added for the internal-regs mapping. This can't be done in the common armada-370-xp.dtsi because A370 and AXP have different addressing width. Signed-off-by: Ezequiel Garcia --- arch/arm/b

[PATCH v6 21/21] ARM: mvebu: Relocate Armada 370/XP PCIe device tree nodes

2013-07-05 Thread Ezequiel Garcia
et ID and attribute. Since this depends on the PCIe port, we split the ranges translation entries, to correspond to each MBus window. Signed-off-by: Thomas Petazzoni Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-mirabox.dts | 32 +- arch/arm/boot/dts/armada-370

[PATCH v6 20/21] ARM: mvebu: Relocate Armada 370/XP DeviceBus device tree nodes

2013-07-05 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the DeviceBus out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-xp.dtsi

[PATCH v6 17/21] ARM: mvebu: Use the preprocessor on Armada 370/XP device tree files

2013-07-05 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-db.dts | 2 +- arch/arm/boot/dts/armada-370-mirabox.dts | 2 +- arch/arm/boot/dts/armada-370-rd.dts | 2 +- arch/arm/boot/dts/armada-370.dtsi| 2 +- arch/arm/boot/dts/armada-xp

[PATCH v6 13/21] bus: mvebu-mbus: Update main description

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni After replacing the MBus name-based by the new ID-based API let's fix the general description of the driver at the beginning of the file. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff -

[PATCH v6 15/21] ARM: mvebu: Remove the harcoded BootROM window allocation

2013-07-05 Thread Ezequiel Garcia
The address decoding window to access the BootROM should not be allocated programatically, but instead declared in the device tree. Signed-off-by: Ezequiel Garcia --- arch/arm/mach-mvebu/platsmp.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/arch

[PATCH v6 14/21] bus: mvebu-mbus: Factorize Armada 370/XP data structures

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni These structures were only different in the mapping tables. Now that those tables have been removed, it doesn't make any sense to keep different structures. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 14 +++--- 1 file changed, 3 insertions(+),

[PATCH v6 12/21] bus: mvebu-mbus: Remove name -> target, attribute mapping tables

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni This tables were used together with the name-based MBus window creation API. Since that's has been removed, we can also remove the tables. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 150 +++ 1 file changed,

[PATCH v6 16/21] ARM: mvebu: Initialize MBus using the DT binding

2013-07-05 Thread Ezequiel Garcia
Now that the mbus device tree binding has been introduced, we can switch over to it. Also, and since the initialization of the mbus driver is quite fundamental for the system to work properly, this patch adds a BUG() in case mbus fails to initialize. Signed-off-by: Ezequiel Garcia --- arch/arm

[PATCH v6 10/21] pci: mvebu: Adapt to the new device tree layout

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni The new device tree layout encodes the window's target ID and attribute in the PCIe controller node's ranges property. This allows to parse such entries to obtain such information and use the recently introduced MBus API to create the windows, instead of using the current n

[PATCH v6 11/21] bus: mvebu-mbus: Remove the no longer used name-based API

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni Now that every user of the deprecated name-based API has been converted to using the ID-based API, let's remove the former one. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 38 -- include/linux/mbus.h | 5 -

[PATCH v6 09/21] bus: mvebu-mbus: Add static window allocation to the binding

2013-07-05 Thread Ezequiel Garcia
This patch adds static window allocation to the device tree binding. Each first-child of the mbus-compatible node, with a suitable 'ranges' property, declaring an address translation, will trigger an address decoding window allocation. Signed-off-by: Ezequiel Garcia --- .../devicetre

[PATCH v6 08/21] bus: mvebu-mbus: Introduce device tree binding

2013-07-05 Thread Ezequiel Garcia
zzoni Signed-off-by: Ezequiel Garcia --- drivers/bus/mvebu-mbus.c | 49 include/linux/mbus.h | 1 + 2 files changed, 50 insertions(+) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 1b17954..44a07c4 100644 --- a/driver

[PATCH v6 07/21] bus: mvebu-mbus: Factor out initialization details

2013-07-05 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia --- drivers/bus/mvebu-mbus.c | 47 ++- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 827468a..1b17954 100644 --- a/drivers/bus/mvebu-mbus.c +++ b

[PATCH v6 06/21] ARM: dove: Move to ID based window creation

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-dove/common.c | 68 ++

[PATCH v6 05/21] ARM: orion5x: Move to ID based window creation

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-orion5x/common.c

[PATCH v6 04/21] ARM: mv78xx0: Move to ID based window creation

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-mv78xx0/pcie.c | 23 +

[PATCH v6 02/21] bus: mvebu-mbus: Add new API for window creation

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni We add an API to create MBus address decoding windows from the target ID and attribute. This function will be used later and deprecate the current name based scheme. Signed-off-by: Thomas Petazzoni --- drivers/bus/mvebu-mbus.c | 33 + incl

[PATCH v6 01/21] memory: mvebu-devbus: Remove address decoding window workaround

2013-07-05 Thread Ezequiel Garcia
an Signed-off-by: Ezequiel Garcia --- drivers/memory/mvebu-devbus.c | 64 ++- 1 file changed, 2 insertions(+), 62 deletions(-) diff --git a/drivers/memory/mvebu-devbus.c b/drivers/memory/mvebu-devbus.c index 978e8e3..94c9248 100644 --- a/drivers/memory/mveb

[PATCH v6 03/21] ARM: kirkwood: Move to ID based MBus window creation

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-kirkwood/common.c | 1

[PATCH v6 00/21] MBus DT binding: PCIe strikes back

2013-07-05 Thread Ezequiel Garcia
y allocated decoding window are defined in the same way. I'd like to see this binding accepted more or less soon, so if the current proposal is not accepted it'll be great to hear some hints on how to move forward. This series applies on top of today's linux-next. I will rebase it on v

[PATCH v5 11/12] ARM: mvebu: Relocate Armada 370 PCIe device tree nodes

2013-06-29 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the PCIe nodes out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-mirabox.dts

[PATCH v5 12/12] ARM: mvebu: Relocate Armada XP PCIe device tree nodes

2013-06-29 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the PCIe nodes out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-xp-db.dts

[PATCH v5 09/12] ARM: mvebu: Add BootROM to Armada 370/XP device tree

2013-06-29 Thread Ezequiel Garcia
In order to access the SoC BootROM, we need to declare a mapping (through a ranges property). The mbus driver will use this property to allocate a suitable address decoding window. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-db.dts | 3 ++- arch/arm/boot/dts

[PATCH v5 10/12] ARM: mvebu: Relocate Armada 370/XP DeviceBus device tree nodes

2013-06-29 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the DeviceBus out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-xp.dtsi

[PATCH v5 08/12] ARM: mvebu: Add MBus to Armada 370/XP device tree

2013-06-29 Thread Ezequiel Garcia
akes all of them sit behind the mbus, thus describing the hardware accurately. A translation entry has been added for the internal-regs mapping. This can't be done in the common armada-370-xp.dtsi because A370 and AXP have different addressing width. Signed-off-by: Ezequiel Garcia --- arch/arm/b

[PATCH v5 04/12] ARM: mvebu: Initialize MBus using the DT binding

2013-06-29 Thread Ezequiel Garcia
Now that the mbus device tree binding has been introduced, we can switch over to it. Also, and since the initialization of the mbus driver is quite fundamental for the system to work properly, this patch adds a BUG() in case mbus fails to initialize. Signed-off-by: Ezequiel Garcia --- arch/arm

[PATCH v5 07/12] ARM: mvebu: Use the preprocessor on Armada 370/XP device tree files

2013-06-29 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-370-db.dts | 2 +- arch/arm/boot/dts/armada-370-mirabox.dts | 2 +- arch/arm/boot/dts/armada-370-rd.dts | 2 +- arch/arm/boot/dts/armada-370.dtsi| 2 +- arch/arm/boot/dts/armada-xp

[PATCH v5 06/12] memory: mvebu-devbus: Remove address decoding window workaround

2013-06-29 Thread Ezequiel Garcia
ned-off-by: Ezequiel Garcia --- drivers/memory/mvebu-devbus.c | 64 ++- 1 file changed, 2 insertions(+), 62 deletions(-) diff --git a/drivers/memory/mvebu-devbus.c b/drivers/memory/mvebu-devbus.c index 978e8e3..94c9248 100644 --- a/drivers/memory/mvebu-devb

[PATCH v5 05/12] ARM: mvebu: Remove the harcoded BootROM window allocation

2013-06-29 Thread Ezequiel Garcia
The address decoding window to access the BootROM should not be allocated programatically, but instead declared in the device tree. Signed-off-by: Ezequiel Garcia --- arch/arm/mach-mvebu/platsmp.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/arch

  1   2   3   >