Skip to contentSkip to conversation

updates for Keymile Marvell boards

PATCH Superseded Holger Brunck 5 participants 40 messages Jun 13, 2012 – Jul 5, 2012

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover updates for Keymile Marvell boards

Updated after some comments on the Mailing list.

#1 lore raw

PATCH v2 1/14 arm/km: add kmnusa board support

This board is similar to portl2, but it has the u-boot environment in a SPI NOR flash and not in an i2c eeprom like portl2 have.

Some other details:
- IVM EEPROM is at adress: pca9547:70:9
- PCI is enabled
- PIGGY4 is connected via MV88E6352 simple switch. There is no phy between the simple switch and the kirkwood.

---
changes for v2:
- rename 128M16-1.cfg to kwbimage_128M16_1.cfg

 MAINTAINERS                                |    1 +
 board/keymile/km_arm/km_arm.c              |    9 +-
 board/keymile/km_arm/kwbimage_128M16_1.cfg |  296 ++++++++++++++++++++++++++++
 boards.cfg                                 |    1 +
 include/configs/km/km_arm.h                |   44 ++++-
 include/configs/km_kirkwood.h              |   67 ++++++-
 6 files changed, 394 insertions(+), 24 deletions(-)
 create mode 100644 board/keymile/km_arm/kwbimage_128M16_1.cfg
MAINTAINERS +1 -0
index 0445539..aa11268 100644
@@ -738,6 +738,7 @@ Sergey Lapin <[email protected]>
 Valentin Longchamp <[email protected]>
 
 	km_kirkwood	ARM926EJS (Kirkwood SoC)
+	kmnusa		ARM926EJS (Kirkwood SoC)
 	mgcoge3un	ARM926EJS (Kirkwood SoC)
 	portl2		ARM926EJS (Kirkwood SoC)
 
board/keymile/km_arm/km_arm.c +5 -4
index cb3402b..421ee5a 100644
@@ -134,10 +134,11 @@ int startup_allowed(void)
 }
 #endif
 
-#if (defined(CONFIG_MGCOGE3UN)|defined(CONFIG_PORTL2))
+#if (defined(CONFIG_MGCOGE3UN)|defined(CONFIG_PORTL2)| \
+	defined(CONFIG_KM_PIGGY4_88E6352))
 /*
- * These two boards have always ethernet present. Its connected to the mv
- * switch.
+ * All boards with PIGGY4 connected via a simple switch have ethernet always
+ * present.
  */
 int ethernet_present(void)
 {
@@ -351,7 +352,7 @@ void reset_phy(void)
 	/* reset the phy */
 	miiphy_reset(name, CONFIG_PHY_BASE_ADR);
 }
