diff mbox series

[U-Boot] PowerPC: phy: enable all phylib drivers when use phylib and tsec enet

Message ID 20180207020156.34735-1-qiang.zhao@nxp.com
State Accepted
Commit 990d06b0bcb0ad1d8a0d1846b2d4890db120364e
Delegated to: York Sun
Headers show
Series [U-Boot] PowerPC: phy: enable all phylib drivers when use phylib and tsec enet | expand

Commit Message

Qiang Zhao Feb. 7, 2018, 2:01 a.m. UTC
<config_phylib_all_drivers.h> should be included when CONFIG_PHYLIB and
CONFIG_TSEC_ENET are defined.

Fixes: 3146f0c017 ("Move PHYLIB to Kconfig")
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
---
 arch/powerpc/include/asm/config.h |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

Comments

York Sun Feb. 12, 2018, 10:41 p.m. UTC | #1
On 02/06/2018 06:22 PM, Zhao Qiang wrote:
> <config_phylib_all_drivers.h> should be included when CONFIG_PHYLIB and
> CONFIG_TSEC_ENET are defined.
> 
> Fixes: 3146f0c017 ("Move PHYLIB to Kconfig")
> Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
> ---

Applied to fsl-qoriq master, awaiting upstream. Thanks.

York
diff mbox series

Patch

diff --git a/arch/powerpc/include/asm/config.h b/arch/powerpc/include/asm/config.h
index 6aec815..8dd53f2 100644
--- a/arch/powerpc/include/asm/config.h
+++ b/arch/powerpc/include/asm/config.h
@@ -72,11 +72,9 @@ 
 #endif
 
 /* The TSEC driver uses the PHYLIB infrastructure */
-#ifndef CONFIG_PHYLIB
-#if defined(CONFIG_TSEC_ENET)
+#if defined(CONFIG_TSEC_ENET) && defined(CONFIG_PHYLIB)
 #include <config_phylib_all_drivers.h>
 #endif /* TSEC_ENET */
-#endif /* !CONFIG_PHYLIB */
 
 /* The FMAN driver uses the PHYLIB infrastructure */