linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/4] Adding SATA support for Armada 370/XP
@ 2012-10-26 12:30 Gregory CLEMENT
  2012-10-26 12:30 ` [PATCH V2 1/4] arm: mvebu: increase atomic coherent pool size for armada 370/XP Gregory CLEMENT
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Gregory CLEMENT @ 2012-10-26 12:30 UTC (permalink / raw)
  To: Jason Cooper, Andrew Lunn, Gregory Clement
  Cc: linux-arm-kernel, Arnd Bergmann, Olof Johansson, Ben Dooks,
	Ian Molton, Nicolas Pitre, Lior Amsalem, Maen Suleiman,
	Tawfik Bayouk, Shadi Ammouri, Eran Ben-Avi, Yehuda Yitschak,
	Nadav Haklai, Ike Pan, Jani Monoses, Chris Van Hoof, Dan Frazier,
	Thomas Petazzoni, Leif Lindholm, Jon Masters, David Marlin,
	Sebastian Hesselbarth, linux-kernel

Hello,

this patch set adds the SATA support for Armada 370 and Armada XP. Few
changes have been done since the first version by taking in account
the comments received for the first version.

The evaluation boards for Armada 370 and Armada XP come with 2 SATA
ports, and when both are enable the coherent pool for DMA mapping was
too short. It was exactly the same issue that was fixed for Kirkwood
two months ago. So I used the same fix in the first patch. Later when
Kirkwood will be part of mach-mvebu, then this fix will be shared
between the 2 SoCs families.

This patch set is based on 3.7-rc2 and depends one the framework clock
support (the last version was posted last week:
http://thread.gmane.org/gmane.linux.kernel/1375701). The git branch
called mvebu-SATA-for-3.8 is also available at
https://github.com/MISL-EBU-System-SW/mainline-public.git.

Changelog:

V1 -> V2:
- Added the acked-by from Marek Szyprowski for the first patch.
- Moved the port number from dtsi to board file t o be coherent with
  Kirwkood boards.
- Cleaned armada-370-xp.dtsi from test strings.
- Split the second patch in 3 part one for dts, one for config update,
  and the last for dtsi.
- Updated the mvebu_defconfig file with only the necessary symbols.
- Updated also the multi_v7_defconfig file.

Regards,

Gregory

Gregory CLEMENT (4):
  arm: mvebu: increase atomic coherent pool size for armada 370/XP
  arm: mvebu: adding SATA support: dt binding for Armada 370/XP
  arm: mvebu: adding SATA support: configs update
  arm: mvebu: adding SATA support: dt binding for Armada 370/XP boards

 arch/arm/boot/dts/armada-370-db.dts  |    4 ++++
 arch/arm/boot/dts/armada-370-xp.dtsi |    9 +++++++++
 arch/arm/boot/dts/armada-xp-db.dts   |    4 ++++
 arch/arm/configs/multi_v7_defconfig  |    2 ++
 arch/arm/configs/mvebu_defconfig     |    3 +++
 arch/arm/mach-mvebu/armada-370-xp.c  |   12 ++++++++++++
 6 files changed, 34 insertions(+)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH V2 1/4] arm: mvebu: increase atomic coherent pool size for armada 370/XP
  2012-10-26 12:30 [PATCH V2 0/4] Adding SATA support for Armada 370/XP Gregory CLEMENT
@ 2012-10-26 12:30 ` Gregory CLEMENT
  2012-10-26 12:30 ` [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP Gregory CLEMENT
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 16+ messages in thread
From: Gregory CLEMENT @ 2012-10-26 12:30 UTC (permalink / raw)
  To: Jason Cooper, Andrew Lunn, Gregory Clement
  Cc: linux-arm-kernel, Arnd Bergmann, Olof Johansson, Ben Dooks,
	Ian Molton, Nicolas Pitre, Lior Amsalem, Maen Suleiman,
	Tawfik Bayouk, Shadi Ammouri, Eran Ben-Avi, Yehuda Yitschak,
	Nadav Haklai, Ike Pan, Jani Monoses, Chris Van Hoof, Dan Frazier,
	Thomas Petazzoni, Leif Lindholm, Jon Masters, David Marlin,
	Sebastian Hesselbarth, linux-kernel

For Armada 370/XP we have the same problem that for the commit
cb01b63, so we applied the same solution: "The default 256 KiB
coherent pool may be too small for some of the Kirkwood devices, so
increase it to make sure that devices will be able to allocate their
buffers with GFP_ATOMIC flag"

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
 arch/arm/mach-mvebu/armada-370-xp.c |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c
index 2af6ce5..cbad821 100644
--- a/arch/arm/mach-mvebu/armada-370-xp.c
+++ b/arch/arm/mach-mvebu/armada-370-xp.c
@@ -17,6 +17,7 @@
 #include <linux/of_platform.h>
 #include <linux/io.h>
 #include <linux/time-armada-370-xp.h>
+#include <linux/dma-mapping.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
 #include <asm/mach/time.h>
@@ -43,6 +44,16 @@ void __init armada_370_xp_timer_and_clk_init(void)
 	armada_370_xp_timer_init();
 }
 
+void __init armada_370_xp_init_early(void)
+{
+	/*
+	 * Some Armada 370/XP devices allocate their coherent buffers
+	 * from atomic context. Increase size of atomic coherent pool
+	 * to make sure such the allocations won't fail.
+	 */
+	init_dma_coherent_pool_size(SZ_1M);
+}
+
 struct sys_timer armada_370_xp_timer = {
 	.init		= armada_370_xp_timer_and_clk_init,
 };
@@ -61,6 +72,7 @@ static const char * const armada_370_xp_dt_board_dt_compat[] = {
 DT_MACHINE_START(ARMADA_XP_DT, "Marvell Aramada 370/XP (Device Tree)")
 	.init_machine	= armada_370_xp_dt_init,
 	.map_io		= armada_370_xp_map_io,
+	.init_early	= armada_370_xp_init_early,
 	.init_irq	= armada_370_xp_init_irq,
 	.handle_irq     = armada_370_xp_handle_irq,
 	.timer		= &armada_370_xp_timer,
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP
  2012-10-26 12:30 [PATCH V2 0/4] Adding SATA support for Armada 370/XP Gregory CLEMENT
  2012-10-26 12:30 ` [PATCH V2 1/4] arm: mvebu: increase atomic coherent pool size for armada 370/XP Gregory CLEMENT