-#else
+#elif !defined(CONFIG_KM_PIGGY4_88E6352)
 /* Configure and enable MV88E1118 PHY on the piggy*/
 void reset_phy(void)
 {
board/keymile/km_arm/kwbimage_128M16_1.cfg new file +296 -0

296 lines not on this page · raw message

boards.cfg +1 -0
index b711e0d..1a4c2ad 100644
@@ -140,6 +140,7 @@ pogo_e02                     arm         arm926ejs   -                   clouden
 dns325                       arm         arm926ejs   -                   d-link         kirkwood
 km_kirkwood                  arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD,KM_DISABLE_PCI
 km_kirkwood_pci              arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD_PCI,KM_RECONFIG_XLX
+kmnusa                       arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_NUSA
 mgcoge3un                    arm         arm926ejs   km_arm              keymile        kirkwood
 portl2                       arm         arm926ejs   km_arm              keymile        kirkwood
 inetspace_v2                 arm         arm926ejs   netspace_v2         LaCie          kirkwood	lacie_kw:INETSPACE_V2
include/configs/km/km_arm.h +35 -9

75 lines not on this page · raw message

include/configs/km_kirkwood.h +56 -11

87 lines not on this page · raw message

Signature · 1 line
1.7.1
#2 lore raw

PATCH v2 2/14 arm/km: add kmcoge5un board support

In reply to Holger Brunck

For u-boot this board is similar to mgcoge3un. But some differences are present. We have a different SDRAM on it and therefore a new SDRAM config file. Additionaly this board has a direct MAC/MAC connection from the kirkwood to a marvell simple switch without a phy inbetween, this needs a new configuration for the mvgbe driver. The testpin was inverted compared to other km_kirkwood boards, this is the reason we need the change in post_hotkeys_pressed.

---
changes for v2:
- rename KMCOGE5UN to KM_COGE5UN
- rename 256M8-1.cfg -> kwbimage_256M8_1.cfg
- squash 17/20 arm/km: fix testpin detection for kmcoge5un into this commit because it should come with the board support patch

 MAINTAINERS                               |    1 +
 board/keymile/km_arm/km_arm.c             |    4 +
 board/keymile/km_arm/kwbimage_256M8_1.cfg |  296 +++++++++++++++++++++++++++++
 boards.cfg                                |    1 +
 include/configs/km_kirkwood.h             |   16 ++-
 5 files changed, 316 insertions(+), 2 deletions(-)
 create mode 100644 board/keymile/km_arm/kwbimage_256M8_1.cfg
MAINTAINERS +1 -0
index aa11268..ef57cd6 100644
@@ -740,6 +740,7 @@ Valentin Longchamp <[email protected]>
 	km_kirkwood	ARM926EJS (Kirkwood SoC)
 	kmnusa		ARM926EJS (Kirkwood SoC)
 	mgcoge3un	ARM926EJS (Kirkwood SoC)
+	kmcoge5un	ARM926EJS (Kirkwood SoC)
 	portl2		ARM926EJS (Kirkwood SoC)
 
 Nishanth Menon <[email protected]>
board/keymile/km_arm/km_arm.c +4 -0
index 421ee5a..b1e4178 100644
@@ -457,7 +457,11 @@ int get_scl(void)
 
 int post_hotkeys_pressed(void)
 {
+#if defined(CONFIG_KMCOGE5UN)
+	return kw_gpio_get_value(KM_POST_EN_L);
+#else
 	return !kw_gpio_get_value(KM_POST_EN_L);
+#endif
 }
 
 ulong post_word_load(void)
board/keymile/km_arm/kwbimage_256M8_1.cfg new file +296 -0

296 lines not on this page · raw message

boards.cfg +1 -0
index 1a4c2ad..6b3ca89 100644
@@ -142,6 +142,7 @@ km_kirkwood                  arm         arm926ejs   km_arm              keymile
 km_kirkwood_pci              arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD_PCI,KM_RECONFIG_XLX
 kmnusa                       arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_NUSA
 mgcoge3un                    arm         arm926ejs   km_arm              keymile        kirkwood
+kmcoge5un                    arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_COGE5UN
 portl2                       arm         arm926ejs   km_arm              keymile        kirkwood
 inetspace_v2                 arm         arm926ejs   netspace_v2         LaCie          kirkwood	lacie_kw:INETSPACE_V2
 net2big_v2                   arm         arm926ejs   net2big_v2          LaCie          kirkwood	lacie_kw:NET2BIG_V2
include/configs/km_kirkwood.h +14 -2
index 34dd0a6..d839a02 100644
@@ -39,15 +39,18 @@
 
 #if defined(CONFIG_KM_KIRKWOOD)
 #define CONFIG_IDENT_STRING		"\nKeymile Kirkwood"
+#define CONFIG_HOSTNAME			km_kirkwood
 #undef  CONFIG_KIRKWOOD_PCIE_INIT
 #define KM_IVM_BUS			"pca9544a:70:9"	/* I2C2 (Mux-Port 1)*/
 #elif defined(CONFIG_KM_KIRKWOOD_PCI)
 #define CONFIG_IDENT_STRING		"\nKeymile Kirkwood PCI"
+#define CONFIG_HOSTNAME			km_kirkwood_pci
 #define KM_IVM_BUS			"pca9544a:70:9"	/* I2C2 (Mux-Port 1)*/
 /* KM_NUSA */
 #elif defined(CONFIG_KM_NUSA)
 #define KM_IVM_BUS			"pca9547:70:9"	/* I2C2 (Mux-Port 1)*/
 #define CONFIG_IDENT_STRING		"\nKeymile NUSA"
+#define CONFIG_HOSTNAME			kmnusa
 #undef CONFIG_SYS_KWD_CONFIG
 #define CONFIG_SYS_KWD_CONFIG \
 		$(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage_128M16_1.cfg
@@ -55,6 +58,17 @@
 #define CONFIG_KM_FPGA_CONFIG
 #define CONFIG_KM_PIGGY4_88E6352
 
+#elif defined(CONFIG_KM_COGE5UN)
+#define CONFIG_IDENT_STRING		"\nKeymile COGE5UN"
+#define KM_IVM_BUS			"pca9547:70:9"	/* I2C2 (Mux-Port 1)*/
+#undef	CONFIG_SYS_KWD_CONFIG
+#define CONFIG_SYS_KWD_CONFIG \
+		$(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage_256M8_1.cfg
+#define CONFIG_KM_ENV_IS_IN_SPI_NOR
+#define CONFIG_PIGGY_MAC_ADRESS_OFFSET	3
+#define CONFIG_HOSTNAME			kmcoge5un
+#define CONFIG_KM_DISABLE_PCIE
+#define CONFIG_KM_PIGGY4_88E6352
 #else
 #error ("Board unsupported")
 #endif
@@ -62,8 +76,6 @@
 /* include common defines/options for all arm based Keymile boards */
 #include "km/km_arm.h"
 
-#define CONFIG_HOSTNAME			km_kirkwood
-
 #ifndef CONFIG_KM_ENV_IS_IN_SPI_NOR
 #define KM_ENV_BUS	"pca9544a:70:d"	/* I2C2 (Mux-Port 5)*/
 #endif
Signature · 1 line
1.7.1
#3 lore raw

PATCH v2 2/14 arm/km: add kmcoge5un board support

Dear Holger

Quoted 29 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 13 June 2012 19:03
To: u-boot at lists.denx.de
Cc: Holger Brunck; Valentin Longchamp; Prafulla Wadaskar; Thomas Herzmann
Subject: [PATCH v2 02/14] arm/km: add kmcoge5un board support

For u-boot this board is similar to mgcoge3un. But some differences are present. We have a different SDRAM on it and therefore a new SDRAM config file. Additionaly this board has a direct MAC/MAC connection from the kirkwood to a marvell simple switch without a phy inbetween, this needs a new configuration for the mvgbe driver. The testpin was inverted compared to other km_kirkwood boards, this is the reason we need the change in post_hotkeys_pressed.

---
changes for v2:
- rename KMCOGE5UN to KM_COGE5UN
- rename 256M8-1.cfg -> kwbimage_256M8_1.cfg
- squash 17/20 arm/km: fix testpin detection for kmcoge5un into this commit because it should come with the board support patch

Quoted 4 lines
 MAINTAINERS                               |    1 +
 board/keymile/km_arm/km_arm.c             |    4 +
 board/keymile/km_arm/kwbimage_256M8_1.cfg |  296

+++++++++++++++++++++++++++++

There is anther file coming in patch 01/14 i.e. board/keymile/km_arm/kwbimage_128M16_1.cfg | 296 ++++++++++++++++++++++++++++

I think the change is only RAM size supported, this must be effectively managed using post-configuration in the function board_early_init_f()

Regards..
Prafulla . . .

#4 lore raw

PATCH v2 2/14 arm/km: add kmcoge5un board support

Quoted 36 lines · Prafulla Wadaskar

Dear Holger

Quoted 29 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 13 June 2012 19:03
To: u-boot at lists.denx.de
Cc: Holger Brunck; Valentin Longchamp; Prafulla Wadaskar; Thomas Herzmann
Subject: [PATCH v2 02/14] arm/km: add kmcoge5un board support

For u-boot this board is similar to mgcoge3un. But some differences are present. We have a different SDRAM on it and therefore a new SDRAM config file. Additionaly this board has a direct MAC/MAC connection from the kirkwood to a marvell simple switch without a phy inbetween, this needs a new configuration for the mvgbe driver. The testpin was inverted compared to other km_kirkwood boards, this is the reason we need the change in post_hotkeys_pressed.

---
changes for v2:
- rename KMCOGE5UN to KM_COGE5UN
- rename 256M8-1.cfg -> kwbimage_256M8_1.cfg
- squash 17/20 arm/km: fix testpin detection for kmcoge5un into this commit because it should come with the board support patch

Quoted 4 lines
 MAINTAINERS                               |    1 +
 board/keymile/km_arm/km_arm.c             |    4 +
 board/keymile/km_arm/kwbimage_256M8_1.cfg |  296

+++++++++++++++++++++++++++++

Quoted 6 lines

There is anther file coming in patch 01/14 i.e. board/keymile/km_arm/kwbimage_128M16_1.cfg | 296 ++++++++++++++++++++++++++++

I think the change is only RAM size supported, this must be effectively managed using post-configuration in the function board_early_init_f()

no the SDRAM size isn't the only difference. If you had a look at these files there are also differences for other SDRAM controller register e.g. for DDR timing. So I see no chance for an improvement here.

Regards
Holger

#5 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

In reply to Holger Brunck

Use the generic header km_kirkwood.h and get rid of the board specific header.

---
changes for v2:
- rebased because of changes in other patches

 board/keymile/km_arm/km_arm.c |    9 ++--
 boards.cfg                    |    2 +-
 include/configs/km_kirkwood.h |   46 +++++++++++++++++++++
 include/configs/mgcoge3un.h   |   87 -----------------------------------------
 4 files changed, 51 insertions(+), 93 deletions(-)
 delete mode 100644 include/configs/mgcoge3un.h
board/keymile/km_arm/km_arm.c +4 -5
index b1e4178..09a9538 100644
@@ -114,7 +114,7 @@ u32 kwmpp_config[] = {
 	0
 };
 
-#if defined(CONFIG_MGCOGE3UN)
+#if defined(CONFIG_KM_MGCOGE3UN)
 /*
  * Wait for startup OK from mgcoge3ne
  */
@@ -134,8 +134,7 @@ int startup_allowed(void)
 }
 #endif
 
-#if (defined(CONFIG_MGCOGE3UN)|defined(CONFIG_PORTL2)| \
-	defined(CONFIG_KM_PIGGY4_88E6352))
+#if (defined(CONFIG_KM_PIGGY4_88E6061)|defined(CONFIG_KM_PIGGY4_88E6352))
 /*
  * All boards with PIGGY4 connected via a simple switch have ethernet always
  * present.
@@ -203,7 +202,7 @@ int misc_init_r(void)
 		printf("Overwriting MACH_TYPE with %d!!!\n", mach_type);
 		gd->bd->bi_arch_number = mach_type;
 	}
-#if defined(CONFIG_MGCOGE3UN)
+#if defined(CONFIG_KM_MGCOGE3UN)
 	char *wait_for_ne;
 	wait_for_ne = getenv("waitforne");
 	if (wait_for_ne != NULL) {
@@ -318,7 +317,7 @@ void dram_init_banksize(void)
 	}
 }
 
-#if (defined(CONFIG_MGCOGE3UN)|defined(CONFIG_PORTL2))
+#if (defined(CONFIG_KM_MGCOGE3UN)|defined(CONFIG_PORTL2))
 
 #define	PHY_LED_SEL	0x18
 #define PHY_LED0_LINK	(0x5)
boards.cfg +1 -1
index 6b3ca89..47d384e 100644
@@ -141,7 +141,7 @@ dns325                       arm         arm926ejs   -                   d-link
 km_kirkwood                  arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD,KM_DISABLE_PCI
 km_kirkwood_pci              arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD_PCI,KM_RECONFIG_XLX
 kmnusa                       arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_NUSA
-mgcoge3un                    arm         arm926ejs   km_arm              keymile        kirkwood
+mgcoge3un                    arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_MGCOGE3UN
 kmcoge5un                    arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_COGE5UN
 portl2                       arm         arm926ejs   km_arm              keymile        kirkwood
 inetspace_v2                 arm         arm926ejs   netspace_v2         LaCie          kirkwood	lacie_kw:INETSPACE_V2
include/configs/km_kirkwood.h +46 -0

59 lines not on this page · raw message

include/configs/mgcoge3un.h deleted +0 -87

87 lines not on this page · raw message

Signature · 1 line
1.7.1
#6 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 20 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 13 June 2012 19:03
To: u-boot at lists.denx.de
Cc: Holger Brunck; Valentin Longchamp; Prafulla Wadaskar
Subject: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Use the generic header km_kirkwood.h and get rid of the board specific header.

---
changes for v2:
- rebased because of changes in other patches

Quoted 7 lines
 board/keymile/km_arm/km_arm.c |    9 ++--
 boards.cfg                    |    2 +-
 include/configs/km_kirkwood.h |   46 +++++++++++++++++++++
 include/configs/mgcoge3un.h   |   87 --------------------------------
---------
 4 files changed, 51 insertions(+), 93 deletions(-)
 delete mode 100644 include/configs/mgcoge3un.h

This patch makes sense to me since it since it shrinks overall code. Doe not have dependency in patch series, can be accepted if outside the series.

Regards...
Prafulla . . .

#7 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Hi Prafulla,

Quoted 28 lines · Prafulla Wadaskar
Quoted 20 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 13 June 2012 19:03
To: u-boot at lists.denx.de
Cc: Holger Brunck; Valentin Longchamp; Prafulla Wadaskar
Subject: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Use the generic header km_kirkwood.h and get rid of the board specific header.

---
changes for v2:
- rebased because of changes in other patches

Quoted 7 lines
 board/keymile/km_arm/km_arm.c |    9 ++--
 boards.cfg                    |    2 +-
 include/configs/km_kirkwood.h |   46 +++++++++++++++++++++
 include/configs/mgcoge3un.h   |   87 --------------------------------
---------
 4 files changed, 51 insertions(+), 93 deletions(-)
 delete mode 100644 include/configs/mgcoge3un.h
Quoted 3 lines

This patch makes sense to me since it since it shrinks overall code. Doe not have dependency in patch series, can be accepted if outside the series.

again, but there are a lot of dependencies between 01-02 and 03-04 because all doing a lot in km_kirkwood.h. So do you have any particular objections against the first two patches, beside your input for the kwbimage.cfg which I answered in a different mail?

Regards
Holger

#8 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 47 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 03 July 2012 16:08
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Hi Prafulla,

Quoted 20 lines · Prafulla Wadaskar
Quoted 20 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 13 June 2012 19:03
To: u-boot at lists.denx.de
Cc: Holger Brunck; Valentin Longchamp; Prafulla Wadaskar
Subject: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Use the generic header km_kirkwood.h and get rid of the board specific header.

---
changes for v2:
- rebased because of changes in other patches

Quoted 4 lines
Quoted 4 lines
 board/keymile/km_arm/km_arm.c |    9 ++--
 boards.cfg                    |    2 +-
 include/configs/km_kirkwood.h |   46 +++++++++++++++++++++
 include/configs/mgcoge3un.h   |   87 -----------------------------

---

Quoted 6 lines
Quoted 3 lines

---------

 4 files changed, 51 insertions(+), 93 deletions(-)
 delete mode 100644 include/configs/mgcoge3un.h

This patch makes sense to me since it since it shrinks overall code. Doe not have dependency in patch series, can be accepted if outside

the series.

Quoted 1 line
Quoted 7 lines

again, but there are a lot of dependencies between 01-02 and 03-04 because all
doing a lot in km_kirkwood.h. So do you have any particular objections against
the first two patches, beside your input for the kwbimage.cfg which I answered
in a different mail?

As I suggested earlier

You may have patch series for the bugfixes/improvements to the currently supported code.

You may have new board support as separate patch, if those have dependency, get it addressed first.

As such I do not have any objection about longer patch series but Generally having a long patch series requires longer time to be get pulled in.

Regards...
Prafulla . . .

#9 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 55 lines · Prafulla Wadaskar
Quoted 47 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 03 July 2012 16:08
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Hi Prafulla,

Quoted 20 lines · Prafulla Wadaskar
Quoted 20 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 13 June 2012 19:03
To: u-boot at lists.denx.de
Cc: Holger Brunck; Valentin Longchamp; Prafulla Wadaskar
Subject: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Use the generic header km_kirkwood.h and get rid of the board specific header.

---
changes for v2:
- rebased because of changes in other patches

Quoted 4 lines
Quoted 4 lines
 board/keymile/km_arm/km_arm.c |    9 ++--
 boards.cfg                    |    2 +-
 include/configs/km_kirkwood.h |   46 +++++++++++++++++++++
 include/configs/mgcoge3un.h   |   87 -----------------------------

---

Quoted 6 lines
Quoted 3 lines

---------

 4 files changed, 51 insertions(+), 93 deletions(-)
 delete mode 100644 include/configs/mgcoge3un.h

This patch makes sense to me since it since it shrinks overall code. Doe not have dependency in patch series, can be accepted if outside

the series.

Quoted 1 line
Quoted 7 lines

again, but there are a lot of dependencies between 01-02 and 03-04 because all
doing a lot in km_kirkwood.h. So do you have any particular objections against
the first two patches, beside your input for the kwbimage.cfg which I answered
in a different mail?

Quoted 9 lines

As I suggested earlier

You may have patch series for the bugfixes/improvements to the currently supported code.

You may have new board support as separate patch, if those have dependency, get it addressed first.

As such I do not have any objection about longer patch series but Generally having a long patch series requires longer time to be get pulled in.

so and when do you think to pull this in? AFAIK we are shortly before rc1. And I would like to see this in, everything was published before the merge window was closed and we have reacted on every input you gave. But we can't react on inputs which are not clearly stated.

So how do we proceed here to get this in for v2012.07? If I summarize the situation you don't have any particular objections against 01-08 of this series. So should I resend these eight patches as a standalone serie to get at least these patches in?

Regards
Holger

#10 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 93 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 03 July 2012 18:02
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Valentin Longchamp; albert.u.boot at aribaud.net
Subject: Re: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Quoted 23 lines · Prafulla Wadaskar
Quoted 23 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 03 July 2012 16:08
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Hi Prafulla,

Quoted 10 lines · Prafulla Wadaskar
Quoted 10 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 13 June 2012 19:03
To: u-boot at lists.denx.de
Cc: Holger Brunck; Valentin Longchamp; Prafulla Wadaskar
Subject: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Use the generic header km_kirkwood.h and get rid of the board specific header.

Signed-off-by Valentin Longchamp

<[email protected]>

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
cc Prafulla Wadaskar <[email protected]>

---
changes for v2:
- rebased because of changes in other patches

 board/keymile/km_arm/km_arm.c |    9 ++--
 boards.cfg                    |    2 +-
 include/configs/km_kirkwood.h |   46 +++++++++++++++++++++
 include/configs/mgcoge3un.h   |   87 ---------------------------

--

Quoted 6 lines
Quoted 6 lines

---

Quoted 5 lines
Quoted 3 lines

---------

 4 files changed, 51 insertions(+), 93 deletions(-)
 delete mode 100644 include/configs/mgcoge3un.h

This patch makes sense to me since it since it shrinks overall

code.

Quoted 1 line
Quoted 1 line
Quoted 1 line

Doe not have dependency in patch series, can be accepted if

outside

Quoted 8 lines
Quoted 8 lines

the series.

Quoted 1 line

again, but there are a lot of dependencies between 01-02 and 03-04 because all
doing a lot in km_kirkwood.h. So do you have any particular objections against
the first two patches, beside your input for the kwbimage.cfg which

I

Quoted 6 lines
Quoted 2 lines

answered
in a different mail?

As I suggested earlier

You may have patch series for the bugfixes/improvements to the

currently supported code.

Quoted 2 lines

You may have new board support as separate patch, if those have

dependency, get it addressed first.

Quoted 3 lines

As such I do not have any objection about longer patch series but Generally having a long patch series requires longer time to be get

pulled in.

Quoted 1 line

so and when do you think to pull this in? AFAIK we are shortly before rc1. And I
would like to see this in, everything was published before the merge window was
closed and we have reacted on every input you gave. But we can't react on inputs
which are not clearly stated.

Quoted 7 lines

So how do we proceed here to get this in for v2012.07? If I summarize the
situation you don't have any particular objections against 01-08 of this series.
So should I resend these eight patches as a standalone serie to get at least
these patches in?

Yes, Please send the patch series for bug fix and improvements ONLY, I will pull them ASAP.

The others we can converge soon.

Regards...
Prafulla . . .

#11 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 101 lines · Prafulla Wadaskar
Quoted 93 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 03 July 2012 18:02
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Valentin Longchamp; albert.u.boot at aribaud.net
Subject: Re: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Quoted 23 lines · Prafulla Wadaskar
Quoted 23 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 03 July 2012 16:08
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Hi Prafulla,

Quoted 10 lines · Prafulla Wadaskar
Quoted 10 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 13 June 2012 19:03
To: u-boot at lists.denx.de
Cc: Holger Brunck; Valentin Longchamp; Prafulla Wadaskar
Subject: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Use the generic header km_kirkwood.h and get rid of the board specific header.

Signed-off-by Valentin Longchamp

<[email protected]>

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
cc Prafulla Wadaskar <[email protected]>

---
changes for v2:
- rebased because of changes in other patches

 board/keymile/km_arm/km_arm.c |    9 ++--
 boards.cfg                    |    2 +-
 include/configs/km_kirkwood.h |   46 +++++++++++++++++++++
 include/configs/mgcoge3un.h   |   87 ---------------------------

--

Quoted 6 lines
Quoted 6 lines

---

Quoted 5 lines
Quoted 3 lines

---------

 4 files changed, 51 insertions(+), 93 deletions(-)
 delete mode 100644 include/configs/mgcoge3un.h

This patch makes sense to me since it since it shrinks overall

code.

Quoted 1 line
Quoted 1 line
Quoted 1 line

Doe not have dependency in patch series, can be accepted if

outside

Quoted 8 lines
Quoted 8 lines

the series.

Quoted 1 line

again, but there are a lot of dependencies between 01-02 and 03-04 because all
doing a lot in km_kirkwood.h. So do you have any particular objections against
the first two patches, beside your input for the kwbimage.cfg which

I

Quoted 6 lines
Quoted 2 lines

answered
in a different mail?

As I suggested earlier

You may have patch series for the bugfixes/improvements to the

currently supported code.

Quoted 2 lines

You may have new board support as separate patch, if those have

dependency, get it addressed first.

Quoted 3 lines

As such I do not have any objection about longer patch series but Generally having a long patch series requires longer time to be get

pulled in.

Quoted 1 line

so and when do you think to pull this in? AFAIK we are shortly before rc1. And I
would like to see this in, everything was published before the merge window was
closed and we have reacted on every input you gave. But we can't react on inputs
which are not clearly stated.

Quoted 7 lines

So how do we proceed here to get this in for v2012.07? If I summarize the
situation you don't have any particular objections against 01-08 of this series.
So should I resend these eight patches as a standalone serie to get at least
these patches in?

Quoted 4 lines

Yes, Please send the patch series for bug fix and improvements ONLY, I will pull them ASAP.

The others we can converge soon.

But 01-08 are not only bugfixes there are also two new boards in these patches. So will you pull these eight patches in if I post them again without 09-14?

Regards
Holger

#12 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 125 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 03 July 2012 18:31
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Valentin Longchamp; albert.u.boot at aribaud.net
Subject: Re: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Quoted 46 lines · Prafulla Wadaskar
Quoted 46 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 03 July 2012 18:02
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Valentin Longchamp; albert.u.boot at aribaud.net
Subject: Re: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Quoted 23 lines · Prafulla Wadaskar
Quoted 23 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 03 July 2012 16:08
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Hi Prafulla,

Quoted 10 lines · Prafulla Wadaskar
Quoted 10 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 13 June 2012 19:03
To: u-boot at lists.denx.de
Cc: Holger Brunck; Valentin Longchamp; Prafulla Wadaskar
Subject: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Use the generic header km_kirkwood.h and get rid of the board specific header.

Signed-off-by Valentin Longchamp

<[email protected]>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
cc Prafulla Wadaskar <[email protected]>

---
changes for v2:
- rebased because of changes in other patches

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
 board/keymile/km_arm/km_arm.c |    9 ++--
 boards.cfg                    |    2 +-
 include/configs/km_kirkwood.h |   46 +++++++++++++++++++++
 include/configs/mgcoge3un.h   |   87 -------------------------

--

Quoted 6 lines
Quoted 6 lines

--

Quoted 5 lines
Quoted 5 lines

---

Quoted 4 lines
Quoted 3 lines

---------

 4 files changed, 51 insertions(+), 93 deletions(-)
 delete mode 100644 include/configs/mgcoge3un.h
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

This patch makes sense to me since it since it shrinks overall

code.

Quoted 1 line
Quoted 1 line
Quoted 1 line

Doe not have dependency in patch series, can be accepted if

outside

Quoted 4 lines
Quoted 4 lines

the series.

Quoted 1 line

again, but there are a lot of dependencies between 01-02 and 03-

04

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

because all
doing a lot in km_kirkwood.h. So do you have any particular objections against
the first two patches, beside your input for the kwbimage.cfg

which

Quoted 6 lines
Quoted 6 lines

I

Quoted 5 lines
Quoted 2 lines

answered
in a different mail?

As I suggested earlier

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

You may have patch series for the bugfixes/improvements to the

currently supported code.

Quoted 2 lines

You may have new board support as separate patch, if those have

dependency, get it addressed first.

Quoted 3 lines

As such I do not have any objection about longer patch series but Generally having a long patch series requires longer time to be

get

Quoted 4 lines
Quoted 4 lines

pulled in.

Quoted 1 line

so and when do you think to pull this in? AFAIK we are shortly

before

Quoted 2 lines
Quoted 2 lines

rc1. And I
would like to see this in, everything was published before the

merge

Quoted 2 lines
Quoted 2 lines

window was
closed and we have reacted on every input you gave. But we can't

react

Quoted 4 lines
Quoted 4 lines

on inputs
which are not clearly stated.

So how do we proceed here to get this in for v2012.07? If I

summarize

Quoted 4 lines
Quoted 4 lines

the
situation you don't have any particular objections against 01-08 of this series.
So should I resend these eight patches as a standalone serie to get

at

Quoted 4 lines
Quoted 2 lines

least
these patches in?

Yes, Please send the patch series for bug fix and improvements ONLY,

I will pull them ASAP.

Quoted 1 line
Quoted 7 lines
Quoted 2 lines

The others we can converge soon.

But 01-08 are not only bugfixes there are also two new boards in these patches.
So will you pull these eight patches in if I post them again without 09-14?

Pls post bug fixes and improvement patches first those will be pulled faster.

Regards...
Prafulla . . .

#13 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 60 lines · Prafulla Wadaskar
Quoted 60 lines
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This patch makes sense to me since it since it shrinks overall

code.

Quoted 1 line
Quoted 1 line
Quoted 1 line

Doe not have dependency in patch series, can be accepted if

outside

Quoted 4 lines
Quoted 4 lines

the series.

Quoted 1 line

again, but there are a lot of dependencies between 01-02 and 03-

04

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

because all
doing a lot in km_kirkwood.h. So do you have any particular objections against
the first two patches, beside your input for the kwbimage.cfg

which

Quoted 6 lines
Quoted 6 lines

I

Quoted 5 lines
Quoted 2 lines

answered
in a different mail?

As I suggested earlier

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

You may have patch series for the bugfixes/improvements to the

currently supported code.

Quoted 2 lines

You may have new board support as separate patch, if those have

dependency, get it addressed first.

Quoted 3 lines

As such I do not have any objection about longer patch series but Generally having a long patch series requires longer time to be

get

Quoted 4 lines
Quoted 4 lines

pulled in.

Quoted 1 line

so and when do you think to pull this in? AFAIK we are shortly

before

Quoted 2 lines
Quoted 2 lines

rc1. And I
would like to see this in, everything was published before the

merge

Quoted 2 lines
Quoted 2 lines

window was
closed and we have reacted on every input you gave. But we can't

react

Quoted 4 lines
Quoted 4 lines

on inputs
which are not clearly stated.

So how do we proceed here to get this in for v2012.07? If I

summarize

Quoted 4 lines
Quoted 4 lines

the
situation you don't have any particular objections against 01-08 of this series.
So should I resend these eight patches as a standalone serie to get

at

Quoted 4 lines
Quoted 2 lines

least
these patches in?

Yes, Please send the patch series for bug fix and improvements ONLY,

I will pull them ASAP.

Quoted 3 lines

The others we can converge soon.

Quoted 7 lines
Quoted 4 lines

But 01-08 are not only bugfixes there are also two new boards in these patches.
So will you pull these eight patches in if I post them again without 09-14?

Pls post bug fixes and improvement patches first those will be pulled faster.

This was already done from my side:
http://lists.denx.de/pipermail/u-boot/2012-May/125219.html

Sorry Prafulla but I have admit that this whole discussion costs a lot of time which I do not have. We are moving in circles your last comment was already discussed several times e.g.:
http://lists.denx.de/pipermail/u-boot/2012-June/126081.html

So again you have no specific inputs of improvements for 01-08 right? All you rephrase are some general comments which are not very helpfull to improve our situation and to get our own board code into mainline.

We try to stick to every rule which is valid for u-boot development. But we can't stick to rules which are not clearly stated.

Regards
Holger

#14 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 90 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 03 July 2012 19:13
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Valentin Longchamp; albert.u.boot at aribaud.net; Detlev Zundel
Subject: Re: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Quoted 9 lines · Prafulla Wadaskar
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This patch makes sense to me since it since it shrinks overall

code.

Quoted 1 line
Quoted 1 line
Quoted 1 line

Doe not have dependency in patch series, can be accepted if

outside

Quoted 4 lines
Quoted 4 lines

the series.

Quoted 1 line

again, but there are a lot of dependencies between 01-02 and

03-

Quoted 12 lines
Quoted 12 lines

04

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

because all
doing a lot in km_kirkwood.h. So do you have any particular objections against
the first two patches, beside your input for the kwbimage.cfg

which

Quoted 6 lines
Quoted 6 lines

I

Quoted 5 lines
Quoted 2 lines

answered
in a different mail?

As I suggested earlier

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line

You may have patch series for the bugfixes/improvements to the

currently supported code.

Quoted 2 lines

You may have new board support as separate patch, if those have

dependency, get it addressed first.

Quoted 2 lines

As such I do not have any objection about longer patch series

but

Quoted 12 lines
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Generally having a long patch series requires longer time to be

get

Quoted 4 lines
Quoted 4 lines

pulled in.

Quoted 1 line

so and when do you think to pull this in? AFAIK we are shortly

before

Quoted 2 lines
Quoted 2 lines

rc1. And I
would like to see this in, everything was published before the

merge

Quoted 2 lines
Quoted 2 lines

window was
closed and we have reacted on every input you gave. But we can't

Quoted 8 lines
Quoted 8 lines

react

Quoted 4 lines
Quoted 4 lines

on inputs
which are not clearly stated.

So how do we proceed here to get this in for v2012.07? If I

summarize

Quoted 2 lines
Quoted 2 lines

the
situation you don't have any particular objections against 01-08

of

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

this series.
So should I resend these eight patches as a standalone serie to

get

Quoted 5 lines
Quoted 5 lines

at

Quoted 4 lines
Quoted 2 lines

least
these patches in?

Yes, Please send the patch series for bug fix and improvements

ONLY,

Quoted 6 lines
Quoted 6 lines

I will pull them ASAP.

Quoted 3 lines

The others we can converge soon.

But 01-08 are not only bugfixes there are also two new boards in

these

Quoted 2 lines
Quoted 2 lines

patches.
So will you pull these eight patches in if I post them again

without

Quoted 3 lines
Quoted 1 line

09-14?

Pls post bug fixes and improvement patches first those will be

pulled faster.

Quoted 1 line

This was already done from my side:
http://lists.denx.de/pipermail/u-boot/2012-May/125219.html

Quoted 6 lines

Sorry Prafulla but I have admit that this whole discussion costs a lot of time
which I do not have. We are moving in circles your last comment was already
discussed several times e.g.:
http://lists.denx.de/pipermail/u-boot/2012-June/126081.html

Dear Hogler

Do you think I should pull this patch series, I hope it applies cleanly on the recent master branch. Please confirm.

Quoted 6 lines

So again you have no specific inputs of improvements for 01-08 right? All you
rephrase are some general comments which are not very helpfull to improve our
situation and to get our own board code into mainline.

Well.. we can keep discussing patches here until all the patches in the patch series gets acked. This adds time/cost to the developer and reviewer too.
My old experience tells me that shorter is simpler and easier to accept.

I personally don't wish to hold any thing that sounds good to me. The idea is how the development can be shared across the community.

So I had certain questions in my mind about your development for which I don't want any answers. You can treat them as feedback for your future development.

1. Why do you modify the board parameters so frequently? I see several patches for these, cant you freeze all this well before posting board support patch?
2. Why do you use your own keymile-common.h, can't you migrate to use mv_common.h which mainly created for the same purpose?
3. When you support any generic peripheral can't you think of generic use case?

Quoted 4 lines

We try to stick to every rule which is valid for u-boot development. But we
can't stick to rules which are not clearly stated.

You better can have your own world, and maintain the code the way you want, not necessarily you need u-boot for this.

We both have different thinking hats :-D
In your view, your code is important to get mainlined, may be you don't care other things.
In my view, how any support can be added in simpler, shorter, reusable, cleaner way in-sync with development strategy. I am just trying to follow this. I might have done mistakes, I express grand SORRY for that :-(

I am always there to help everybody with my limited resources and time.

Regards...
Prafulla . . .

#15 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Dear Prafulla,

Quoted 3 lines · In message <[email protected]>…

Do you think I should pull this patch series, I hope it applies cleanly on the recent master branch. Please confirm.

I have to admit that I neither reviewed the patches in question, nor did I follow the whole thread of communication in this patch series. But the general rule is that if there are no strong argumentents against a patch (like a clear NAK or a specific request for changes) we will apply it.

Quoted 3 lines

1. Why do you modify the board parameters so frequently? I see several patches for these, cant you freeze all this well before posting board support patch?

Actually it's this question which triggered my reply. From a developer's point of view it makes a lot of sense to push patches upstream as soon as possible, to have at least the major bunch of code maintained with the mainline source tree, even if board configuration and other board specific code still needs to be changed.

We all complain frequently aboutquestions for obsolete code in some out-of-tree ports, so we should strongly support such early patch submissions, and not discourage it.

And frankly, as long as its strictly board specific code only, we don't even have to care if it works.

Quoted 2 lines

2. Why do you use your own keymile-common.h, can't you migrate to use mv_common.h which mainly created for the same purpose?

Probably for the same reasons: patches get submitted early, when configurationhas not stabilized yet, and it's much easier for all involved parties to change some board or vendor specific file instead of one that gets used for the whole architecture.

Quoted 9 lines

3. When you support any generic peripheral can't you think of generic use case?

Quoted 4 lines

We try to stick to every rule which is valid for u-boot development. But we
can't stick to rules which are not clearly stated.

You better can have your own world, and maintain the code the way you want, not necessarily you need u-boot for this.

I don't understand what you mean here. As a custodian you have a responsibility to support a submitter. Yes, this may include that you reject incorrect code, maybe even if it's only violating the Coing Style. But from what I've seen so far I think Keymile really strives hard to play by the rules.

If there are violations of any documented rules, then please say so clearly, and NAK the patch. If there are other things that should be fixed, where rules are not clear, then we should discuss the problem, the way how we would like to see this fixed, and document these new rules for future cases.

Quoted 2 lines

In your view, your code is important to get mainlined, may be you don't care other things.

In our view it is also important to get this code mainlined, as it is always important to help users to have their submissions mainlined. This is one of the major responsibilities of us maintainers to the community. If we were free to ignore the users, we would probably quickly be free of any community, too.

Quoted 3 lines

In my view, how any support can be added in simpler, shorter, reusable, cleaner way in-sync with development strategy. I am just trying to follow this.

The question is how many iterations really make sense. In this case there appear to have been too many already. If there are no clear, hard deficiencies in the code that need fixing, then I think we have to put an end to such dicussions earlier.

Quoted 3 lines

I might have done mistakes, I express grand SORRY for that :-(

I am always there to help everybody with my limited resources and time.

We all apprecate your efforts. Please don't misunderstand me, I don't intend to interfere with your job as a custodian here. You just happen to trigger my message whichis actually directed to all
custodians: please help to get patches accepted, for the sake of encouraging users to submit their code. If we frighten off such users, all sides lose - the users, and us.

Thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
As far as the laws of mathematics refer to reality, they are not cer-
tain, and as far as they are certain, they do not refer  to  reality.
                                                   -- Albert Einstein
#16 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 16 lines

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: 03 July 2012 23:31
To: Prafulla Wadaskar
Cc: Holger Brunck; u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [U-Boot] [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Dear Prafulla,

In message <F766E4F80769BD478052FB6533FA745D1A2FE3028D@SC-

Quoted 2 lines · VEXCH4.marvell.com> you wrote:

Do you think I should pull this patch series, I hope it applies

Quoted 8 lines

cleanly on the recent master branch.

Quoted 1 line

Please confirm.

I have to admit that I neither reviewed the patches in question, nor did I follow the whole thread of communication in this patch series. But the general rule is that if there are no strong argumentents against a patch (like a clear NAK or a specific request for changes) we will apply it.

Hi Wolfgang,
This patch series was too old, I was trying to save my effors ;-D Finally I pulled these patches and tried to apply, but as I doubted it failed :-(

Hi Hogler

I could not apply the said patch series to the latest u-boot-marvell.git master branch

Pls re-submit it.

git-am U-Boot-1-9-arm-km-add-board-type-to-boards.cfg.patch

Applying arm/km: add board type to boards.cfg

error: patch failed: boards.cfg:138
error: boards.cfg: patch does not apply
error: patch failed: include/configs/km_kirkwood.h:42
error: include/configs/km_kirkwood.h: patch does not apply Patch failed at 0001.
When you have resolved this problem run "git-am --resolved". If you would prefer to skip this patch, instead run "git-am --skip"

Regards..
Prafulla . . .

#17 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 39 lines · Prafulla Wadaskar
Quoted 16 lines

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: 03 July 2012 23:31
To: Prafulla Wadaskar
Cc: Holger Brunck; u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [U-Boot] [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Dear Prafulla,

In message <F766E4F80769BD478052FB6533FA745D1A2FE3028D@SC-

Quoted 2 lines · VEXCH4.marvell.com> you wrote:

Do you think I should pull this patch series, I hope it applies

Quoted 8 lines

cleanly on the recent master branch.

Quoted 1 line

Please confirm.

I have to admit that I neither reviewed the patches in question, nor did I follow the whole thread of communication in this patch series. But the general rule is that if there are no strong argumentents against a patch (like a clear NAK or a specific request for changes) we will apply it.

Hi Wolfgang,
This patch series was too old, I was trying to save my effors ;-D Finally I pulled these patches and tried to apply, but as I doubted it failed :-(

Hi Hogler

I could not apply the said patch series to the latest u-boot-marvell.git master branch

Pls re-submit it.

git-am U-Boot-1-9-arm-km-add-board-type-to-boards.cfg.patch

Applying arm/km: add board type to boards.cfg

Quoted 8 lines

error: patch failed: boards.cfg:138
error: boards.cfg: patch does not apply
error: patch failed: include/configs/km_kirkwood.h:42
error: include/configs/km_kirkwood.h: patch does not apply Patch failed at 0001.
When you have resolved this problem run "git-am --resolved". If you would prefer to skip this patch, instead run "git-am --skip"

sorry but now I am completely confused. Here you say you want to apply 01-09 which includes
[PATCH v2 05/14] arm/km: correct init of 88e6352 switch in the reset_phy function and
[PATCH v2 09/14] arm/km: add support for external switch configuration

this includes basic infrastructure for the managed switch.

In another thread you NAK the whole driver:
http://lists.denx.de/pipermail/u-boot/2012-July/127529.html

In a further different thread where I asked if I should provide updates which apply cleanly you say no there are general updates needed:
http://lists.denx.de/pipermail/u-boot/2012-July/127531.html

For me these statements are conflicting.

So can you please state clearly which updates you request from myside for which patch and which are from your point of view not acceptable and why? Thanks

Regards
Holger

#18 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 82 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 05 July 2012 11:24
To: Prafulla Wadaskar
Cc: Wolfgang Denk; u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [U-Boot] [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Quoted 12 lines · Prafulla Wadaskar
Quoted 12 lines

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: 03 July 2012 23:31
To: Prafulla Wadaskar
Cc: Holger Brunck; u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [U-Boot] [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Dear Prafulla,

Quoted 8 lines
Quoted 8 lines

In message <F766E4F80769BD478052FB6533FA745D1A2FE3028D@SC-

Quoted 2 lines · VEXCH4.marvell.com> you wrote:

Do you think I should pull this patch series, I hope it applies

cleanly on the recent master branch.

Quoted 1 line

Please confirm.

I have to admit that I neither reviewed the patches in question,

nor

Quoted 1 line
Quoted 1 line

did I follow the whole thread of communication in this patch

series.

Quoted 2 lines
Quoted 2 lines

But the general rule is that if there are no strong argumentents against a patch (like a clear NAK or a specific request for

changes)

Quoted 5 lines
Quoted 1 line

we will apply it.

Hi Wolfgang,
This patch series was too old, I was trying to save my effors ;-D Finally I pulled these patches and tried to apply, but as I doubted

it failed :-(

Quoted 4 lines

Hi Hogler

I could not apply the said patch series to the latest u-boot-

marvell.git master branch

Quoted 7 lines

Pls re-submit it.

git-am U-Boot-1-9-arm-km-add-board-type-to-boards.cfg.patch

Applying arm/km: add board type to boards.cfg

Quoted 8 lines

error: patch failed: boards.cfg:138
error: boards.cfg: patch does not apply
error: patch failed: include/configs/km_kirkwood.h:42
error: include/configs/km_kirkwood.h: patch does not apply Patch failed at 0001.
When you have resolved this problem run "git-am --resolved". If you would prefer to skip this patch, instead run "git-am --skip"

sorry but now I am completely confused. Here you say you want to apply 01-09
which includes
[PATCH v2 05/14] arm/km: correct init of 88e6352 switch in the reset_phy function
and
[PATCH v2 09/14] arm/km: add support for external switch configuration

this includes basic infrastructure for the managed switch.

In another thread you NAK the whole driver:
http://lists.denx.de/pipermail/u-boot/2012-July/127529.html

In a further different thread where I asked if I should provide updates which
apply cleanly you say no there are general updates needed:
http://lists.denx.de/pipermail/u-boot/2012-July/127531.html

Quoted 6 lines

For me these statements are conflicting.

So can you please state clearly which updates you request from myside for which
patch and which are from your point of view not acceptable and why? Thanks

Dear Holger

To avoid any further confusion let's keep aside all the past.
1. Pls post the new patch series that is just targeted for bugfixes and updates (no addition of new boards or drivers)
2. You may post anther patch series for addition of new boards which does not have any dependencies (if you have such)
3. You may post a standalone patch for a switch driver, needed ack from Joe, that might go to u-boot-net.git
4. You may post a board support patch using this switch.

#1,#2 I hope will be pulled faster, rest may take some time.

Regards...
Prafulla . . . .

#19 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 89 lines · Prafulla Wadaskar
Quoted 82 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 05 July 2012 11:24
To: Prafulla Wadaskar
Cc: Wolfgang Denk; u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [U-Boot] [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Quoted 12 lines · Prafulla Wadaskar
Quoted 12 lines

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: 03 July 2012 23:31
To: Prafulla Wadaskar
Cc: Holger Brunck; u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [U-Boot] [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Dear Prafulla,

Quoted 8 lines
Quoted 8 lines

In message <F766E4F80769BD478052FB6533FA745D1A2FE3028D@SC-

Quoted 2 lines · VEXCH4.marvell.com> you wrote:

Do you think I should pull this patch series, I hope it applies

cleanly on the recent master branch.

Quoted 1 line

Please confirm.

I have to admit that I neither reviewed the patches in question,

nor

Quoted 1 line
Quoted 1 line

did I follow the whole thread of communication in this patch

series.

Quoted 2 lines
Quoted 2 lines

But the general rule is that if there are no strong argumentents against a patch (like a clear NAK or a specific request for

changes)

Quoted 5 lines
Quoted 1 line

we will apply it.

Hi Wolfgang,
This patch series was too old, I was trying to save my effors ;-D Finally I pulled these patches and tried to apply, but as I doubted

it failed :-(

Quoted 4 lines

Hi Hogler

I could not apply the said patch series to the latest u-boot-

marvell.git master branch

Quoted 7 lines

Pls re-submit it.

git-am U-Boot-1-9-arm-km-add-board-type-to-boards.cfg.patch

Applying arm/km: add board type to boards.cfg

Quoted 8 lines

error: patch failed: boards.cfg:138
error: boards.cfg: patch does not apply
error: patch failed: include/configs/km_kirkwood.h:42
error: include/configs/km_kirkwood.h: patch does not apply Patch failed at 0001.
When you have resolved this problem run "git-am --resolved". If you would prefer to skip this patch, instead run "git-am --skip"

sorry but now I am completely confused. Here you say you want to apply 01-09
which includes
[PATCH v2 05/14] arm/km: correct init of 88e6352 switch in the reset_phy function
and
[PATCH v2 09/14] arm/km: add support for external switch configuration

this includes basic infrastructure for the managed switch.

In another thread you NAK the whole driver:
http://lists.denx.de/pipermail/u-boot/2012-July/127529.html

In a further different thread where I asked if I should provide updates which
apply cleanly you say no there are general updates needed:
http://lists.denx.de/pipermail/u-boot/2012-July/127531.html

Quoted 6 lines

For me these statements are conflicting.

So can you please state clearly which updates you request from myside for which
patch and which are from your point of view not acceptable and why? Thanks

Quoted 4 lines

Dear Holger

To avoid any further confusion let's keep aside all the past.
1. Pls post the new patch series that is just targeted for bugfixes and updates (no addition of new boards or drivers)

Ok so there are again no inputs to specific patches and no change request for a specific patch (beside the input to the managed switch). What you do is to rephrase a requirement for patch series in general. So there seems to be a rule that if you a) add new boards and b) cleanup and maintain existing boards in the same patch serie the patches needs to be in a special order. Please show me the pointer in u-boot guidlines to this if there is one. I know that such tasks should be seperated into different patches what this serie defenitely does. If not please discuss this as a new requirement with other custodians as Wolfgang suggested in the same thread. I don't think that such a requirement would be a benefit for board maintainers and custodians, because code maintaining and improvement is always a good thing. Your requirement in practice would mean, stop code maintaining for board series during the time you need to add new boards.

Quoted 2 lines

2. You may post anther patch series for addition of new boards which does not have any dependencies (if you have such)
3. You may post a standalone patch for a switch driver, needed ack from Joe, that might go to u-boot-net.git

Ok we can remove this very limited driver from the patch serie.

So what we can do is providing a patch serie where the driver for this managed switch is not in. But as far as I understood this does not be in accordance what you requested?

Regards
Holger

#20 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 9 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 05 July 2012 12:46
To: Prafulla Wadaskar
Cc: Wolfgang Denk; u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [U-Boot] [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

...snip...

Quoted 23 lines
Quoted 5 lines

Dear Holger

To avoid any further confusion let's keep aside all the past.
1. Pls post the new patch series that is just targeted for bugfixes

and updates (no addition of new boards or drivers)

Ok so there are again no inputs to specific patches and no change request for a
specific patch (beside the input to the managed switch). What you do is to
rephrase a requirement for patch series in general. So there seems to be a rule
that if you a) add new boards and b) cleanup and maintain existing boards in the
same patch serie the patches needs to be in a special order. Please show me the
pointer in u-boot guidlines to this if there is one. I know that such tasks
should be seperated into different patches what this serie defenitely does. If
not please discuss this as a new requirement with other custodians as Wolfgang

Quoted 8 lines

suggested in the same thread. I don't think that such a requirement would be a
benefit for board maintainers and custodians, because code maintaining and
improvement is always a good thing. Your requirement in practice would mean,
stop code maintaining for board series during the time you need to add new boards.

Dear Holger,

I think custodian should pull entire patch series if all the patches in the series are ACKED. If any patch within patch series is NACKED, the patch series does not stand valid to pull. Someone may correct me if I am wrong.

Quoted 6 lines
Quoted 2 lines

2. You may post anther patch series for addition of new boards which

does not have any dependencies (if you have such)

Quoted 1 line

3. You may post a standalone patch for a switch driver, needed ack

from Joe, that might go to u-boot-net.git

Quoted 7 lines

Ok we can remove this very limited driver from the patch serie.

So what we can do is providing a patch serie where the driver for this managed
switch is not in. But as far as I understood this does not be in accordance what
you requested?

Ideally, the answer is same as above. There will be no issues if all patches in the patch series are ACKED.

I always love smaller patch series specific to the objective.

Regards...
Prafulla . . .

#21 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 30 lines · Prafulla Wadaskar
Quoted 21 lines
Quoted 3 lines

To avoid any further confusion let's keep aside all the past.
1. Pls post the new patch series that is just targeted for bugfixes

and updates (no addition of new boards or drivers)

Ok so there are again no inputs to specific patches and no change request for a
specific patch (beside the input to the managed switch). What you do is to
rephrase a requirement for patch series in general. So there seems to be a rule
that if you a) add new boards and b) cleanup and maintain existing boards in the
same patch serie the patches needs to be in a special order. Please show me the
pointer in u-boot guidlines to this if there is one. I know that such tasks
should be seperated into different patches what this serie defenitely does. If
not please discuss this as a new requirement with other custodians as Wolfgang

Quoted 8 lines

suggested in the same thread. I don't think that such a requirement would be a
benefit for board maintainers and custodians, because code maintaining and
improvement is always a good thing. Your requirement in practice would mean,
stop code maintaining for board series during the time you need to add new boards.

Quoted 6 lines

Dear Holger,

I think custodian should pull entire patch series if all the patches in the series are ACKED. If any patch within patch series is NACKED, the patch series does not stand valid to pull. Someone may correct me if I am wrong.

yes of course this is a common rule. But what has this to do with my question above?

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

2. You may post anther patch series for addition of new boards which

does not have any dependencies (if you have such)

Quoted 1 line

3. You may post a standalone patch for a switch driver, needed ack

from Joe, that might go to u-boot-net.git

Ok we can remove this very limited driver from the patch serie.

Quoted 8 lines
Quoted 5 lines

So what we can do is providing a patch serie where the driver for this managed
switch is not in. But as far as I understood this does not be in accordance what
you requested?

Ideally, the answer is same as above. There will be no issues if all patches in the patch series are ACKED.

and whats the answer here on my question?

Again. You NAK the simple driver in our own board code. Ok. So the question here is if I remove the three patches which are concerning this driver. This are:
[U-Boot,v2,05/14] arm/km: correct init of 88e6352 switch in the reset_phy function [U-Boot,v2,09/14] arm/km: add support for external switch configuration [U-Boot,v2,10/14] arm/km: enable external switch configuration for kmnusa

And if I resend the remaining eleven patches in the same order as beneath these are:
[U-Boot,v2,01/14] arm/km: add kmnusa board support [U-Boot,v2,02/14] arm/km: add kmcoge5un board support [U-Boot,v2,03/14] arm/km: convert mgcoge3un target to km_kirkwood [U-Boot,v2,04/14] arm/km: remove portl2.h and use km_kirkwood instead [U-Boot,v2,06/14] arm/km: enable BOCO2 FPGA download support [U-Boot,v2,07/14] arm/km: cleanup km_kirkwood boards [U-Boot,v2,08/14] arm/km: redefine piggy 4 reg names to avoid conflicts [U-Boot,v2,11/14] arm/km: skip FPGA config when already configured [U-Boot,v2,12/14] arm/km: support the 2 PCIe fpga resets [U-Boot,v2,13/14] arm/km: add implementation for read_dip_switch [U-Boot,v2,14/14] arm/km: remove calls to kw_gpio_* in board_early_init_f

as another patch serie do you accept this?

We already have so many different patch series for this serie on patchwork that I want to be sure that I don't generate another one which will also be unacceptable. I think this is already reviewed. But if you have still other inputs then let me know and refer to the specific patch. Thanks.

Regards
Holger

#22 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 112 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 05 July 2012 19:14
To: Prafulla Wadaskar
Cc: Wolfgang Denk; u-boot at lists.denx.de; Valentin Longchamp
Subject: Re: [U-Boot] [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Quoted 3 lines · Prafulla Wadaskar
Quoted 3 lines
Quoted 3 lines

To avoid any further confusion let's keep aside all the past.
1. Pls post the new patch series that is just targeted for

bugfixes

Quoted 5 lines
Quoted 5 lines

and updates (no addition of new boards or drivers)

Ok so there are again no inputs to specific patches and no change request for a
specific patch (beside the input to the managed switch). What you

do

Quoted 2 lines
Quoted 2 lines

is to
rephrase a requirement for patch series in general. So there seems

to

Quoted 6 lines
Quoted 6 lines

be a rule
that if you a) add new boards and b) cleanup and maintain existing boards in the
same patch serie the patches needs to be in a special order. Please show me the
pointer in u-boot guidlines to this if there is one. I know that

such

Quoted 2 lines
Quoted 2 lines

tasks
should be seperated into different patches what this serie

defenitely

Quoted 2 lines
Quoted 2 lines

does. If
not please discuss this as a new requirement with other custodians

as

Quoted 4 lines
Quoted 4 lines

Wolfgang
suggested in the same thread. I don't think that such a requirement would be a
benefit for board maintainers and custodians, because code

maintaining

Quoted 2 lines
Quoted 2 lines

and
improvement is always a good thing. Your requirement in practice

would

Quoted 2 lines
Quoted 2 lines

mean,
stop code maintaining for board series during the time you need to

add

Quoted 5 lines
Quoted 1 line

new boards.

Dear Holger,

I think custodian should pull entire patch series if all the patches

in the series are ACKED.

Quoted 1 line

If any patch within patch series is NACKED, the patch series does

not stand valid to pull.

Quoted 2 lines

Someone may correct me if I am wrong.

yes of course this is a common rule. But what has this to do with my question above?

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

2. You may post anther patch series for addition of new boards

which

Quoted 7 lines
Quoted 7 lines

does not have any dependencies (if you have such)

Quoted 1 line

3. You may post a standalone patch for a switch driver, needed ack

from Joe, that might go to u-boot-net.git

Ok we can remove this very limited driver from the patch serie.

So what we can do is providing a patch serie where the driver for

this

Quoted 6 lines
Quoted 4 lines

managed
switch is not in. But as far as I understood this does not be in accordance what
you requested?

Ideally, the answer is same as above. There will be no issues if all

patches in the patch series are ACKED.

Quoted 1 line

and whats the answer here on my question?

Again. You NAK the simple driver in our own board code. Ok. So the question here
is if I remove the three patches which are concerning this driver. This are:
[U-Boot,v2,05/14] arm/km: correct init of 88e6352 switch in the reset_phy function
[U-Boot,v2,09/14] arm/km: add support for external switch configuration
[U-Boot,v2,10/14] arm/km: enable external switch configuration for kmnusa

And if I resend the remaining eleven patches in the same order as beneath
these are:
[U-Boot,v2,01/14] arm/km: add kmnusa board support [U-Boot,v2,02/14] arm/km: add kmcoge5un board support [U-Boot,v2,03/14] arm/km: convert mgcoge3un target to km_kirkwood [U-Boot,v2,04/14] arm/km: remove portl2.h and use km_kirkwood instead [U-Boot,v2,06/14] arm/km: enable BOCO2 FPGA download support [U-Boot,v2,07/14] arm/km: cleanup km_kirkwood boards [U-Boot,v2,08/14] arm/km: redefine piggy 4 reg names to avoid conflicts
[U-Boot,v2,11/14] arm/km: skip FPGA config when already configured [U-Boot,v2,12/14] arm/km: support the 2 PCIe fpga resets [U-Boot,v2,13/14] arm/km: add implementation for read_dip_switch [U-Boot,v2,14/14] arm/km: remove calls to kw_gpio_* in board_early_init_f

Quoted 1 line

as another patch serie do you accept this?

YES.

Quoted 7 lines

We already have so many different patch series for this serie on patchwork that
I want to be sure that I don't generate another one which will also be unacceptable. I think this is already reviewed. But if you have still other
inputs then let me know and refer to the specific patch. Thanks.

I don't have any further inputs.

Regards..
Prafulla . . .

#23 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 18 lines · Prafulla Wadaskar
Quoted 18 lines

And if I resend the remaining eleven patches in the same order as beneath
these are:
[U-Boot,v2,01/14] arm/km: add kmnusa board support [U-Boot,v2,02/14] arm/km: add kmcoge5un board support [U-Boot,v2,03/14] arm/km: convert mgcoge3un target to km_kirkwood [U-Boot,v2,04/14] arm/km: remove portl2.h and use km_kirkwood instead [U-Boot,v2,06/14] arm/km: enable BOCO2 FPGA download support [U-Boot,v2,07/14] arm/km: cleanup km_kirkwood boards [U-Boot,v2,08/14] arm/km: redefine piggy 4 reg names to avoid conflicts
[U-Boot,v2,11/14] arm/km: skip FPGA config when already configured [U-Boot,v2,12/14] arm/km: support the 2 PCIe fpga resets [U-Boot,v2,13/14] arm/km: add implementation for read_dip_switch [U-Boot,v2,14/14] arm/km: remove calls to kw_gpio_* in board_early_init_f

Quoted 4 lines
Quoted 1 line

as another patch serie do you accept this?

YES.

ok done.

Unfortunately after sending v3 I saw that already in v2 I introduced a bug during renaming the kwbimage.cfg in the first patch. I already sent a patch wich corrected this as a v4. But only this patch as v4 because the other ten patches don't need to be changed, because of this.

Regards
Holger

#24 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

In reply to Prafulla Wadaskar

Hi Prafulla,

Quoted 24 lines · Prafulla Wadaskar
Quoted 16 lines · Prafulla Wadaskar
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

But 01-08 are not only bugfixes there are also two new boards in

these

Quoted 2 lines
Quoted 2 lines

patches.
So will you pull these eight patches in if I post them again

without

Quoted 3 lines
Quoted 1 line

09-14?

Pls post bug fixes and improvement patches first those will be

pulled faster.

Quoted 1 line

This was already done from my side:
http://lists.denx.de/pipermail/u-boot/2012-May/125219.html

Quoted 6 lines

Sorry Prafulla but I have admit that this whole discussion costs a lot of time
which I do not have. We are moving in circles your last comment was already
discussed several times e.g.:
http://lists.denx.de/pipermail/u-boot/2012-June/126081.html

Quoted 3 lines

Do you think I should pull this patch series, I hope it applies cleanly on the recent master branch. Please confirm.

at time of submission it applied cleanly, now I see some merge conlicts due to some underlying changes in boards.cfg in your current master. But if you are now fine with the patch serie I can provide an update which applies cleanly again.

Quoted 11 lines
Quoted 6 lines

So again you have no specific inputs of improvements for 01-08 right? All you
rephrase are some general comments which are not very helpfull to improve our
situation and to get our own board code into mainline.

Well.. we can keep discussing patches here until all the patches in the patch series gets acked. This adds time/cost to the developer and reviewer too.
My old experience tells me that shorter is simpler and easier to accept.

yes I agree but if you add new boards and new features there is sometimes no chance to make everything small and simple.

Quoted 7 lines

I personally don't wish to hold any thing that sounds good to me. The idea is how the development can be shared across the community.

So I had certain questions in my mind about your development for which I don't want any answers. You can treat them as feedback for your future development.

1. Why do you modify the board parameters so frequently? I see several patches for these, cant you freeze all this well before posting board support patch?
2. Why do you use your own keymile-common.h, can't you migrate to use mv_common.h which mainly created for the same purpose?

The mentioned keymile-common.h has a completely different intention then mv-common.h. Our header is mainly to collect all features for our boards which are common for our ppc and arm based boards (environment variables, cmd features etc.). And including mv-common.h into our environment for our arm based boards was investigated. But many many features which are used in this header is not valid for our boards, so it would end up in a big set of #ifdefs.

Quoted 7 lines

3. When you support any generic peripheral can't you think of generic use case?

Quoted 4 lines

We try to stick to every rule which is valid for u-boot development. But we
can't stick to rules which are not clearly stated.

Quoted 9 lines

You better can have your own world, and maintain the code the way you want, not necessarily you need u-boot for this.

We both have different thinking hats :-D
In your view, your code is important to get mainlined, may be you don't care other things.
In my view, how any support can be added in simpler, shorter, reusable, cleaner way in-sync with development strategy. I am just trying to follow this. I might have done mistakes, I express grand SORRY for that :-(

I am always there to help everybody with my limited resources and time.

yes and I don't want to offend anybody here. At the end we should benefit from each other. Our side that we have our boards in mainline and you and others in the community which take advantage from the bugfixes and bug reports we provide for common code, as already done at several places.

Regards
Holger

#25 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

Quoted 44 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 04 July 2012 13:55
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Valentin Longchamp; albert.u.boot at aribaud.net; Detlev Zundel
Subject: Re: [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

Hi Prafulla,

Quoted 10 lines · Prafulla Wadaskar
Quoted 10 lines · Prafulla Wadaskar
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

But 01-08 are not only bugfixes there are also two new boards in

these

Quoted 2 lines
Quoted 2 lines

patches.
So will you pull these eight patches in if I post them again

without

Quoted 2 lines
Quoted 1 line

09-14?

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Pls post bug fixes and improvement patches first those will be

pulled faster.

Quoted 1 line

This was already done from my side:
http://lists.denx.de/pipermail/u-boot/2012-May/125219.html

Sorry Prafulla but I have admit that this whole discussion costs a

lot

Quoted 8 lines
Quoted 5 lines

of time
which I do not have. We are moving in circles your last comment was already
discussed several times e.g.:
http://lists.denx.de/pipermail/u-boot/2012-June/126081.html

Do you think I should pull this patch series, I hope it applies

cleanly on the recent master branch.

Quoted 2 lines

Please confirm.

Quoted 6 lines

at time of submission it applied cleanly, now I see some merge conlicts due to
some underlying changes in boards.cfg in your current master. But if you are now
fine with the patch serie I can provide an update which applies cleanly again.

No I am not fine with this patch series.
Pls provide updates

Regards..
Prafulla . . .

#26 lore raw

PATCH v2 3/14 arm/km: convert mgcoge3un target to km_kirkwood

In reply to Prafulla Wadaskar

Hi Prafulla,

[...]

Quoted 7 lines
Quoted 4 lines

But 01-08 are not only bugfixes there are also two new boards in these patches.
So will you pull these eight patches in if I post them again without 09-14?

Pls post bug fixes and improvement patches first those will be pulled faster.

May I please ask you to reconsider your stance on the patch sets from Holger? As far as I can see, he explained a few times by now why and how he grouped the patches like he did. And to be honest, I _can_ understand his reasoning and believe it to be well-founded.

After all, our requirements come from _practical_ considerations, i.e. bisectability, code size reductions, etc. but in the end they are all compromises in one way or another. So usually we do not invent new requirements for the sake of requirements, but in order to improve the situation if the net effect is positive for the project as a whole.

Of course it is a fact that the effort for reviewers is non-negligible, but we have to draw a line somewhere in the area where the "well-formedness" of patch sets and the "ease" of reviewing them needs to be compromised. I do not like to see added complexity in patch sets so that reviewing gets easier.

As far as I can see, this is the current situation and thus I would like you to reconsider and rather spend some more time on the review process of the whole patch series as it is.

Thanks in advance
Detlev

Signature · 6 lines
"The number you have dialed is imaginary. Please rotate your phone 90
degrees and try again."
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
#27 lore raw

PATCH v2 4/14 arm/km: remove portl2.h and use km_kirkwood instead

In reply to Holger Brunck

The additional headerfile is unneeded here, we can use the generic km_kirkwood.h instead. And we can use the better config option KM_PIGGY4_88E6061 for the specific features for boards with this design in km_arm.c.

---
changes for v2: -simply rebased

 board/keymile/km_arm/km_arm.c |    2 +-
 boards.cfg                    |    2 +-
 include/configs/km_kirkwood.h |    8 ++++
 include/configs/portl2.h      |   85 -----------------------------------------
 4 files changed, 10 insertions(+), 87 deletions(-)
 delete mode 100644 include/configs/portl2.h
board/keymile/km_arm/km_arm.c +1 -1
index 09a9538..89fcab3 100644
@@ -317,7 +317,7 @@ void dram_init_banksize(void)
 	}
 }
 
-#if (defined(CONFIG_KM_MGCOGE3UN)|defined(CONFIG_PORTL2))
+#if (defined(CONFIG_KM_PIGGY4_88E6061))
 
 #define	PHY_LED_SEL	0x18
 #define PHY_LED0_LINK	(0x5)
boards.cfg +1 -1
index 47d384e..3b63167 100644
@@ -143,7 +143,7 @@ km_kirkwood_pci              arm         arm926ejs   km_arm              keymile
 kmnusa                       arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_NUSA
 mgcoge3un                    arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_MGCOGE3UN
 kmcoge5un                    arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_COGE5UN
-portl2                       arm         arm926ejs   km_arm              keymile        kirkwood
+portl2                       arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_PORTL2
 inetspace_v2                 arm         arm926ejs   netspace_v2         LaCie          kirkwood	lacie_kw:INETSPACE_V2
 net2big_v2                   arm         arm926ejs   net2big_v2          LaCie          kirkwood	lacie_kw:NET2BIG_V2
 netspace_max_v2              arm         arm926ejs   netspace_v2         LaCie          kirkwood	lacie_kw:NETSPACE_MAX_V2
include/configs/km_kirkwood.h +8 -0
index f5b9d27..44a3e7a 100644
@@ -83,6 +83,14 @@
 #define CONFIG_HOSTNAME			kmcoge5un
 #define CONFIG_KM_DISABLE_PCIE
 #define CONFIG_KM_PIGGY4_88E6352
+
+/* KM_PORTL2 */
+#elif defined(CONFIG_KM_PORTL2)
+#define CONFIG_IDENT_STRING		"\nKeymile Port-L2"
+#define CONFIG_HOSTNAME			portl2
+#define KM_IVM_BUS			"pca9544a:70:9" /* I2C2 (Mux-Port 1)*/
+#define CONFIG_KM_PIGGY4_88E6061
+
 #else
 #error ("Board unsupported")
 #endif
include/configs/portl2.h deleted +0 -85

85 lines not on this page · raw message

Signature · 1 line
1.7.1
#28 lore raw

PATCH v2 4/14 arm/km: remove portl2.h and use km_kirkwood instead

Quoted 21 lines

-----Original Message-----
From: Holger Brunck [mailto:holger.brunck at keymile.com]
Sent: 13 June 2012 19:03
To: u-boot at lists.denx.de
Cc: Holger Brunck; Valentin Longchamp; Prafulla Wadaskar
Subject: [PATCH v2 04/14] arm/km: remove portl2.h and use km_kirkwood instead

The additional headerfile is unneeded here, we can use the generic km_kirkwood.h instead. And we can use the better config option KM_PIGGY4_88E6061 for the specific features for boards with this design in km_arm.c.

---
changes for v2: -simply rebased

Quoted 8 lines
 board/keymile/km_arm/km_arm.c |    2 +-
 boards.cfg                    |    2 +-
 include/configs/km_kirkwood.h |    8 ++++
 include/configs/portl2.h      |   85 --------------------------------
---------
 4 files changed, 10 insertions(+), 87 deletions(-)
 delete mode 100644 include/configs/portl2.h

Even this too, if outside the patch series can be accepted easily

Regards...
Prafulla . . .

#29 lore raw

PATCH v2 5/14 arm/km: correct init of 88e6352 switch in the reset_phy function

In reply to Holger Brunck

From: Valentin Longchamp <[email protected]>

This is achieved thanks to the support read/write regs for the external 88e6352 switch. The functions for this are added into an own file managed_switch.c. This is compiled if the define CONFIG_KM_MANAGED_SW_ADDR was set in the board setup. This define specifies the phy address.

cc Gerlando Falauto <[email protected]>
cc Prafulla Wadaskar <[email protected]>

---
changes for v2:
- nothing

 board/keymile/common/common.h         |    6 +
 board/keymile/km_arm/Makefile         |    4 +
 board/keymile/km_arm/km_arm.c         |   26 +++++-
 board/keymile/km_arm/managed_switch.c |  166 +++++++++++++++++++++++++++++++++
 include/configs/km_kirkwood.h         |   13 +++
 5 files changed, 214 insertions(+), 1 deletions(-)
 create mode 100644 board/keymile/km_arm/managed_switch.c
board/keymile/common/common.h +6 -0
index 6c1f640..49225b8 100644
@@ -125,6 +125,12 @@ struct bfticu_iomap {
 int ethernet_present(void);
 int ivm_read_eeprom(void);
 
+
+int ext_switch_reg_write(const char *devname, u8 phy_addr, u8 port,
+	u8 reg, u16 data);
+int ext_switch_reg_read(const char *devname, u8 phy_addr, u8 port,
+	u8 reg, u16 *data);
+
 int set_km_env(void);
 int fdt_set_node_and_value(void *blob,
 			char *nodename,
board/keymile/km_arm/Makefile +4 -0
index aa51255..06079e9 100644
@@ -31,6 +31,10 @@ LIB	= $(obj)lib$(BOARD).o
 
 COBJS	:= $(BOARD).o ../common/common.o ../common/ivm.o
 
+ifdef CONFIG_KM_MANAGED_SW_ADDR
+COBJS	+= managed_switch.o
+endif
+
 SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(COBJS))
 SOBJS	:= $(addprefix $(obj),$(SOBJS))
board/keymile/km_arm/km_arm.c +25 -1
index 89fcab3..66b82d0 100644
@@ -9,6 +9,9 @@
  * (C) Copyright 2010
  * Heiko Schocher, DENX Software Engineering, hs at denx.de.
  *
+ * (C) Copyright 2011, 2012
+ * Valentin Lontgchamp, Keymile AG, valentin.longchamp at keymile.com
+ *
  * See file CREDITS for list of people who contributed to this
  * project.
  *
@@ -36,6 +39,7 @@
 #include <spi.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
+#include <asm/errno.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/mpp.h>
 
@@ -351,7 +355,27 @@ void reset_phy(void)
 	/* reset the phy */
 	miiphy_reset(name, CONFIG_PHY_BASE_ADR);
 }
-#elif !defined(CONFIG_KM_PIGGY4_88E6352)
+#elif defined(CONFIG_KM_PIGGY4_88E6352)
+
+#if defined(CONFIG_KM_MANAGED_SW_ADDR)
+void reset_phy(void)
+{
+	char *name = "egiga0";
+
+	if (miiphy_set_current_dev(name))
+		return;
+
+	/* enable autoneg on port 0 phy */
+	ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 0, 0, 0x3300);
+
+	/* egress broadcast franes on all macs, with forwarding */
+	ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 16, 4, 0x000f);
+	ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 20, 4, 0x000f);
+	ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 21, 4, 0x000f);
+}
+#endif
+
+#else
 /* Configure and enable MV88E1118 PHY on the piggy*/
 void reset_phy(void)
 {
board/keymile/km_arm/managed_switch.c new file +166 -0

166 lines not on this page · raw message

include/configs/km_kirkwood.h +13 -0
index 44a3e7a..503c27d 100644
@@ -58,6 +58,7 @@
 #define CONFIG_KM_FPGA_CONFIG
 #define CONFIG_KM_PIGGY4_88E6352
 
+#define CONFIG_KM_MANAGED_SW_ADDR	0x10
 /* KM_MGCOGE3UN */
 #elif defined(CONFIG_KM_MGCOGE3UN)
 #define CONFIG_IDENT_STRING		"\nKeymile COGE3UN"
@@ -131,6 +132,18 @@
 	MVGBE_SET_GMII_SPEED_TO_1000	    |\
 	MVGBE_SET_MII_SPEED_TO_100)
 
