Skip to contentSkip to conversation

sunxi: Fix CONFIG_SUNXI_GMAC references

PATCH New Dave Prue 6 participants 7 messages Jul 26, 2017 – Aug 7, 2017

Subsystems (2)
lore
Share & tools
lore

Dave Prue

author
#0 lore raw

PATCH 1/1 sunxi: Fix CONFIG_SUNXI_GMAC references

GMAC Initialization for sun7i targets has been broken since v2017.05-rc3 due to the renaming of CONFIG_SUNXI_GMAC to CONFIG_SUN7I_GMAC in Kconfig without propogating the name change throughout the code.

---

 arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 +-
 board/sunxi/Makefile                        | 2 +-
 include/configs/sunxi-common.h              | 2 +-
 scripts/build-whitelist.sh                  | 2 +-
 scripts/config_whitelist.txt                | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/include/asm/arch-sunxi/sys_proto.h +1 -1
index a373319..096510b 100644
@@ -24,7 +24,7 @@ void sdelay(unsigned long);
 void return_to_fel(uint32_t lr, uint32_t sp);
 
 /* Board / SoC level designware gmac init */
-#if !defined CONFIG_SPL_BUILD && defined CONFIG_SUNXI_GMAC
+#if !defined CONFIG_SPL_BUILD && defined CONFIG_SUN7I_GMAC
 void eth_init_board(void);
 #else
 static inline void eth_init_board(void) {}
board/sunxi/Makefile +1 -1
index 43766e0..34a2786 100644
@@ -9,7 +9,7 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 obj-y	+= board.o
-obj-$(CONFIG_SUNXI_GMAC)	+= gmac.o
+obj-$(CONFIG_SUN7I_GMAC)	+= gmac.o
 obj-$(CONFIG_SUNXI_AHCI)	+= ahci.o
 obj-$(CONFIG_MACH_SUN4I)	+= dram_sun4i_auto.o
 obj-$(CONFIG_MACH_SUN5I)	+= dram_sun5i_auto.o
include/configs/sunxi-common.h +1 -1
index 9b514ff..93e0281 100644
@@ -300,7 +300,7 @@ extern int soft_i2c_gpio_scl;
 #define CONFIG_PHYLIB
 #endif
 
-#ifdef CONFIG_SUNXI_GMAC
+#ifdef CONFIG_SUN7I_GMAC
 #define CONFIG_PHY_GIGE			/* GMAC can use gigabit PHY	*/
 #define CONFIG_PHY_ADDR		1
 #define CONFIG_MII			/* MII PHY management		*/
scripts/build-whitelist.sh +1 -1
index f169eaa..8e0496b 100755
@@ -16,7 +16,7 @@ export LC_ALL=C LC_COLLATE=C
 #	SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8)
 #
 # We want this to produce:
-#	CONFIG_SUNXI_GMAC
+#	CONFIG_SUN7I_GMAC
 #	CONFIG_AHCI
 #	CONFIG_SATAPWR
 #
scripts/config_whitelist.txt +1 -1
index c8cf428..8c13e4d 100644
@@ -2696,7 +2696,7 @@ CONFIG_STV0991_HZ_CLOCK
 CONFIG_ST_SMI
 CONFIG_SUNXI_AHCI
 CONFIG_SUNXI_EMAC
-CONFIG_SUNXI_GMAC
+CONFIG_SUN7I_GMAC
 CONFIG_SUNXI_GPIO
 CONFIG_SUNXI_MAX_FB_SIZE
 CONFIG_SUNXI_USB_PHYS
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 sunxi: Fix CONFIG_SUNXI_GMAC references

Hi,

Quoted 71 lines · Dave Prue

GMAC Initialization for sun7i targets has been broken since v2017.05-rc3 due to the renaming of CONFIG_SUNXI_GMAC to CONFIG_SUN7I_GMAC in Kconfig without propogating the name change throughout the code.

---

 arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 +-
 board/sunxi/Makefile                        | 2 +-
 include/configs/sunxi-common.h              | 2 +-
 scripts/build-whitelist.sh                  | 2 +-
 scripts/config_whitelist.txt                | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/include/asm/arch-sunxi/sys_proto.h +1 -1
index a373319..096510b 100644
@@ -24,7 +24,7 @@ void sdelay(unsigned long);
 void return_to_fel(uint32_t lr, uint32_t sp);
 
 /* Board / SoC level designware gmac init */
-#if !defined CONFIG_SPL_BUILD && defined CONFIG_SUNXI_GMAC
+#if !defined CONFIG_SPL_BUILD && defined CONFIG_SUN7I_GMAC
 void eth_init_board(void);
 #else
 static inline void eth_init_board(void) {}