@ 2012-10-26 12:30 ` Gregory CLEMENT
  2012-10-26 13:31   ` Jason Cooper
  2012-10-26 12:30 ` [PATCH V2 3/4] arm: mvebu: adding SATA support: configs update Gregory CLEMENT
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 16+ messages in thread
From: Gregory CLEMENT @ 2012-10-26 12:30 UTC (permalink / raw)
  To: Jason Cooper, Andrew Lunn, Gregory Clement
  Cc: linux-arm-kernel, Arnd Bergmann, Olof Johansson, Ben Dooks,
	Ian Molton, Nicolas Pitre, Lior Amsalem, Maen Suleiman,
	Tawfik Bayouk, Shadi Ammouri, Eran Ben-Avi, Yehuda Yitschak,
	Nadav Haklai, Ike Pan, Jani Monoses, Chris Van Hoof, Dan Frazier,
	Thomas Petazzoni, Leif Lindholm, Jon Masters, David Marlin,
	Sebastian Hesselbarth, linux-kernel

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Lior Amsalem <alior@marvell.com>
---
 arch/arm/boot/dts/armada-370-xp.dtsi |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi
index 94b4b9e..a911f7a 100644
--- a/arch/arm/boot/dts/armada-370-xp.dtsi
+++ b/arch/arm/boot/dts/armada-370-xp.dtsi
@@ -69,6 +69,15 @@
 			compatible = "marvell,armada-addr-decoding-controller";
 			reg = <0xd0020000 0x258>;
 		};
+
+		sata@d00a0000 {
+                        compatible = "marvell,orion-sata";
+                        reg = <0xd00a0000 0x2400>;
+                        interrupts = <55>;
+			clocks = <&coreclk 0>;
+                        status = "disabled";
+		};
+
 	};
 };
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH V2 3/4] arm: mvebu: adding SATA support: configs update
  2012-10-26 12:30 [PATCH V2 0/4] Adding SATA support for Armada 370/XP Gregory CLEMENT
  2012-10-26 12:30 ` [PATCH V2 1/4] arm: mvebu: increase atomic coherent pool size for armada 370/XP Gregory CLEMENT
  2012-10-26 12:30 ` [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP Gregory CLEMENT
@ 2012-10-26 12:30 ` Gregory CLEMENT
  2012-10-26 12:30 ` [PATCH V2 4/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP boards Gregory CLEMENT
  2012-10-26 12:39 ` [PATCH V2 0/4] Adding SATA support for Armada 370/XP Andrew Lunn
  4 siblings, 0 replies; 16+ messages in thread
