Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pch_gbe, ptp_pch: Fix the dependency direction between these drivers

In commit a24006ed12616bde1bbdb26868495906a212d8dc ('ptp: Enable clock
drivers along with associated net/PHY drivers') I wrongly made
PTP_1588_CLOCK_PCH depend on PCH_GBE. The dependency is really the
other way around. Therefore make PCH_GBE select PTP_1588_CLOCK_PCH
and remove the 'default y' from the latter.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ben Hutchings and committed by
David S. Miller
18d359ce e8e55d95

+1 -2
+1
drivers/net/ethernet/oki-semi/pch_gbe/Kconfig
··· 7 7 depends on PCI 8 8 select NET_CORE 9 9 select MII 10 + select PTP_1588_CLOCK_PCH 10 11 ---help--- 11 12 This is a gigabit ethernet driver for EG20T PCH. 12 13 EG20T PCH is the platform controller hub that is used in Intel's
-2
drivers/ptp/Kconfig
··· 72 72 73 73 config PTP_1588_CLOCK_PCH 74 74 tristate "Intel PCH EG20T as PTP clock" 75 - depends on PCH_GBE 76 75 select PTP_1588_CLOCK 77 - default y 78 76 help 79 77 This driver adds support for using the PCH EG20T as a PTP 80 78 clock. The hardware supports time stamping of PTP packets