Skip to contentSkip to conversation

PowerPC: phy: enable all phylib drivers when use phylib and tsec enet

PATCH New Zhao Qiang 2 participants 2 messages Feb 7, 2018 – Feb 12, 2018 PowerPC

lore
Share & tools
lore

Zhao Qiang

author
#0 lore raw

PATCH 1/1 PowerPC: phy: enable all phylib drivers when use phylib and tsec enet

<config_phylib_all_drivers.h> should be included when CONFIG_PHYLIB and CONFIG_TSEC_ENET are defined.

Fixes 3146f0c017 ("Move PHYLIB to Kconfig")
---
 arch/powerpc/include/asm/config.h |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
arch/powerpc/include/asm/config.h +1 -3
index 6aec815..8dd53f2 100644
@@ -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 */
 
Signature · 1 line
1.7.1
Applied
#1 lore raw

PATCH 1/1 PowerPC: phy: enable all phylib drivers when use phylib and tsec enet

Quoted 6 lines · Zhao Qiang

<config_phylib_all_drivers.h> should be included when CONFIG_PHYLIB and CONFIG_TSEC_ENET are defined.

Fixes 3146f0c017 ("Move PHYLIB to Kconfig")

---

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

York