mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 05:25:11 +07:00
d1cbfd771c
In order to break the hard dependency between the PTP clock subsystem and ethernet drivers capable of being clock providers, this patch provides simple PTP stub functions to allow linkage of those drivers into the kernel even when the PTP subsystem is configured out. Drivers must be ready to accept NULL from ptp_clock_register() in that case. And to make it possible for PTP to be configured out, the select statement in those driver's Kconfig menu entries is converted to the new "imply" statement. This way the PTP subsystem may have Kconfig dependencies of its own, such as POSIX_TIMERS, without having to make those ethernet drivers unavailable if POSIX timers are cconfigured out. And when support for POSIX timers is selected again then the default config option for PTP clock support will automatically be adjusted accordingly. The pch_gbe driver is a bit special as it relies on extra code in drivers/ptp/ptp_pch.c. Therefore we let the make process descend into drivers/ptp/ even if PTP_1588_CLOCK is unselected. Signed-off-by: Nicolas Pitre <nico@linaro.org> Acked-by: Richard Cochran <richardcochran@gmail.com> Acked-by: Edward Cree <ecree@solarflare.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: John Stultz <john.stultz@linaro.org> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Cc: Paul Bolle <pebolle@tiscali.nl> Cc: linux-kbuild@vger.kernel.org Cc: netdev@vger.kernel.org Cc: Michal Marek <mmarek@suse.com> Link: http://lkml.kernel.org/r/1478841010-28605-4-git-send-email-nicolas.pitre@linaro.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
33 lines
885 B
Plaintext
33 lines
885 B
Plaintext
#
|
|
# Samsung Ethernet device configuration
|
|
#
|
|
|
|
config NET_VENDOR_SAMSUNG
|
|
bool "Samsung Ethernet devices"
|
|
default y
|
|
---help---
|
|
If you have a network (Ethernet) chipset belonging to this class,
|
|
say Y.
|
|
|
|
Note that the answer to this question does not directly affect
|
|
the kernel: saying N will just case the configurator to skip all
|
|
the questions about Samsung chipsets. If you say Y, you will be asked
|
|
for your specific chipset/driver in the following questions.
|
|
|
|
if NET_VENDOR_SAMSUNG
|
|
|
|
config SXGBE_ETH
|
|
tristate "Samsung 10G/2.5G/1G SXGBE Ethernet driver"
|
|
depends on HAS_IOMEM && HAS_DMA
|
|
select PHYLIB
|
|
select CRC32
|
|
imply PTP_1588_CLOCK
|
|
---help---
|
|
This is the driver for the SXGBE 10G Ethernet IP block found on
|
|
Samsung platforms.
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called samsung-sxgbe.
|
|
|
|
endif # NET_VENDOR_SAMSUNG
|