From: Gregory CLEMENT @ 2012-10-26 12:30 UTC (permalink / raw)
  To: Jason Cooper, Andrew Lunn, Gregory Clement
  Cc: linux-arm-kernel, Arnd Bergmann, Olof Johansson, Ben Dooks,
	Ian Molton, Nicolas Pitre, Lior Amsalem, Maen Suleiman,
	Tawfik Bayouk, Shadi Ammouri, Eran Ben-Avi, Yehuda Yitschak,
	Nadav Haklai, Ike Pan, Jani Monoses, Chris Van Hoof, Dan Frazier,
	Thomas Petazzoni, Leif Lindholm, Jon Masters, David Marlin,
	Sebastian Hesselbarth, linux-kernel

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Lior Amsalem <alior@marvell.com>
---
 arch/arm/configs/multi_v7_defconfig |    2 ++
 arch/arm/configs/mvebu_defconfig    |    3 +++
 2 files changed, 5 insertions(+)

diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index 159f75f..dbea6f4 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -17,8 +17,10 @@ CONFIG_ARM_APPENDED_DTB=y
 CONFIG_VFP=y
 CONFIG_NEON=y
 CONFIG_NET=y
+CONFIG_BLK_DEV_SD=y
 CONFIG_ATA=y
 CONFIG_SATA_HIGHBANK=y
+CONFIG_SATA_MV=y
 CONFIG_NETDEVICES=y
 CONFIG_NET_CALXEDA_XGMAC=y
 CONFIG_SMSC911X=y
diff --git a/arch/arm/configs/mvebu_defconfig b/arch/arm/configs/mvebu_defconfig
index 7bcf850..76a60b5 100644
--- a/arch/arm/configs/mvebu_defconfig
+++ b/arch/arm/configs/mvebu_defconfig
@@ -18,6 +18,9 @@ CONFIG_ZBOOT_ROM_BSS=0x0
 CONFIG_ARM_APPENDED_DTB=y
 CONFIG_VFP=y
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_BLK_DEV_SD=y
+CONFIG_ATA=y
+CONFIG_SATA_MV=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_OF_PLATFORM=y
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH V2 4/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP boards
  2012-10-26 12:30 [PATCH V2 0/4] Adding SATA support for Armada 370/XP Gregory CLEMENT
                   ` (2 preceding siblings ...)
  2012-10-26 12:30 ` [PATCH V2 3/4] arm: mvebu: adding SATA support: configs update Gregory CLEMENT
@ 2012-10-26 12:30 ` Gregory CLEMENT
  2012-10-26 12:39 ` [PATCH V2 0/4] Adding SATA support for Armada 370/XP Andrew Lunn
  4 siblings, 0 replies; 16+ messages in thread
From: Gregory CLEMENT @ 2012-10-26 12:30 UTC (permalink / raw)
  To: Jason Cooper, Andrew Lunn, Gregory Clement
  Cc: linux-arm-kernel, Arnd Bergmann, Olof Johansson, Ben Dooks,
	Ian Molton, Nicolas Pitre, Lior Amsalem, Maen Suleiman,
	Tawfik Bayouk, Shadi Ammouri, Eran Ben-Avi, Yehuda Yitschak,
	Nadav Haklai, Ike Pan, Jani Monoses, Chris Van Hoof, Dan Frazier,
	Thomas Petazzoni, Leif Lindholm, Jon Masters, David Marlin,
	Sebastian Hesselbarth, linux-kernel

Add the SATA device tree bindings for
- Armada XP evaluation board (DB-78460-BP)
- Armada 370 evaluation board (DB-88F6710-BP-DDR3)

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Lior Amsalem <alior@marvell.com>
---
 arch/arm/boot/dts/armada-370-db.dts |    4 ++++
 arch/arm/boot/dts/armada-xp-db.dts  |    4 ++++
 2 files changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/armada-370-db.dts b/arch/arm/boot/dts/armada-370-db.dts
index 4a31b03..060e5ba 100644
--- a/arch/arm/boot/dts/armada-370-db.dts
+++ b/arch/arm/boot/dts/armada-370-db.dts
@@ -34,5 +34,9 @@
 			clock-frequency = <200000000>;
 			status = "okay";
 		};
+		sata@d00a0000 {
+                        nr-ports = <2>;
+			status = "okay";
+		};
 	};
 };
diff --git a/arch/arm/boot/dts/armada-xp-db.dts b/arch/arm/boot/dts/armada-xp-db.dts
index b1fc728..375436b 100644
--- a/arch/arm/boot/dts/armada-xp-db.dts
+++ b/arch/arm/boot/dts/armada-xp-db.dts
@@ -46,5 +46,9 @@
 			clock-frequency = <250000000>;
 			status = "okay";
 		};