+/*
+ * There is no phy on the eth interface, but an external switch
+ * For kmcoge5un it is completely unmanaged, so we disable an access to it
+ * For km_nusa, we an MDIO(MII) interface that can configure the switch trough
+ * an indirect access, so we do not disable the MII
+ */
+#ifndef CONFIG_KM_MANAGED_SW_ADDR
+#undef CONFIG_MII
+#undef CONFIG_CMD_MII
+#undef CONFIG_RESET_PHY_R
+#endif
+
 #endif
 
 #ifdef CONFIG_KM_PIGGY4_88E6061
Signature · 1 line
1.7.1
#30 lore raw

PATCH v2 6/14 arm/km: enable BOCO2 FPGA download support

In reply to Holger Brunck

From: Valentin Longchamp <[email protected]>

This adds a first support of the FPGA download for a PCIe FPGA based on the BOCO2 CPLD.

This takes place in 3 steps, all done accessing the SPICTRL reg of the BOCO2:
1) start the FPGA config with an access to the FPGA_PROG bit
2) later in the boot sequence, wait for the FPGA_DONE bit to toggle to 1 for the end of the FPGA configuration (with a timeout)
3) reset the FPGA
4) finally remove the access to its config EEPROM from the FPGA so that the CPU can update the FPGA configuration when the kernel is running

