linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Minor fix for jcooper/for-next
@ 2013-06-06  9:21 Thomas Petazzoni
  2013-06-06  9:21 ` [PATCH] arm: mvebu: ensure PCIe range is propagated in the .dts files Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2013-06-06  9:21 UTC (permalink / raw)
  To: linux-arm-kernel

Hello Jason,

Following our discussion yesterday evening/night, I did a test run of
jcooper/for-next this morning. It works fine, but requires the
following fix, that you can probably stack in mvebu/dt.

Thanks!

Thomas

Thomas Petazzoni (1):
  arm: mvebu: ensure PCIe range is propagated in the .dts files

 arch/arm/boot/dts/armada-xp-db.dts               | 1 +
 arch/arm/boot/dts/armada-xp-gp.dts               | 5 +++--
 arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts | 5 +++--
 3 files changed, 7 insertions(+), 4 deletions(-)

-- 
1.8.1.2

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

* [PATCH] arm: mvebu: ensure PCIe range is propagated in the .dts files
  2013-06-06  9:21 [PATCH] Minor fix for jcooper/for-next Thomas Petazzoni
@ 2013-06-06  9:21 ` Thomas Petazzoni
  2013-06-06 18:11   ` Jason Cooper
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2013-06-06  9:21 UTC (permalink / raw)
  To: linux-arm-kernel

The ranges DT entry needed by the PCIe controller is defined at the
SoC .dtsi level. However, some boards have a NOR flash, and to support
it, they need to override the SoC-level ranges property to add an
additional range. Since PCIe and NOR support came separately, some
boards were not properly changed to include the PCIe range in their
ranges property at the .dts level.

This commit fixes those platforms.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 arch/arm/boot/dts/armada-xp-db.dts               | 1 +
 arch/arm/boot/dts/armada-xp-gp.dts               | 5 +++--
 arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts | 5 +++--
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/armada-xp-db.dts b/arch/arm/boot/dts/armada-xp-db.dts
index f5fc1a3..e28e68f 100644
--- a/arch/arm/boot/dts/armada-xp-db.dts
+++ b/arch/arm/boot/dts/armada-xp-db.dts
@@ -31,6 +31,7 @@
 
 	soc {
 		ranges = <0          0 0xd0000000 0x100000	/* Internal registers 1MiB */
+			  0xe0000000 0 0xe0000000 0x8100000     /* PCIe */
 			  0xf0000000 0 0xf0000000 0x1000000>;	/* Device Bus, NOR 16MiB   */
 
 		internal-regs {
diff --git a/arch/arm/boot/dts/armada-xp-gp.dts b/arch/arm/boot/dts/armada-xp-gp.dts
index 0a04070..c87b2de 100644
--- a/arch/arm/boot/dts/armada-xp-gp.dts
+++ b/arch/arm/boot/dts/armada-xp-gp.dts
@@ -39,8 +39,9 @@
 	};
 
 	soc {
-		ranges = <0          0 0xd0000000 0x100000
-			  0xf0000000 0 0xf0000000 0x1000000>;
+		ranges = <0          0 0xd0000000 0x100000  /* Internal registers 1MiB */
+			  0xe0000000 0 0xe0000000 0x8100000 /* PCIe */
+			  0xf0000000 0 0xf0000000 0x1000000 /* Device Bus, NOR 16MiB  */>;
 
 		internal-regs {
 			serial at 12000 {
diff --git a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
index 685ee7a..8f51045 100644
--- a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
+++ b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
@@ -27,8 +27,9 @@
 	};
 
 	soc {
-		ranges = <0          0 0xd0000000 0x100000
-			  0xf0000000 0 0xf0000000 0x8000000>;
+		ranges = <0          0 0xd0000000 0x100000	/* Internal registers 1MiB */
+			  0xe0000000 0 0xe0000000 0x8100000     /* PCIe */
+			  0xf0000000 0 0xf0000000 0x8000000     /* Device Bus, NOR 128MiB   */>;
 
 		internal-regs {
 			serial at 12000 {
-- 
1.8.1.2

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

* [PATCH] arm: mvebu: ensure PCIe range is propagated in the .dts files
  2013-06-06  9:21 ` [PATCH] arm: mvebu: ensure PCIe range is propagated in the .dts files Thomas Petazzoni