board/sunxi/Makefile +1 -1
index 43766e0..34a2786 100644
@@ -9,7 +9,7 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 obj-y	+= board.o
-obj-$(CONFIG_SUNXI_GMAC)	+= gmac.o
+obj-$(CONFIG_SUN7I_GMAC)	+= gmac.o
 obj-$(CONFIG_SUNXI_AHCI)	+= ahci.o
 obj-$(CONFIG_MACH_SUN4I)	+= dram_sun4i_auto.o
 obj-$(CONFIG_MACH_SUN5I)	+= dram_sun5i_auto.o
include/configs/sunxi-common.h +1 -1
index 9b514ff..93e0281 100644
@@ -300,7 +300,7 @@ extern int soft_i2c_gpio_scl;
 #define CONFIG_PHYLIB
 #endif
 
-#ifdef CONFIG_SUNXI_GMAC
+#ifdef CONFIG_SUN7I_GMAC
 #define CONFIG_PHY_GIGE			/* GMAC can use gigabit PHY	*/
 #define CONFIG_PHY_ADDR		1
 #define CONFIG_MII			/* MII PHY management		*/
scripts/build-whitelist.sh +1 -1
index f169eaa..8e0496b 100755
@@ -16,7 +16,7 @@ export LC_ALL=C LC_COLLATE=C
 #	SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8)
 #
 # We want this to produce:
-#	CONFIG_SUNXI_GMAC
+#	CONFIG_SUN7I_GMAC
 #	CONFIG_AHCI
 #	CONFIG_SATAPWR
 #
scripts/config_whitelist.txt +0 -0
index c8cf428..8c13e4d 100644

scripts/config_whitelist.txt CONFIG_STV0991_HZ_CLOCK · line 2699

Quoted 5 lines
scripts/config_whitelist.txt +1 -1
@@ -2696,7 +2696,7 @@ CONFIG_STV0991_HZ_CLOCK
 CONFIG_ST_SMI
 CONFIG_SUNXI_AHCI
 CONFIG_SUNXI_EMAC
-CONFIG_SUNXI_GMAC
+CONFIG_SUN7I_GMAC

These two shouldn't be needed anymore, it has been converted to KConfig entirely.

maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170726/8602d42e/attachment.sig>
#2 lore raw

PATCH 1/1 sunxi: Fix CONFIG_SUNXI_GMAC references

In reply to Dave Prue
Quoted 5 lines · Dave Prue

GMAC Initialization for sun7i targets has been broken since v2017.05-rc3 due to the renaming of CONFIG_SUNXI_GMAC to CONFIG_SUN7I_GMAC in Kconfig without propogating the name change throughout the code.

Quoted 8 lines

---

 arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 +-
 board/sunxi/Makefile                        | 2 +-
 include/configs/sunxi-common.h              | 2 +-
 scripts/build-whitelist.sh                  | 2 +-
 scripts/config_whitelist.txt                | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
#3 lore raw

PATCH 1/1 sunxi: Fix CONFIG_SUNXI_GMAC references

Quoted 8 lines · Simon Glass
Quoted 7 lines · Dave Prue

GMAC Initialization for sun7i targets has been broken since v2017.05-rc3 due to the renaming of CONFIG_SUNXI_GMAC to CONFIG_SUN7I_GMAC in Kconfig without propogating the name change throughout the code.

---

Quoted 8 lines
Quoted 6 lines
 arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 +-
 board/sunxi/Makefile                        | 2 +-
 include/configs/sunxi-common.h              | 2 +-
 scripts/build-whitelist.sh                  | 2 +-
 scripts/config_whitelist.txt                | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

thanks!

Signature · 4 lines
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
#4 lore raw

PATCH 1/1 sunxi: Fix CONFIG_SUNXI_GMAC references

Quoted 19 lines

From: Jagan Teki <[email protected]>
Date: Mon, 7 Aug 2017 14:56:58 +0530

Quoted 15 lines · Simon Glass
Quoted 13 lines · Dave Prue

GMAC Initialization for sun7i targets has been broken since v2017.05-rc3 due to the renaming of CONFIG_SUNXI_GMAC to CONFIG_SUN7I_GMAC in Kconfig without propogating the name change throughout the code.

---

 arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 +-
 board/sunxi/Makefile                        | 2 +-
 include/configs/sunxi-common.h              | 2 +-
 scripts/build-whitelist.sh                  | 2 +-
 scripts/config_whitelist.txt                | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