The boards with a PCIe FPGA but without BOCO2 still are supported.

The config option name is CONFIG_KM_FPGA_CONFIG

---
changes for v2:
- nothing

 board/keymile/common/common.h      |    6 +
 board/keymile/km_arm/Makefile      |    4 +
 board/keymile/km_arm/fpga_config.c |  212 ++++++++++++++++++++++++++++++++++++
 board/keymile/km_arm/km_arm.c      |   21 +++-
 boards.cfg                         |    2 +-
 include/configs/km/km_arm.h        |    3 +
 include/configs/km_kirkwood.h      |    8 +-
 7 files changed, 246 insertions(+), 10 deletions(-)
 create mode 100644 board/keymile/km_arm/fpga_config.c
board/keymile/common/common.h +6 -0
index 49225b8..c58e565 100644
@@ -131,6 +131,12 @@ int ext_switch_reg_write(const char *devname, u8 phy_addr, u8 port,
 int ext_switch_reg_read(const char *devname, u8 phy_addr, u8 port,
 	u8 reg, u16 *data);
 
+
+int trigger_fpga_config(void);
+int wait_for_fpga_config(void);
+int fpga_reset(void);
+int toggle_eeprom_spi_bus(void);
+
 int set_km_env(void);
 int fdt_set_node_and_value(void *blob,
 			char *nodename,
board/keymile/km_arm/Makefile +4 -0
index 06079e9..bd824e2 100644
@@ -31,6 +31,10 @@ LIB	= $(obj)lib$(BOARD).o
 
 COBJS	:= $(BOARD).o ../common/common.o ../common/ivm.o
 
+ifdef CONFIG_KM_FPGA_CONFIG
+COBJS	+= fpga_config.o
+endif
+
 ifdef CONFIG_KM_MANAGED_SW_ADDR
 COBJS	+= managed_switch.o
 endif
board/keymile/km_arm/fpga_config.c new file +212 -0

212 lines not on this page · raw message

board/keymile/km_arm/km_arm.c +15 -6
index 66b82d0..5c9ba8f 100644
@@ -272,12 +272,6 @@ int board_early_init_f(void)
 	kw_gpio_set_valid(KM_KIRKWOOD_ENV_WP, 38);
 	kw_gpio_direction_output(KM_KIRKWOOD_ENV_WP, 1);
 #endif
-#if defined(CONFIG_KM_RECONFIG_XLX)
-	/* trigger the reconfiguration of the xilinx fpga */
-	kw_gpio_set_valid(KM_XLX_PROGRAM_B_PIN, 1);
-	kw_gpio_direction_output(KM_XLX_PROGRAM_B_PIN, 0);
-	kw_gpio_direction_input(KM_XLX_PROGRAM_B_PIN);
-#endif
 	return 0;
 }
 
@@ -286,6 +280,21 @@ int board_init(void)
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = kw_sdram_bar(0) + 0x100;
 
+#if defined(CONFIG_KM_FPGA_CONFIG)
+	trigger_fpga_config();
+#endif
+
+	return 0;
+}
+
+int board_late_init(void)
+{
+#if defined(CONFIG_KM_FPGA_CONFIG)
+	wait_for_fpga_config();
+	fpga_reset();
+	toggle_eeprom_spi_bus();
+#endif
+
 	return 0;
 }
 
