Skip to content

Commit

Permalink
ptp: Make PTP_1588_CLOCK select rather than depend on PPS
Browse files Browse the repository at this point in the history
PTP hardware clock drivers that select PTP_1588_CLOCK must currently
also select PPS.  For those drivers that don't, the user must enable
PPS, then enable PTP_1588_CLOCK, then the driver.  Simplify things for
developers and users by putting this selection in one place.

Signed-off-by: Ben Hutchings <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Ben Hutchings authored and davem330 committed Nov 1, 2012
1 parent c562830 commit 42a7cce
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/intel/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ config IGB_PTP
bool "PTP Hardware Clock (PHC)"
default n
depends on IGB
select PPS
select PTP_1588_CLOCK
---help---
Say Y here if you want to use PTP Hardware Clock (PHC) in the
Expand Down Expand Up @@ -226,7 +225,6 @@ config IXGBE_PTP
bool "PTP Clock Support"
default n
depends on IXGBE
select PPS
select PTP_1588_CLOCK
---help---
Say Y here if you want support for 1588 Timestamping with a
Expand Down
1 change: 0 additions & 1 deletion drivers/net/ethernet/oki-semi/pch_gbe/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ if PCH_GBE
config PCH_PTP
bool "PCH PTP clock support"
default n
select PPS
select PTP_1588_CLOCK
select PTP_1588_CLOCK_PCH
---help---
Expand Down
5 changes: 1 addition & 4 deletions drivers/ptp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@

menu "PTP clock support"

comment "Enable Device Drivers -> PPS to see the PTP clock options."
depends on PPS=n

config PTP_1588_CLOCK
tristate "PTP clock support"
depends on PPS
select PPS
help
The IEEE 1588 standard defines a method to precisely
synchronize distributed clocks over Ethernet networks. The
Expand Down

0 comments on commit 42a7cce

Please sign in to comment.