Quoted 3 lines
Quoted 1 line

And makes the interface work again under OpenBSD, so:

#6 lore raw

PATCH 1/1 sunxi: Fix CONFIG_SUNXI_GMAC references

In reply to Jagan Teki

Am 07.08.2017 um 11:26 schrieb Jagan Teki:

Quoted 3 lines · Simon Glass
Quoted 2 lines · Dave Prue
Quoted 1 line

GMAC Initialization for sun7i targets has been broken since v2017.05-rc3

"initialization", but more importantly:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

due to the renaming of CONFIG_SUNXI_GMAC to CONFIG_SUN7I_GMAC in Kconfig without propogating the name change throughout the code.

"propagating" please :)

Cheers,
Andreas

Quoted 16 lines
Quoted 4 lines
Quoted 4 lines

---

Quoted 8 lines
Quoted 6 lines
 arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 +-
 board/sunxi/Makefile                        | 2 +-
 include/configs/sunxi-common.h              | 2 +-
 scripts/build-whitelist.sh                  | 2 +-
 scripts/config_whitelist.txt                | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

thanks!

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
#5 lore raw

PATCH 1/1 sunxi: Fix CONFIG_SUNXI_GMAC references

In reply to Mark Kettenis
Quoted 44 lines

X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable
autolearn_force=no version=3.4.0
Date: Mon, 7 Aug 2017 11:35:52 +0200 (CEST)
From: Mark Kettenis <[email protected]>
Cc: albert.u.boot at aribaud.net, jernej.skrabec at siol.net, u-boot at lists.denx.de,
andre.przywara at arm.com, hdegoede at redhat.com, icenowy at aosc.xyz, maxime.ripard at free-electrons.com, jagan at openedev.com, afaerber at suse.de
Sender: "U-Boot" <[email protected]>
X-XS4ALL-DNSBL-Checked: mxdrop302.xs4all.net checked 81.169.180.215 against DNS blacklists
X-CNFS-Analysis: v=2.2 cv=V9A/6qvi c=1 sm=0 tr=0
a=ONADgqKa62I6zSSZ3CeWOA==:117 a=ONADgqKa62I6zSSZ3CeWOA==:17 a=IkcTkHD0fZMA:10 a=xqWC_Br6kY4A:10 a=KeKAF7QvOSUA:10 a=WiVod9pSvdkA:10 a=pGLkceISAAAA:8 a=cm27Pg_UAAAA:8 a=yTmaW2WvAAAA:8 a=8flm3ZimAAAA:8 a=3tcz3bTJAAAA:8 a=YfCOm-DyAAAA:8 a=ulZhkHzn2l8uUku_rLcA:9 a=QEXdDO2ut3YA:10 a=6kGIvZw6iX1k4Y-7sg4_:22 a=xmb-EsYY8bH0VWELuYED:22 a=JtT7V0wkIbYGGTrklAfD:22 a=bqseOZt422ZGMqA63K3A:22 a=4EbjBm0RLgFgoQzmu6QD:22 a=zQLMK8awuJ6_Hvp-_9Ux:22
X-Virus-Scanned: by XS4ALL Virus Scanner
X-XS4ALL-Spam-Score: -0.5 () RP_MATCHES_RCVD, T_HEADER_FROM_DIFFERENT_DOMAINS
X-XS4ALL-Spam: NO
Envelope-To: mark.kettenis at xs4all.nl
X-MIME-Autoconverted: from base64 to 8bit by sibelius.xs4all.nl id v779cZ2M003524

Quoted 19 lines

From: Jagan Teki <[email protected]>
Date: Mon, 7 Aug 2017 14:56:58 +0530

Quoted 15 lines · Simon Glass
Quoted 13 lines · Dave Prue

GMAC Initialization for sun7i targets has been broken since v2017.05-rc3 due to the renaming of CONFIG_SUNXI_GMAC to CONFIG_SUN7I_GMAC in Kconfig without propogating the name change throughout the code.

---

 arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 +-
 board/sunxi/Makefile                        | 2 +-
 include/configs/sunxi-common.h              | 2 +-
 scripts/build-whitelist.sh                  | 2 +-
 scripts/config_whitelist.txt                | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
Quoted 8 lines
Quoted 3 lines
Quoted 1 line

And makes the interface work again under OpenBSD, so:

Actually the scripts/build-whitelist.sh change isn't right. It should also either be dropped or SUNXI_GMAC on the line above should be changed into SUN7I_GMAC. It's in a comment, but with the change the comment doesn't make sense anymore ;).