boards.cfg +1 -1
index 3b63167..da52a49 100644
@@ -139,7 +139,7 @@ calimain                     arm         arm926ejs   calimain            omicron
 pogo_e02                     arm         arm926ejs   -                   cloudengines   kirkwood
 dns325                       arm         arm926ejs   -                   d-link         kirkwood
 km_kirkwood                  arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD,KM_DISABLE_PCI
-km_kirkwood_pci              arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD_PCI,KM_RECONFIG_XLX
+km_kirkwood_pci              arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD_PCI,KM_FPGA_CONFIG
 kmnusa                       arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_NUSA
 mgcoge3un                    arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_MGCOGE3UN
 kmcoge5un                    arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_COGE5UN
include/configs/km/km_arm.h +3 -0
index 9cd909c..5fbb590 100644
@@ -310,4 +310,7 @@ int get_scl(void);
 #define CONFIG_POST_EXTERNAL_WORD_FUNCS
 #define CONFIG_CMD_DIAG
 
+/* we do the whole PCIe FPGA config stuff here */
+#define	BOARD_LATE_INIT
+
 #endif /* _CONFIG_KM_ARM_H */
include/configs/km_kirkwood.h +5 -3
index 503c27d..be0da83 100644
@@ -175,10 +175,12 @@
 	MVGBE_SET_MII_SPEED_TO_100)
 #endif
 