@ 2013-06-06 18:11   ` Jason Cooper
  2013-06-06 19:03     ` Jason Cooper
  0 siblings, 1 reply; 7+ messages in thread
From: Jason Cooper @ 2013-06-06 18:11 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jun 06, 2013 at 11:21:23AM +0200, Thomas Petazzoni wrote:
> The ranges DT entry needed by the PCIe controller is defined at the
> SoC .dtsi level. However, some boards have a NOR flash, and to support
> it, they need to override the SoC-level ranges property to add an
> additional range. Since PCIe and NOR support came separately, some
> boards were not properly changed to include the PCIe range in their
> ranges property at the .dts level.
> 
> This commit fixes those platforms.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---

Can you split this in to two patches, please:

>  arch/arm/boot/dts/armada-xp-db.dts               | 1 +

one for mvebu/dt

>  arch/arm/boot/dts/armada-xp-gp.dts               | 5 +++--
>  arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts | 5 +++--

and one for mvebu/fixes?

thx,

Jason.

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

* [PATCH] arm: mvebu: ensure PCIe range is propagated in the .dts files
  2013-06-06 18:11   ` Jason Cooper
@ 2013-06-06 19:03     ` Jason Cooper
  2013-06-07  8:32       ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Jason Cooper @ 2013-06-06 19:03 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jun 06, 2013 at 02:11:59PM -0400, Jason Cooper wrote:
> On Thu, Jun 06, 2013 at 11:21:23AM +0200, Thomas Petazzoni wrote:
> > The ranges DT entry needed by the PCIe controller is defined at the
> > SoC .dtsi level. However, some boards have a NOR flash, and to support
> > it, they need to override the SoC-level ranges property to add an
> > additional range. Since PCIe and NOR support came separately, some
> > boards were not properly changed to include the PCIe range in their
> > ranges property at the .dts level.
> > 
> > This commit fixes those platforms.
> > 
> > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> > ---
> 
> Can you split this in to two patches, please:
> 
> >  arch/arm/boot/dts/armada-xp-db.dts               | 1 +
> 
> one for mvebu/dt
> 
> >  arch/arm/boot/dts/armada-xp-gp.dts               | 5 +++--
> >  arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts | 5 +++--
> 
> and one for mvebu/fixes?

Nevermind, I've got a few minutes and would like to get it in for the
last -next this week.

thx,

Jason.

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

* [PATCH] arm: mvebu: ensure PCIe range is propagated in the .dts files
  2013-06-06 19:03     ` Jason Cooper
@ 2013-06-07  8:32       ` Thomas Petazzoni
  2013-06-07 14:44         ` Jason Cooper
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2013-06-07  8:32 UTC (permalink / raw)
  To: linux-arm-kernel

Dear Jason Cooper,

On Thu, 6 Jun 2013 15:03:21 -0400, Jason Cooper wrote:

> > Can you split this in to two patches, please:
> > 
> > >  arch/arm/boot/dts/armada-xp-db.dts               | 1 +
> > 
> > one for mvebu/dt
> > 
> > >  arch/arm/boot/dts/armada-xp-gp.dts               | 5 +++--
> > >  arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts | 5 +++--
> > 
> > and one for mvebu/fixes?
> 
> Nevermind, I've got a few minutes and would like to get it in for the
> last -next this week.

I must admit I don't quite get why the patch had to be split. The three
chunks do exactly the same thing for the three boards.

The only difference is that the part touching armada-xp-gp and
armada-xp-openblocks-ax3-4 was also adding some comments for each
range, while the one for armada-xp-db didn't had to do it because the
comments were already there.

So really, the armada-xp-db change is as much of a "fix" than the two
other changes.

To be honest, as long as they all go in 3.11, I'm fine, but I'm just
curious as to why it would have had to be split.

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] 7+ messages in thread

* [PATCH] arm: mvebu: ensure PCIe range is propagated in the .dts files
  2013-06-07  8:32       ` Thomas Petazzoni