+		sata@d00a0000 {
+                        nr-ports = <2>;
+			status = "okay";
+		};
 	};
 };
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [PATCH V2 0/4] Adding SATA support for Armada 370/XP
  2012-10-26 12:30 [PATCH V2 0/4] Adding SATA support for Armada 370/XP Gregory CLEMENT
                   ` (3 preceding siblings ...)
  2012-10-26 12:30 ` [PATCH V2 4/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP boards Gregory CLEMENT
@ 2012-10-26 12:39 ` Andrew Lunn
  2012-10-26 12:48   ` Thomas Petazzoni
  2012-10-26 12:55   ` Gregory CLEMENT
  4 siblings, 2 replies; 16+ messages in thread
From: Andrew Lunn @ 2012-10-26 12:39 UTC (permalink / raw)
  To: Gregory CLEMENT
  Cc: Jason Cooper, Andrew Lunn, linux-arm-kernel, Arnd Bergmann,
	Olof Johansson, Ben Dooks, Ian Molton, Nicolas Pitre,
	Lior Amsalem, Maen Suleiman, Tawfik Bayouk, Shadi Ammouri,
	Eran Ben-Avi, Yehuda Yitschak, Nadav Haklai, Ike Pan,
	Jani Monoses, Chris Van Hoof, Dan Frazier, Thomas Petazzoni,
	Leif Lindholm, Jon Masters, David Marlin, Sebastian Hesselbarth,
	linux-kernel

On Fri, Oct 26, 2012 at 02:30:45PM +0200, Gregory CLEMENT wrote:
> Hello,
> 
> this patch set adds the SATA support for Armada 370 and Armada XP. Few
> changes have been done since the first version by taking in account
> the comments received for the first version.
> 
> The evaluation boards for Armada 370 and Armada XP come with 2 SATA
> ports, and when both are enable the coherent pool for DMA mapping was
> too short. It was exactly the same issue that was fixed for Kirkwood
> two months ago. So I used the same fix in the first patch. Later when
> Kirkwood will be part of mach-mvebu, then this fix will be shared
> between the 2 SoCs families.
> 
> This patch set is based on 3.7-rc2 and depends one the framework clock
> support (the last version was posted last week:
> http://thread.gmane.org/gmane.linux.kernel/1375701). The git branch
> called mvebu-SATA-for-3.8 is also available at
> https://github.com/MISL-EBU-System-SW/mainline-public.git.

Hi Gregory

What about the openblocks-ax3?

     Andrew

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH V2 0/4] Adding SATA support for Armada 370/XP
  2012-10-26 12:39 ` [PATCH V2 0/4] Adding SATA support for Armada 370/XP Andrew Lunn
@ 2012-10-26 12:48   ` Thomas Petazzoni
  2012-10-26 12:54     ` Andrew Lunn
  2012-10-26 12:55   ` Gregory CLEMENT
  1 sibling, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2012-10-26 12:48 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Gregory CLEMENT, Jason Cooper, linux-arm-kernel, Arnd Bergmann,
	Olof Johansson, Ben Dooks, Ian Molton, Nicolas Pitre,
	Lior Amsalem, Maen Suleiman, Tawfik Bayouk, Shadi Ammouri,
	Eran Ben-Avi, Yehuda Yitschak, Nadav Haklai, Ike Pan,
	Jani Monoses, Chris Van Hoof, Dan Frazier, Leif Lindholm,
	Jon Masters, David Marlin, Sebastian Hesselbarth, linux-kernel


On Fri, 26 Oct 2012 14:39:08 +0200, Andrew Lunn wrote:

> What about the openblocks-ax3?

Grégory does not (yet) have an OpenBlocks AX3, but I'm planning to do
the work for SATA soon for this platform. However, supporting the
OpenBlocks AX3 is not part of our official contract with Marvell, it's
just an additional thing I'm happily doing on my spare time. So I'll
provide support for SATA, network and SMP on OpenBlocks AX3, but we
would like to first see the SATA support for the Marvell evaluation
boards being merged, and on my side the basic support for the
OpenBlocks AX3. I'll send followup patches to enable SATA/network/SMP
on OpenBlocks AX3 later on, if that's ok for you?

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH V2 0/4] Adding SATA support for Armada 370/XP
  2012-10-26 12:48   ` Thomas Petazzoni
@ 2012-10-26 12:54     ` Andrew Lunn
  0 siblings, 0 replies; 16+ messages in thread
From: Andrew Lunn @ 2012-10-26 12:54 UTC (permalink / raw)
  To: Thomas Petazzoni
  Cc: Andrew Lunn, Gregory CLEMENT, Jason Cooper, linux-arm-kernel,
	Arnd Bergmann, Olof Johansson, Ben Dooks, Ian Molton,
	Nicolas Pitre, Lior Amsalem, Maen Suleiman, Tawfik Bayouk,
	Shadi Ammouri, Eran Ben-Avi, Yehuda Yitschak, Nadav Haklai,
	Ike Pan, Jani Monoses, Chris Van Hoof, Dan Frazier,
	Leif Lindholm, Jon Masters, David Marlin, Sebastian Hesselbarth,
	linux-kernel

On Fri, Oct 26, 2012 at 02:48:04PM +0200, Thomas Petazzoni wrote:
> 
> On Fri, 26 Oct 2012 14:39:08 +0200, Andrew Lunn wrote:
> 
> > What about the openblocks-ax3?
> 
> Gr??gory does not (yet) have an OpenBlocks AX3, but I'm planning to do
> the work for SATA soon for this platform. However, supporting the
> OpenBlocks AX3 is not part of our official contract with Marvell, it's
> just an additional thing I'm happily doing on my spare time.

Ah, O.K. I did not realize that.

> So I'll
> provide support for SATA, network and SMP on OpenBlocks AX3, but we
> would like to first see the SATA support for the Marvell evaluation
> boards being merged, and on my side the basic support for the
> OpenBlocks AX3. I'll send followup patches to enable SATA/network/SMP
> on OpenBlocks AX3 later on, if that's ok for you?

Sure, no problem.

Thanks for the clarification,

       Andrew

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH V2 0/4] Adding SATA support for Armada 370/XP
  2012-10-26 12:39 ` [PATCH V2 0/4] Adding SATA support for Armada 370/XP Andrew Lunn
  2012-10-26 12:48   ` Thomas Petazzoni
@ 2012-10-26 12:55   ` Gregory CLEMENT
  1 sibling, 0 replies; 16+ messages in thread
From: Gregory CLEMENT @ 2012-10-26 12:55 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Jason Cooper, linux-arm-kernel, Arnd Bergmann, Olof Johansson,
	Ben Dooks, Ian Molton, Nicolas Pitre, Lior Amsalem,
	Maen Suleiman, Tawfik Bayouk, Shadi Ammouri, Eran Ben-Avi,
	Yehuda Yitschak, Nadav Haklai, Ike Pan, Jani Monoses,
	Chris Van Hoof, Dan Frazier, Thomas Petazzoni, Leif Lindholm,
	Jon Masters, David Marlin, Sebastian Hesselbarth, linux-kernel

On 10/26/2012 02:39 PM, Andrew Lunn wrote:
> On Fri, Oct 26, 2012 at 02:30:45PM +0200, Gregory CLEMENT wrote:
>> Hello,
>>
>> this patch set adds the SATA support for Armada 370 and Armada XP. Few
>> changes have been done since the first version by taking in account
>> the comments received for the first version.
>>
>> The evaluation boards for Armada 370 and Armada XP come with 2 SATA
>> ports, and when both are enable the coherent pool for DMA mapping was
>> too short. It was exactly the same issue that was fixed for Kirkwood
>> two months ago. So I used the same fix in the first patch. Later when
>> Kirkwood will be part of mach-mvebu, then this fix will be shared
>> between the 2 SoCs families.
>>
>> This patch set is based on 3.7-rc2 and depends one the framework clock
>> support (the last version was posted last week:
>> http://thread.gmane.org/gmane.linux.kernel/1375701). The git branch
>> called mvebu-SATA-for-3.8 is also available at
>> https://github.com/MISL-EBU-System-SW/mainline-public.git.
> 
> Hi Gregory
> 
> What about the openblocks-ax3?

Well I don't have this hardware, Thomas have. But with this question
I guess this board have (a) SATA port(s).

Moreover openblocks-ax3 is not (yet) in Jason branch so I can't make
a patch applying on a file which doesn't exist on my branch. It could
be a dependency but I try to reduce it as far as I can.

But as soon as this series will be applied, adding SATA support for
openblocks-ax3 should be pretty fast and just a matter of updating
the dts.

> 
>      Andrew
> 


-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP
  2012-10-26 12:30 ` [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP Gregory CLEMENT
@ 2012-10-26 13:31   ` Jason Cooper
  2012-10-26 13:34     ` Andrew Lunn
  0 siblings, 1 reply; 16+ messages in thread
From: Jason Cooper @ 2012-10-26 13:31 UTC (permalink / raw)
  To: Gregory CLEMENT
  Cc: Andrew Lunn, linux-arm-kernel, Arnd Bergmann, Olof Johansson,
	Ben Dooks, Ian Molton, Nicolas Pitre, Lior Amsalem,
	Maen Suleiman, Tawfik Bayouk, Shadi Ammouri, Eran Ben-Avi,
	Yehuda Yitschak, Nadav Haklai, Ike Pan, Jani Monoses,
	Chris Van Hoof, Dan Frazier, Thomas Petazzoni, Leif Lindholm,
	Jon Masters, David Marlin, Sebastian Hesselbarth, linux-kernel

On Fri, Oct 26, 2012 at 02:30:47PM +0200, Gregory CLEMENT wrote:
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
> Signed-off-by: Lior Amsalem <alior@marvell.com>
> ---
>  arch/arm/boot/dts/armada-370-xp.dtsi |    9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi
> index 94b4b9e..a911f7a 100644
> --- a/arch/arm/boot/dts/armada-370-xp.dtsi
> +++ b/arch/arm/boot/dts/armada-370-xp.dtsi
> @@ -69,6 +69,15 @@
>  			compatible = "marvell,armada-addr-decoding-controller";
>  			reg = <0xd0020000 0x258>;
>  		};
> +
> +		sata@d00a0000 {
> +                        compatible = "marvell,orion-sata";
> +                        reg = <0xd00a0000 0x2400>;
> +                        interrupts = <55>;
> +			clocks = <&coreclk 0>;

nit. whitespace?

thx,

Jason.

> +                        status = "disabled";
> +		};
> +
>  	};
>  };
>  
> -- 
> 1.7.9.5
> 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP
  2012-10-26 13:31   ` Jason Cooper
@ 2012-10-26 13:34     ` Andrew Lunn
  2012-10-26 13:47       ` Gregory CLEMENT
  0 siblings, 1 reply; 16+ messages in thread
From: Andrew Lunn @ 2012-10-26 13:34 UTC (permalink / raw)
  To: Jason Cooper
  Cc: Gregory CLEMENT, Andrew Lunn, linux-arm-kernel, Arnd Bergmann,
	Olof Johansson, Ben Dooks, Ian Molton, Nicolas Pitre,
	Lior Amsalem, Maen Suleiman, Tawfik Bayouk, Shadi Ammouri,
	Eran Ben-Avi, Yehuda Yitschak, Nadav Haklai, Ike Pan,
	Jani Monoses, Chris Van Hoof, Dan Frazier, Thomas Petazzoni,
	Leif Lindholm, Jon Masters, David Marlin, Sebastian Hesselbarth,
	linux-kernel

On Fri, Oct 26, 2012 at 09:31:54AM -0400, Jason Cooper wrote:
> On Fri, Oct 26, 2012 at 02:30:47PM +0200, Gregory CLEMENT wrote:
> > Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
> > Signed-off-by: Lior Amsalem <alior@marvell.com>
> > ---
> >  arch/arm/boot/dts/armada-370-xp.dtsi |    9 +++++++++
> >  1 file changed, 9 insertions(+)
> > 
> > diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi
> > index 94b4b9e..a911f7a 100644
> > --- a/arch/arm/boot/dts/armada-370-xp.dtsi
> > +++ b/arch/arm/boot/dts/armada-370-xp.dtsi
> > @@ -69,6 +69,15 @@
> >  			compatible = "marvell,armada-addr-decoding-controller";
> >  			reg = <0xd0020000 0x258>;
> >  		};
> > +
> > +		sata@d00a0000 {
> > +                        compatible = "marvell,orion-sata";
> > +                        reg = <0xd00a0000 0x2400>;
> > +                        interrupts = <55>;
> > +			clocks = <&coreclk 0>;
> 
> nit. whitespace?

[Don't shoot the messenger]

How about extending checkpatch to check for this? I guess its just
spaces which should be tabs.

    Andrew

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP
  2012-10-26 13:34     ` Andrew Lunn
@ 2012-10-26 13:47       ` Gregory CLEMENT
  2012-10-26 13:52         ` Andrew Lunn
  0 siblings, 1 reply; 16+ messages in thread
From: Gregory CLEMENT @ 2012-10-26 13:47 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Jason Cooper, linux-arm-kernel, Arnd Bergmann, Olof Johansson,
	Ben Dooks, Ian Molton, Nicolas Pitre, Lior Amsalem,
	Maen Suleiman, Tawfik Bayouk, Shadi Ammouri, Eran Ben-Avi,
	Yehuda Yitschak, Nadav Haklai, Ike Pan, Jani Monoses,
	Chris Van Hoof, Dan Frazier, Thomas Petazzoni, Leif Lindholm,
	Jon Masters, David Marlin, Sebastian Hesselbarth, linux-kernel

On 10/26/2012 03:34 PM, Andrew Lunn wrote:
> On Fri, Oct 26, 2012 at 09:31:54AM -0400, Jason Cooper wrote:
>> On Fri, Oct 26, 2012 at 02:30:47PM +0200, Gregory CLEMENT wrote:
>>> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
>>> Signed-off-by: Lior Amsalem <alior@marvell.com>
>>> ---
>>>  arch/arm/boot/dts/armada-370-xp.dtsi |    9 +++++++++
>>>  1 file changed, 9 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi
>>> index 94b4b9e..a911f7a 100644
>>> --- a/arch/arm/boot/dts/armada-370-xp.dtsi
>>> +++ b/arch/arm/boot/dts/armada-370-xp.dtsi
>>> @@ -69,6 +69,15 @@
>>>  			compatible = "marvell,armada-addr-decoding-controller";
>>>  			reg = <0xd0020000 0x258>;
>>>  		};
>>> +
>>> +		sata@d00a0000 {
>>> +                        compatible = "marvell,orion-sata";
>>> +                        reg = <0xd00a0000 0x2400>;
>>> +                        interrupts = <55>;
>>> +			clocks = <&coreclk 0>;
>>
>> nit. whitespace?
> 
> [Don't shoot the messenger]
> 
> How about extending checkpatch to check for this? I guess its just
> spaces which should be tabs.

No it is the opposite in fact! On this line it's tabs: 3 tabs of 8
whitespace, so the line start at 24. But as there is a '+', the first
tab is only 7, so it is still start at 24. Whereas for the other lines
it's 24 white spaces, so with the '+' it starts at 25. That's why I
didn't notice it, and if you apply the patch all is fine.

Now, about white spaces vs tab, I don't know what is the rule for .dts
file.


Gregory

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP
  2012-10-26 13:47       ` Gregory CLEMENT
@ 2012-10-26 13:52         ` Andrew Lunn
  2012-10-26 14:57           ` Thomas Petazzoni
  0 siblings, 1 reply; 16+ messages in thread
From: Andrew Lunn @ 2012-10-26 13:52 UTC (permalink / raw)
  To: Gregory CLEMENT
  Cc: Andrew Lunn, Jason Cooper, linux-arm-kernel, Arnd Bergmann,
	Olof Johansson, Ben Dooks, Ian Molton, Nicolas Pitre,
	Lior Amsalem, Maen Suleiman, Tawfik Bayouk, Shadi Ammouri,
	Eran Ben-Avi, Yehuda Yitschak, Nadav Haklai, Ike Pan,
	Jani Monoses, Chris Van Hoof, Dan Frazier, Thomas Petazzoni,
	Leif Lindholm, Jon Masters, David Marlin, Sebastian Hesselbarth,
	linux-kernel

> Now, about white spaces vs tab, I don't know what is the rule for .dts
> file.

I personally use tabs, but i don't see anything in the
Documentation/CodingStyle.

Maybe ask on the device tree mailing list?

      Andrew

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP
  2012-10-26 13:52         ` Andrew Lunn
@ 2012-10-26 14:57           ` Thomas Petazzoni
  2012-10-26 15:02             ` Jason Cooper
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2012-10-26 14:57 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Gregory CLEMENT, Jason Cooper, linux-arm-kernel, Arnd Bergmann,
	Olof Johansson, Ben Dooks, Ian Molton, Nicolas Pitre,
	Lior Amsalem, Maen Suleiman, Tawfik Bayouk, Shadi Ammouri,
	Eran Ben-Avi, Yehuda Yitschak, Nadav Haklai, Ike Pan,
	Jani Monoses, Chris Van Hoof, Dan Frazier, Leif Lindholm,
	Jon Masters, David Marlin, Sebastian Hesselbarth, linux-kernel


On Fri, 26 Oct 2012 15:52:25 +0200, Andrew Lunn wrote:
> > Now, about white spaces vs tab, I don't know what is the rule
> > for .dts file.
> 
> I personally use tabs, but i don't see anything in the
> Documentation/CodingStyle.
> 
> Maybe ask on the device tree mailing list?

Yes, it would be good to know and document what is the rule for .dts
files, and possibly extend checkpatch to cover those special rules
for .dts files.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP
  2012-10-26 14:57           ` Thomas Petazzoni
@ 2012-10-26 15:02             ` Jason Cooper
  2012-10-26 15:06               ` Gregory CLEMENT
  0 siblings, 1 reply; 16+ messages in thread
From: Jason Cooper @ 2012-10-26 15:02 UTC (permalink / raw)
  To: Thomas Petazzoni
  Cc: Andrew Lunn, Gregory CLEMENT, linux-arm-kernel, Arnd Bergmann,
	Olof Johansson, Ben Dooks, Ian Molton, Nicolas Pitre,
	Lior Amsalem, Maen Suleiman, Tawfik Bayouk, Shadi Ammouri,
	Eran Ben-Avi, Yehuda Yitschak, Nadav Haklai, Ike Pan,
	Jani Monoses, Chris Van Hoof, Dan Frazier, Leif Lindholm,
	Jon Masters, David Marlin, Sebastian Hesselbarth, linux-kernel

On Fri, Oct 26, 2012 at 04:57:59PM +0200, Thomas Petazzoni wrote:
> 
> On Fri, 26 Oct 2012 15:52:25 +0200, Andrew Lunn wrote:
> > > Now, about white spaces vs tab, I don't know what is the rule
> > > for .dts file.
> > 
> > I personally use tabs, but i don't see anything in the
> > Documentation/CodingStyle.
> > 
> > Maybe ask on the device tree mailing list?
> 
> Yes, it would be good to know and document what is the rule for .dts
> files, and possibly extend checkpatch to cover those special rules
> for .dts files.

until that is resolved, can we make this patch conform to what is in the
file currently?  Once the dt folks clarify, we can run through all the
dts's and submit one cleanup series.

If there are no other comments on this series, I'm fine taking it as is
and doing the fixup on my end.  No need to do a version bump just for
this.

thx,

Jason.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP
  2012-10-26 15:02             ` Jason Cooper
@ 2012-10-26 15:06               ` Gregory CLEMENT
  0 siblings, 0 replies; 16+ messages in thread
From: Gregory CLEMENT @ 2012-10-26 15:06 UTC (permalink / raw)
  To: Jason Cooper
  Cc: Thomas Petazzoni, Andrew Lunn, linux-arm-kernel, Arnd Bergmann,
	Olof Johansson, Ben Dooks, Ian Molton, Nicolas Pitre,
	Lior Amsalem, Maen Suleiman, Tawfik Bayouk, Shadi Ammouri,
	Eran Ben-Avi, Yehuda Yitschak, Nadav Haklai, Ike Pan,
	Jani Monoses, Chris Van Hoof, Dan Frazier, Leif Lindholm,
	Jon Masters, David Marlin, Sebastian Hesselbarth, linux-kernel

On 10/26/2012 05:02 PM, Jason Cooper wrote:
> On Fri, Oct 26, 2012 at 04:57:59PM +0200, Thomas Petazzoni wrote:
>>
>> On Fri, 26 Oct 2012 15:52:25 +0200, Andrew Lunn wrote:
>>>> Now, about white spaces vs tab, I don't know what is the rule
>>>> for .dts file.
>>>
>>> I personally use tabs, but i don't see anything in the
>>> Documentation/CodingStyle.
>>>
>>> Maybe ask on the device tree mailing list?
>>
>> Yes, it would be good to know and document what is the rule for .dts
>> files, and possibly extend checkpatch to cover those special rules
>> for .dts files.
> 
> until that is resolved, can we make this patch conform to what is in the
> file currently?  Once the dt folks clarify, we can run through all the
> dts's and submit one cleanup series.
> 
> If there are no other comments on this series, I'm fine taking it as is
> and doing the fixup on my end.  No need to do a version bump just for
> this.

OK then you will just have to replace my tabs by whitespace.

Thanks,

Gregory

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-10-26 15:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-26 12:30 [PATCH V2 0/4] Adding SATA support for Armada 370/XP Gregory CLEMENT
2012-10-26 12:30 ` [PATCH V2 1/4] arm: mvebu: increase atomic coherent pool size for armada 370/XP Gregory CLEMENT
2012-10-26 12:30 ` [PATCH V2 2/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP Gregory CLEMENT
2012-10-26 13:31   ` Jason Cooper
2012-10-26 13:34     ` Andrew Lunn
2012-10-26 13:47       ` Gregory CLEMENT
2012-10-26 13:52         ` Andrew Lunn
2012-10-26 14:57           ` Thomas Petazzoni
2012-10-26 15:02             ` Jason Cooper
2012-10-26 15:06               ` Gregory CLEMENT
2012-10-26 12:30 ` [PATCH V2 3/4] arm: mvebu: adding SATA support: configs update Gregory CLEMENT
2012-10-26 12:30 ` [PATCH V2 4/4] arm: mvebu: adding SATA support: dt binding for Armada 370/XP boards Gregory CLEMENT
2012-10-26 12:39 ` [PATCH V2 0/4] Adding SATA support for Armada 370/XP Andrew Lunn
2012-10-26 12:48   ` Thomas Petazzoni
2012-10-26 12:54     ` Andrew Lunn
2012-10-26 12:55   ` Gregory CLEMENT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).