-/* GPIO Pin from kirkwood connected to PROGRAM_B pin of the xilinx FPGA */
-#define KM_XLX_PROGRAM_B_PIN    39
-
 #ifdef CONFIG_KM_DISABLE_PCI
 #undef  CONFIG_KIRKWOOD_PCIE_INIT
 #endif
+
+#ifndef CONFIG_KM_FPGA_CONFIG
+#undef  BOARD_LATE_INIT
+#endif
+
 #endif /* _CONFIG_KM_KIRKWOOD */
Signature · 1 line
1.7.1
#31 lore raw

PATCH v2 7/14 arm/km: cleanup km_kirkwood boards

In reply to Holger Brunck

Remove config options from boards.cfg and simply add one switch per board and differ afterwards in km_kirkwood.h between the features. More boards are upcoming and therefore it's easier to have this at one place.

---
changes for v2:
- nothing

 boards.cfg                    |    4 ++--
 include/configs/km_kirkwood.h |    7 ++++++-
 2 files changed, 8 insertions(+), 3 deletions(-)
boards.cfg +2 -2
index da52a49..71630ba 100644
@@ -138,8 +138,8 @@ enbw_cmc                     arm         arm926ejs   enbw_cmc            enbw
 calimain                     arm         arm926ejs   calimain            omicron        davinci
 pogo_e02                     arm         arm926ejs   -                   cloudengines   kirkwood
 dns325                       arm         arm926ejs   -                   d-link         kirkwood
