diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-10-31 11:33:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-01 11:35:18 -0400 |
commit | a24006ed12616bde1bbdb26868495906a212d8dc (patch) | |
tree | b03b42a75f1ff9ced6e2ab75efe6f7b3c8aa3ef2 /drivers/ptp/Kconfig | |
parent | 42a7ccef0a06519e2ea0be71d7c0f4ed9198509f (diff) |
ptp: Enable clock drivers along with associated net/PHY drivers
Where a PTP clock driver is associated with a net or PHY driver, it
should be enabled automatically whenever that driver is enabled.
Therefore:
- Make PTP clock drivers select rather than depending on PTP_1588_CLOCK
- Remove separate boolean options for PTP clock drivers that are built
as part of net driver modules. (This also fixes cases where the PTP
subsystem is wrongly forced to be built-in.)
- Set 'default y' for PTP clock drivers that depend on specific net
drivers but are built separately
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp/Kconfig')
-rw-r--r-- | drivers/ptp/Kconfig | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig index 131ef03fd11a..70c5836ebfc9 100644 --- a/drivers/ptp/Kconfig +++ b/drivers/ptp/Kconfig | |||
@@ -25,8 +25,9 @@ config PTP_1588_CLOCK | |||
25 | 25 | ||
26 | config PTP_1588_CLOCK_GIANFAR | 26 | config PTP_1588_CLOCK_GIANFAR |
27 | tristate "Freescale eTSEC as PTP clock" | 27 | tristate "Freescale eTSEC as PTP clock" |
28 | depends on PTP_1588_CLOCK | ||
29 | depends on GIANFAR | 28 | depends on GIANFAR |
29 | select PTP_1588_CLOCK | ||
30 | default y | ||
30 | help | 31 | help |
31 | This driver adds support for using the eTSEC as a PTP | 32 | This driver adds support for using the eTSEC as a PTP |
32 | clock. This clock is only useful if your PTP programs are | 33 | clock. This clock is only useful if your PTP programs are |
@@ -38,8 +39,9 @@ config PTP_1588_CLOCK_GIANFAR | |||
38 | 39 | ||
39 | config PTP_1588_CLOCK_IXP46X | 40 | config PTP_1588_CLOCK_IXP46X |
40 | tristate "Intel IXP46x as PTP clock" | 41 | tristate "Intel IXP46x as PTP clock" |
41 | depends on PTP_1588_CLOCK | ||
42 | depends on IXP4XX_ETH | 42 | depends on IXP4XX_ETH |
43 | select PTP_1588_CLOCK | ||
44 | default y | ||
43 | help | 45 | help |
44 | This driver adds support for using the IXP46X as a PTP | 46 | This driver adds support for using the IXP46X as a PTP |
45 | clock. This clock is only useful if your PTP programs are | 47 | clock. This clock is only useful if your PTP programs are |
@@ -50,13 +52,13 @@ config PTP_1588_CLOCK_IXP46X | |||
50 | will be called ptp_ixp46x. | 52 | will be called ptp_ixp46x. |
51 | 53 | ||
52 | comment "Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks." | 54 | comment "Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks." |
53 | depends on PTP_1588_CLOCK && (PHYLIB=n || NETWORK_PHY_TIMESTAMPING=n) | 55 | depends on PHYLIB=n || NETWORK_PHY_TIMESTAMPING=n |
54 | 56 | ||
55 | config DP83640_PHY | 57 | config DP83640_PHY |
56 | tristate "Driver for the National Semiconductor DP83640 PHYTER" | 58 | tristate "Driver for the National Semiconductor DP83640 PHYTER" |
57 | depends on PTP_1588_CLOCK | ||
58 | depends on NETWORK_PHY_TIMESTAMPING | 59 | depends on NETWORK_PHY_TIMESTAMPING |
59 | depends on PHYLIB | 60 | depends on PHYLIB |
61 | select PTP_1588_CLOCK | ||
60 | ---help--- | 62 | ---help--- |
61 | Supports the DP83640 PHYTER with IEEE 1588 features. | 63 | Supports the DP83640 PHYTER with IEEE 1588 features. |
62 | 64 | ||
@@ -70,8 +72,9 @@ config DP83640_PHY | |||
70 | 72 | ||
71 | config PTP_1588_CLOCK_PCH | 73 | config PTP_1588_CLOCK_PCH |
72 | tristate "Intel PCH EG20T as PTP clock" | 74 | tristate "Intel PCH EG20T as PTP clock" |
73 | depends on PTP_1588_CLOCK | ||
74 | depends on PCH_GBE | 75 | depends on PCH_GBE |
76 | select PTP_1588_CLOCK | ||
77 | default y | ||
75 | help | 78 | help |
76 | This driver adds support for using the PCH EG20T as a PTP | 79 | This driver adds support for using the PCH EG20T as a PTP |
77 | clock. The hardware supports time stamping of PTP packets | 80 | clock. The hardware supports time stamping of PTP packets |