Skip to contentSkip to conversation

net: dpaa2: improve PTP Kconfig option

PATCH Applied Yangbo Lu 3 participants 3 messages Jan 21, 2019 – Jan 23, 2019

Subsystems (3)
lore
Share & tools
lore

Yangbo Lu

author
#0 lore raw

PATCH v2 1/1 net: dpaa2: improve PTP Kconfig option

Converted to use "imply" instead of "select" for PTP_1588_CLOCK driver selecting. This could break the hard dependency between the PTP clock subsystem and ethernet drivers.
This patch also set "default y" for dpaa2 ptp driver building to provide user an available ptp clock in default.

---
Changes for v2:
- Converted to use imply for PTP_1588_CLOCK.
- Modified commit message.

---
 drivers/net/ethernet/freescale/dpaa2/Kconfig |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/net/ethernet/freescale/dpaa2/Kconfig +3 -2
index 809a155..f6d244c 100644
@@ -9,8 +9,9 @@ config FSL_DPAA2_ETH
 
 config FSL_DPAA2_PTP_CLOCK
 	tristate "Freescale DPAA2 PTP Clock"
-	depends on FSL_DPAA2_ETH && POSIX_TIMERS
-	select PTP_1588_CLOCK
+	depends on FSL_DPAA2_ETH
+	imply PTP_1588_CLOCK
+	default y
 	help
 	  This driver adds support for using the DPAA2 1588 timer module
 	  as a PTP clock.
Signature · 1 line
1.7.1
Acked-by on v2 1/1
#1 lore raw
Quoted 7 lines · Yangbo Lu

Converted to use "imply" instead of "select" for PTP_1588_CLOCK driver selecting. This could break the hard dependency between the PTP clock subsystem and ethernet drivers.
This patch also set "default y" for dpaa2 ptp driver building to provide user an available ptp clock in default.

maintainer Applied
#2 lore raw
In reply to Yangbo Lu

From: Yangbo Lu <[email protected]>
Date: Mon, 21 Jan 2019 14:26:37 +0800

Quoted 11 lines

Converted to use "imply" instead of "select" for PTP_1588_CLOCK driver selecting. This could break the hard dependency between the PTP clock subsystem and ethernet drivers.
This patch also set "default y" for dpaa2 ptp driver building to provide user an available ptp clock in default.

---
Changes for v2:
- Converted to use imply for PTP_1588_CLOCK.
- Modified commit message.

Applied.