-km_kirkwood                  arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD,KM_DISABLE_PCI
-km_kirkwood_pci              arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD_PCI,KM_FPGA_CONFIG
+km_kirkwood                  arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD
+km_kirkwood_pci              arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_KIRKWOOD_PCI
 kmnusa                       arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_NUSA
 mgcoge3un                    arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_MGCOGE3UN
 kmcoge5un                    arm         arm926ejs   km_arm              keymile        kirkwood    km_kirkwood:KM_COGE5UN
include/configs/km_kirkwood.h +6 -1
index be0da83..b29e1a6 100644
@@ -37,15 +37,20 @@
 #ifndef _CONFIG_KM_KIRKWOOD_H
 #define _CONFIG_KM_KIRKWOOD_H
 
+/* KM_KIRKWOOD */
 #if defined(CONFIG_KM_KIRKWOOD)
 #define CONFIG_IDENT_STRING		"\nKeymile Kirkwood"
 #define CONFIG_HOSTNAME			km_kirkwood
-#undef  CONFIG_KIRKWOOD_PCIE_INIT
+#define CONFIG_KM_DISABLE_PCIE
 #define KM_IVM_BUS			"pca9544a:70:9"	/* I2C2 (Mux-Port 1)*/
+
+/* KM_KIRKWOOD_PCI */
 #elif defined(CONFIG_KM_KIRKWOOD_PCI)
 #define CONFIG_IDENT_STRING		"\nKeymile Kirkwood PCI"
 #define CONFIG_HOSTNAME			km_kirkwood_pci
 #define KM_IVM_BUS			"pca9544a:70:9"	/* I2C2 (Mux-Port 1)*/
+#define CONFIG_KM_FPGA_CONFIG
+
 /* KM_NUSA */
 #elif defined(CONFIG_KM_NUSA)
 #define KM_IVM_BUS			"pca9547:70:9"	/* I2C2 (Mux-Port 1)*/
Signature · 1 line
1.7.1
#32 lore raw

PATCH v2 8/14 arm/km: redefine piggy 4 reg names to avoid conflicts

In reply to Holger Brunck

From: Valentin Longchamp <[email protected]>

Some very similar #defines for reg addresses are used in a later patch (managed_switch support for km_arm).

cc Holger Brunck <[email protected]>
cc Prafulla Wadaskar <[email protected]>

---
changes for v2:
- nothing

 board/keymile/km_arm/km_arm.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)
board/keymile/km_arm/km_arm.c +11 -11
index 5c9ba8f..d9cd4a0 100644
@@ -332,13 +332,13 @@ void dram_init_banksize(void)
 
 #if (defined(CONFIG_KM_PIGGY4_88E6061))
 
-#define	PHY_LED_SEL	0x18
-#define PHY_LED0_LINK	(0x5)
-#define PHY_LED1_ACT	(0x8<<4)
-#define PHY_LED2_INT	(0xe<<8)
-#define	PHY_SPEC_CTRL	0x1c
+#define	PHY_LED_SEL_REG		0x18
+#define PHY_LED0_LINK		(0x5)
+#define PHY_LED1_ACT		(0x8<<4)
+#define PHY_LED2_INT		(0xe<<8)
+#define	PHY_SPEC_CTRL_REG	0x1c
 #define PHY_RGMII_CLK_STABLE	(0x1<<10)
-#define PHY_CLSA	(0x1<<1)
+#define PHY_CLSA		(0x1<<1)
 
 /* Configure and enable MV88E3018 PHY */
 void reset_phy(void)
@@ -350,15 +350,15 @@ void reset_phy(void)
 		return;
 
 	/* RGMII clk transition on data stable */
-	if (miiphy_read(name, CONFIG_PHY_BASE_ADR, PHY_SPEC_CTRL, &reg) != 0)
+	if (!miiphy_read(name, CONFIG_PHY_BASE_ADR, PHY_SPEC_CTRL_REG, &reg))
 		printf("Error reading PHY spec ctrl reg\n");
-	if (miiphy_write(name, CONFIG_PHY_BASE_ADR, PHY_SPEC_CTRL,
-		reg | PHY_RGMII_CLK_STABLE | PHY_CLSA) != 0)
+	if (!miiphy_write(name, CONFIG_PHY_BASE_ADR, PHY_SPEC_CTRL_REG,
+		reg | PHY_RGMII_CLK_STABLE | PHY_CLSA))
 		printf("Error writing PHY spec ctrl reg\n");
 
 	/* leds setup */
-	if (miiphy_write(name, CONFIG_PHY_BASE_ADR, PHY_LED_SEL,
-		PHY_LED0_LINK | PHY_LED1_ACT | PHY_LED2_INT) != 0)
+	if (!miiphy_write(name, CONFIG_PHY_BASE_ADR, PHY_LED_SEL_REG,
+		PHY_LED0_LINK | PHY_LED1_ACT | PHY_LED2_INT))
 		printf("Error writing PHY LED reg\n");
 
 	/* reset the phy */
Signature · 1 line
1.7.1
#33 lore raw

PATCH v2 9/14 arm/km: add support for external switch configuration

In reply to Holger Brunck

From: Valentin Longchamp <[email protected]>

This can be used if we do not want to use an EEPROM for the configuration.

cc Holger Brunck <[email protected]>
cc Prafulla Wadaskar <[email protected]>

---
changes for v2:
- nothing

 board/keymile/common/common.h         |    7 --
 board/keymile/km_arm/managed_switch.c |  169 +++++++++++++++++++++++++++++++--
 board/keymile/km_arm/managed_switch.h |   99 +++++++++++++++++++
 3 files changed, 258 insertions(+), 17 deletions(-)
 create mode 100644 board/keymile/km_arm/managed_switch.h
board/keymile/common/common.h +0 -7
index c58e565..e9abfcd 100644
@@ -125,13 +125,6 @@ struct bfticu_iomap {
 int ethernet_present(void);
 int ivm_read_eeprom(void);
 
-
-int ext_switch_reg_write(const char *devname, u8 phy_addr, u8 port,
-	u8 reg, u16 data);
-int ext_switch_reg_read(const char *devname, u8 phy_addr, u8 port,
-	u8 reg, u16 *data);
-
-
 int trigger_fpga_config(void);
 int wait_for_fpga_config(void);
 int fpga_reset(void);
board/keymile/km_arm/managed_switch.c +159 -10

194 lines not on this page · raw message

board/keymile/km_arm/managed_switch.h new file +99 -0

99 lines not on this page · raw message

Signature · 1 line
1.7.1
#34 lore raw

PATCH v3 9/14 arm/km: add support for external switch configuration

This patch add support for the configuration of an external switch from the 88E6xxx series from Marvell trough an MDIO link using indirect adressing. This can be used if we do not want to use an EEPROM for the configuration.

This driver is not generic and was not tested on a lot of switches, that's why we keep it in our keymile specific code, where the assumptions of the implementations remain true.

---
changes for v2:
- nothing
changes for v3:
- more complete commit message

 board/keymile/common/common.h         |    7 --
 board/keymile/km_arm/managed_switch.c |  169 +++++++++++++++++++++++++++++++--
 board/keymile/km_arm/managed_switch.h |   99 +++++++++++++++++++
 3 files changed, 258 insertions(+), 17 deletions(-)
 create mode 100644 board/keymile/km_arm/managed_switch.h
board/keymile/common/common.h +0 -7
index c58e565..e9abfcd 100644
@@ -125,13 +125,6 @@ struct bfticu_iomap {
 int ethernet_present(void);
 int ivm_read_eeprom(void);
 
-
-int ext_switch_reg_write(const char *devname, u8 phy_addr, u8 port,
-	u8 reg, u16 data);
-int ext_switch_reg_read(const char *devname, u8 phy_addr, u8 port,
-	u8 reg, u16 *data);
-
-
 int trigger_fpga_config(void);
 int wait_for_fpga_config(void);
 int fpga_reset(void);
board/keymile/km_arm/managed_switch.c +159 -10

194 lines not on this page · raw message

board/keymile/km_arm/managed_switch.h new file +99 -0

99 lines not on this page · raw message

Signature · 1 line
1.7.1
#35 lore raw

PATCH v2 10/14 arm/km: enable external switch configuration for kmnusa

In reply to Holger Brunck

From: Valentin Longchamp <[email protected]>

The configuration EEPROM should be removed for P1B.

cc Holger Brunck <[email protected]>
cc Prafulla Wadaskar <[email protected]>

---
changes for v2:
- nothing

 board/keymile/km_arm/km_arm.c         |   11 +++++------
 board/keymile/km_arm/managed_switch.c |    3 ++-
 board/keymile/km_arm/managed_switch.h |    7 +++++++
 3 files changed, 14 insertions(+), 7 deletions(-)
board/keymile/km_arm/km_arm.c +5 -6
index d9cd4a0..1348186 100644
@@ -44,6 +44,7 @@
 #include <asm/arch/mpp.h>
 
 #include "../common/common.h"
+#include "managed_switch.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -374,13 +375,11 @@ void reset_phy(void)
 	if (miiphy_set_current_dev(name))
 		return;
 
-	/* enable autoneg on port 0 phy */
-	ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 0, 0, 0x3300);
+#if defined(CONFIG_KM_NUSA)
+	ext_switch_program(name, CONFIG_KM_MANAGED_SW_ADDR);
+#endif
 
-	/* egress broadcast franes on all macs, with forwarding */
-	ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 16, 4, 0x000f);
-	ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 20, 4, 0x000f);
-	ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 21, 4, 0x000f);
+	ext_switch_reset(name, CONFIG_KM_MANAGED_SW_ADDR);
 }
 #endif
 