@ 2013-06-07 14:44         ` Jason Cooper
  2013-06-07 15:26           ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Jason Cooper @ 2013-06-07 14:44 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Jun 07, 2013 at 10:32:41AM +0200, Thomas Petazzoni wrote:
> Dear Jason Cooper,
> 
> On Thu, 6 Jun 2013 15:03:21 -0400, Jason Cooper wrote:
> 
> > > Can you split this in to two patches, please:
> > > 
> > > >  arch/arm/boot/dts/armada-xp-db.dts               | 1 +
> > > 
> > > one for mvebu/dt
> > > 
> > > >  arch/arm/boot/dts/armada-xp-gp.dts               | 5 +++--
> > > >  arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts | 5 +++--
> > > 
> > > and one for mvebu/fixes?
> > 
> > Nevermind, I've got a few minutes and would like to get it in for the
> > last -next this week.
> 
> I must admit I don't quite get why the patch had to be split. The three
> chunks do exactly the same thing for the three boards.

The _only_ purpose of for-next is to do integration testing against what
everyone else has going on for the merge window.  There will never be a
pull request for it.  As such, no patches ever get directly applied on
top of it.  They need to go against an appropriate branch.

> The only difference is that the part touching armada-xp-gp and
> armada-xp-openblocks-ax3-4 was also adding some comments for each
> range, while the one for armada-xp-db didn't had to do it because the
> comments were already there.
> 
> So really, the armada-xp-db change is as much of a "fix" than the two
> other changes.
> 
> To be honest, as long as they all go in 3.11, I'm fine, but I'm just
> curious as to why it would have had to be split.

the patches in mvebu/fixes:

  8eed481 arm: mvebu: fix the 'ranges' property to handle PCIe
  c6c003a ARM: mvebu: Fix ranges entry on XP GP board
  00ed4a0 ARM: mvebu: Add a ranges entry to translate devbus childs

added the ranges property for openblocks-ax3-4, and the gp, but nothing
for the db.  The patch

  b484ff4 ARM: mvebu: Add support for NOR flash device on Armada XP-DB board

went into mvebu/dt because it was adding new capability.

So the choices are to make mvebu/dt depend on mvebu/fixes because of
your patch, or to split the patch because there is no real dependency
between the two changes.

hth,

Jason.

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

* [PATCH] arm: mvebu: ensure PCIe range is propagated in the .dts files
  2013-06-07 14:44         ` Jason Cooper
@ 2013-06-07 15:26           ` Thomas Petazzoni
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2013-06-07 15:26 UTC (permalink / raw)
  To: linux-arm-kernel

Dear Jason Cooper,

On Fri, 7 Jun 2013 10:44:06 -0400, Jason Cooper wrote:

> the patches in mvebu/fixes:
> 
>   8eed481 arm: mvebu: fix the 'ranges' property to handle PCIe
>   c6c003a ARM: mvebu: Fix ranges entry on XP GP board
>   00ed4a0 ARM: mvebu: Add a ranges entry to translate devbus childs
> 
> added the ranges property for openblocks-ax3-4, and the gp, but nothing
> for the db.  The patch
> 
>   b484ff4 ARM: mvebu: Add support for NOR flash device on Armada XP-DB board
> 
> went into mvebu/dt because it was adding new capability.
> 
> So the choices are to make mvebu/dt depend on mvebu/fixes because of
> your patch, or to split the patch because there is no real dependency
> between the two changes.

Ah, ok. That makes sense now. 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] 7+ messages in thread

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-06  9:21 [PATCH] Minor fix for jcooper/for-next Thomas Petazzoni
2013-06-06  9:21 ` [PATCH] arm: mvebu: ensure PCIe range is propagated in the .dts files Thomas Petazzoni
2013-06-06 18:11   ` Jason Cooper
2013-06-06 19:03     ` Jason Cooper
2013-06-07  8:32       ` Thomas Petazzoni
2013-06-07 14:44         ` Jason Cooper
2013-06-07 15:26           ` Thomas Petazzoni

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).