board/keymile/km_arm/managed_switch.c +2 -1
index 3b022cd..a776f1d 100644
@@ -32,9 +32,10 @@ struct switch_reg sw_conf[] = {
 	/* port 0, PIGY4, autoneg */
 	{ PORT(0), PORT_PHY, NO_SPEED_FOR },
 	{ PORT(0), PORT_CTRL, FORWARDING | EGRS_FLD_ALL },
+	{ PHY(0), PHY_1000_CTRL, NO_ADV },
+	{ PHY(0), PHY_SPEC_CTRL, AUTO_MDIX_EN },
 	{ PHY(0), PHY_CTRL, PHY_100_MBPS | AUTONEG_EN | AUTONEG_RST |
 		FULL_DUPLEX },
-	{ PHY(0), PHY_SPEC_CTRL, AUTO_MDIX_EN },
 	/* port 1, unused */
 	{ PORT(1), PORT_CTRL, PORT_DIS },
 	{ PHY(1), PHY_CTRL, PHY_PWR_DOWN },
board/keymile/km_arm/managed_switch.h +7 -0
index c0dcf82..d5b938a 100644
@@ -51,6 +51,7 @@
 
 #define PHY_CTRL	0x00
 #define PHY_100_MBPS	0x2000
+#define PHY_1_GBPS	0x0040
 #define AUTONEG_EN	0x1000
 #define AUTONEG_RST	0x0200
 #define FULL_DUPLEX	0x0100
@@ -62,6 +63,12 @@
 #define SPEC_PWR_DOWN	0x0004
 #define AUTO_MDIX_EN	0x0060
 
+#define PHY_1000_CTRL	0x9
+
+#define NO_ADV		0x0000
+#define ADV_1000_FDPX	0x0200
+#define ADV_1000_HDPX	0x0100
+
 /* PORT or MAC registers */
 #define PORT(itf)	(itf+0x10)
 
Signature · 1 line
1.7.1
#36 lore raw

PATCH v2 11/14 arm/km: skip FPGA config when already configured

In reply to Holger Brunck

From: Valentin Longchamp <[email protected]>

In order to be able to perform board resets without interrupting the traffic, the configuration of an already properly configured FPGA is skipped.

This is because some PCIe FPGAs embed some other function that must continue to work over reset.

It is then the responsibility of the application to trigger a reconfiguration when needed. This is done by lowering the FPGA_INIT_B pin for delaying the configuration to u-boot @ next reboot, and then lower the FPGA_PROGRAM_B signal.

cc Holger Brunck <[email protected]>
cc Prafulla Wadaskar <[email protected]>

---
changes for v2:
- nothing

 board/keymile/km_arm/fpga_config.c |   41 +++++++++++++++++++++++++++++++++++-
 1 files changed, 40 insertions(+), 1 deletions(-)
board/keymile/km_arm/fpga_config.c +40 -1
index 4356b9a..8ac6393 100644
@@ -96,12 +96,43 @@ static int boco_set_bits(u8 reg, u8 flags)
 #define SPI_REG		0x06
 #define CFG_EEPROM	0x02
 #define FPGA_PROG	0x04
+#define FPGA_INIT_B	0x10
 #define FPGA_DONE	0x20
 
+static int fpga_done()
+{
+	int ret = 0;
+	u8 regval;
+
+	/* this is only supported with the boco2 design */
+	if (!check_boco2())
+		return 0;
+
+	ret = i2c_read(BOCO_ADDR, SPI_REG, 1, &regval, 1);
+	if (ret) {
+		printf("%s: error reading the BOCO @%#x !!\n",
+			__func__, SPI_REG);
+		return 0;
+	}
+
+	return regval & FPGA_DONE ? 1 : 0;
+}
+
+int skip;
+
 int trigger_fpga_config(void)
 {
 	int ret = 0;
 
+	/* if the FPGA is already configured, we do not want to
+	 * reconfigure it */
+	skip = 0;
+	if (fpga_done()) {
+		printf("PCIe FPGA config: skipped\n");
+		skip = 1;
+		return 0;
+	}
+
 	if (check_boco2()) {
 		/* we have a BOCO2, this has to be triggered here */
 
@@ -111,7 +142,7 @@ int trigger_fpga_config(void)
 			return ret;
 
 		/* trigger the config start */
-		ret = boco_clear_bits(SPI_REG, FPGA_PROG);
+		ret = boco_clear_bits(SPI_REG, FPGA_PROG | FPGA_INIT_B);
 		if (ret)
 			return ret;
 
@@ -123,6 +154,11 @@ int trigger_fpga_config(void)
 		if (ret)
 			return ret;
 
+		/* finally, raise INIT_B to remove the config delay */
+		ret = boco_set_bits(SPI_REG, FPGA_INIT_B);
+		if (ret)
+			return ret;
+
 	} else {
 		/* we do it the old way, with the gpio pin */
 		kw_gpio_set_valid(KM_XLX_PROGRAM_B_PIN, 1);
@@ -141,6 +177,9 @@ int wait_for_fpga_config(void)
 	u8 spictrl;
 	u32 timeout = 20000;
 
+	if (skip)
+		return 0;
+
 	if (!check_boco2()) {
 		/* we do not have BOCO2, this is not really used */
 		return 0;
Signature · 1 line
1.7.1
#37 lore raw

PATCH v2 12/14 arm/km: support the 2 PCIe fpga resets

In reply to Holger Brunck

From: Valentin Longchamp <[email protected]>

The PCIe FPGAs now have to support 2 resets: one for the non traffic affecting part (PCIe) and one for the traffic affecting part.

When the FPGA is not reconfigured, we only reset the PCIe part.

cc Holger Brunck <[email protected]>
cc Prafulla Wadaskar <[email protected]>

---
changes for v2:
- nothing

 board/keymile/km_arm/fpga_config.c |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
board/keymile/km_arm/fpga_config.c +9 -4
index 8ac6393..fcc5fe6 100644
@@ -99,7 +99,7 @@ static int boco_set_bits(u8 reg, u8 flags)
 #define FPGA_INIT_B	0x10
 #define FPGA_DONE	0x20
 
-static int fpga_done()
+static int fpga_done(void)
 {
 	int ret = 0;
 	u8 regval;
@@ -206,25 +206,30 @@ int wait_for_fpga_config(void)
 }
 
 #define PRST1		0x4
-#define BRIDGE_RST	0x4
+#define PCIE_RST	0x10
+#define TRAFFIC_RST	0x04
 
 int fpga_reset(void)
 {
 	int ret = 0;
+	u8 resets;
 
 	if (!check_boco2()) {
 		/* we do not have BOCO2, this is not really used */
 		return 0;
 	}
 
-	ret = boco_clear_bits(PRST1, BRIDGE_RST);
+	/* if we have skipped, we only want to reset the PCIe part */
+	resets = skip ? PCIE_RST : PCIE_RST | TRAFFIC_RST;
+
+	ret = boco_clear_bits(PRST1, resets);
 	if (ret)
 		return ret;
 
 	/* small delay for the pulse */
 	udelay(10);
 
-	ret = boco_set_bits(PRST1, BRIDGE_RST);
+	ret = boco_set_bits(PRST1, resets);
 	if (ret)
 		return ret;
 
Signature · 1 line
1.7.1
#38 lore raw

PATCH v2 13/14 arm/km: add implementation for read_dip_switch

In reply to Holger Brunck

From: Thomas Herzmann <[email protected]>

Add a function to read the dip_switch on kmcoge5un. If the switch is set the actual_bank is set to 0 and this SW is booted.

cc Valentin Longchamp <[email protected]>
cc Prafulla Wadaskar <[email protected]>

---
changes for v2:
- nothing

 board/keymile/km_arm/km_arm.c |   14 +++++++++++++-
 include/configs/km_kirkwood.h |    3 ---
 2 files changed, 13 insertions(+), 4 deletions(-)
board/keymile/km_arm/km_arm.c +13 -1
index 1348186..7e8bdfe 100644
@@ -290,12 +290,24 @@ int board_init(void)
 
 int board_late_init(void)
 {
+#if defined(CONFIG_KMCOGE5UN)
+/* I/O pin to erase flash RGPP09 = MPP43 */
+#define KM_FLASH_ERASE_ENABLE	43
+	u8 dip_switch = kw_gpio_get_value(KM_FLASH_ERASE_ENABLE);
+
+	/* if pin 1 do full erase */
+	if (dip_switch != 0) {
+		/* start bootloader */
+		puts("DIP:   Enabled\n");
+		setenv("actual_bank", "0");
+	}
+#endif
+
 #if defined(CONFIG_KM_FPGA_CONFIG)
 	wait_for_fpga_config();
 	fpga_reset();
 	toggle_eeprom_spi_bus();
 #endif
-
 	return 0;
 }
 
include/configs/km_kirkwood.h +0 -3
index b29e1a6..c42d0cb 100644
@@ -184,8 +184,5 @@
 #undef  CONFIG_KIRKWOOD_PCIE_INIT
 #endif
 
-#ifndef CONFIG_KM_FPGA_CONFIG
-#undef  BOARD_LATE_INIT
-#endif
 
 #endif /* _CONFIG_KM_KIRKWOOD */
Signature · 1 line
1.7.1
#39 lore raw

PATCH v2 14/14 arm/km: remove calls to kw_gpio_* in board_early_init_f

In reply to Holger Brunck

These functions tried to access two static tables before relocation (board_early_init_f is executed before relocation). But these static tables lie in the bss section which is not valid before relocation. These accesses then overwrote some parts of u-boot binary before it was relocated. For the kmnusa build, this results in a corrupted important env variable (bootcmd) but it may be that some other parts of the u-boot binary are corrupted.

This patch solves this problem by moving all the kw_gpio_* calls to board_init, which should be early enough in the boot sequence. The only calls that could not be moved is the one for the SOFT (bitbang) I2C, and they have been replaced by a direct access to the GPIO dataout Control register to set the two GPIOs as output.

cc Holger Brunck <[email protected]>
cc Prafulla Wadaskar <[email protected]>

---
changes for v2:
- fix comment syntax
- rebase

 board/keymile/km_arm/km_arm.c |   43 ++++++++++++++++++++++++++--------------
 include/configs/km/km_arm.h   |    1 +
 2 files changed, 29 insertions(+), 15 deletions(-)
board/keymile/km_arm/km_arm.c +28 -15
index 7e8bdfe..7169fd1 100644
@@ -248,38 +248,51 @@ int misc_init_r(void)
 
 int board_early_init_f(void)
 {
+#if defined(CONFIG_SOFT_I2C)
 	u32 tmp;
 
+	/* set the 2 bitbang i2c pins as output gpios */
+	tmp = readl(KW_GPIO0_BASE + 4);
+	writel(tmp & (~KM_KIRKWOOD_SOFT_I2C_GPIOS) , KW_GPIO0_BASE + 4);
+#endif
+
 	kirkwood_mpp_conf(kwmpp_config, NULL);
+	return 0;
+}
 
+int board_init(void)
+{
 	/*
-	 * The FLASH_GPIO_PIN switches between using a
+	 * arch number of board
+	 */
+	gd->bd->bi_arch_number = MACH_TYPE_KM_KIRKWOOD;
+
+	/* address of boot parameters */
+	gd->bd->bi_boot_params = kw_sdram_bar(0) + 0x100;
+
+	/*
+	 * The KM_FLASH_GPIO_PIN switches between using a
 	 * NAND or a SPI FLASH. Set this pin on start
 	 * to NAND mode.
 	 */
-	tmp = readl(KW_GPIO0_BASE);
-	writel(tmp | FLASH_GPIO_PIN , KW_GPIO0_BASE);
-	tmp = readl(KW_GPIO0_BASE + 4);
-	writel(tmp & (~FLASH_GPIO_PIN) , KW_GPIO0_BASE + 4);
+	kw_gpio_set_valid(KM_FLASH_GPIO_PIN, 1);
+	kw_gpio_direction_output(KM_FLASH_GPIO_PIN, 1);
 
 #if defined(CONFIG_SOFT_I2C)
-	/* init the GPIO for I2C Bitbang driver */
+	/*
+	 * Reinit the GPIO for I2C Bitbang driver so that the now
+	 * available gpio framework is consistent. The calls to
+	 * direction output in are not necessary, they are already done in
+	 * board_early_init_f
+	 */
 	kw_gpio_set_valid(KM_KIRKWOOD_SDA_PIN, 1);
 	kw_gpio_set_valid(KM_KIRKWOOD_SCL_PIN, 1);
-	kw_gpio_direction_output(KM_KIRKWOOD_SDA_PIN, 0);
-	kw_gpio_direction_output(KM_KIRKWOOD_SCL_PIN, 0);
 #endif
+
 #if defined(CONFIG_SYS_EEPROM_WREN)
 	kw_gpio_set_valid(KM_KIRKWOOD_ENV_WP, 38);
 	kw_gpio_direction_output(KM_KIRKWOOD_ENV_WP, 1);
 #endif
-	return 0;
-}
-
-int board_init(void)
-{
-	/* address of boot parameters */
-	gd->bd->bi_boot_params = kw_sdram_bar(0) + 0x100;
 
 #if defined(CONFIG_KM_FPGA_CONFIG)
 	trigger_fpga_config();
include/configs/km/km_arm.h +1 -0
index 5fbb590..8a6b345 100644
@@ -192,6 +192,7 @@ int get_sda(void);
 int get_scl(void);
 #define KM_KIRKWOOD_SDA_PIN	8
 #define KM_KIRKWOOD_SCL_PIN	9
+#define KM_KIRKWOOD_SOFT_I2C_GPIOS	0x0300
 #define KM_KIRKWOOD_ENV_WP	38
 
 #define I2C_ACTIVE	__set_direction(KM_KIRKWOOD_SDA_PIN, 0)
Signature · 1 line
1.7.1