linux/drivers/net/ethernet/stmicro/stmmac
Nicolas Pitre d1cbfd771c ptp_clock: Allow for it to be optional
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>
2016-11-16 09:26:34 +01:00
..
altr_tse_pcs.c net: ethernet: Add TSE PCS support to dwmac-socfpga 2016-07-10 22:07:50 -07:00
altr_tse_pcs.h net: ethernet: Add TSE PCS support to dwmac-socfpga 2016-07-10 22:07:50 -07:00
chain_mode.c stmmac: optimize tx desc management 2016-03-02 14:21:32 -05:00
common.h stmmac: use IS_ENABLED() instead of checking for built-in or module 2016-09-12 20:27:59 -07:00
descs_com.h stmmac: change descriptor layout 2016-03-02 14:21:30 -05:00
descs.h stmmac: change descriptor layout 2016-03-02 14:21:30 -05:00
dwmac4_core.c stmmac: fix PWRDWN into the PMT register for global unicast. 2016-09-18 22:21:06 -04:00
dwmac4_descs.c net: ethernet: stmmac: GMAC4.xx: Fix TX descriptor preparation 2016-04-13 22:35:17 -04:00
dwmac4_descs.h stmmac: add descriptors function for GMAC 4.xx 2016-04-02 20:23:07 -04:00
dwmac4_dma.c stmmac: add DMA support for GMAC 4.xx 2016-04-02 20:23:08 -04:00
dwmac4_dma.h stmmac: add DMA support for GMAC 4.xx 2016-04-02 20:23:08 -04:00
dwmac4_lib.c stmmac: add DMA support for GMAC 4.xx 2016-04-02 20:23:08 -04:00
dwmac4.h drivers: net: stmmac: rework core ISR to better manage PCS and PMT 2016-06-28 08:54:23 -04:00
dwmac100_core.c stmmac: rework synopsys id read, moved to dwmac setup 2016-04-02 20:23:07 -04:00
dwmac100_dma.c stmmac: rework DMA bus setting and introduce new platform AXI structure 2016-03-02 14:21:30 -05:00
dwmac100.h stmmac: share reset function between dwmac100 and dwmac1000 2016-03-02 14:21:30 -05:00
dwmac1000_core.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-09-23 06:46:57 -04:00
dwmac1000_dma.c stmmac: rework get_hw_feature function 2016-04-02 20:23:07 -04:00
dwmac1000.h drivers: net: stmmac: rework core ISR to better manage PCS and PMT 2016-06-28 08:54:23 -04:00
dwmac_dma.h stmmac: rework DMA bus setting and introduce new platform AXI structure 2016-03-02 14:21:30 -05:00
dwmac_lib.c stmmac: share reset function between dwmac100 and dwmac1000 2016-03-02 14:21:30 -05:00
dwmac-generic.c
dwmac-ipq806x.c
dwmac-lpc18xx.c
dwmac-meson8b.c net: stmmac: add a glue driver for the Amlogic Meson 8b / GXBB DWMAC 2016-09-07 14:13:18 -07:00
dwmac-meson.c net: stmmac: update the module description of the dwmac-meson driver 2016-09-07 14:13:31 -07:00
dwmac-rk.c net: stmmac: dwmac-rk: add pd_gmac support for rk3399 2016-09-02 17:08:57 -07:00
dwmac-socfpga.c ethernet: stmicro: stmmac: dwmac-socfpga: add missing of_node_put after calling of_parse_phandle 2016-08-01 21:43:49 -07:00
dwmac-sti.c
dwmac-stm32.c net: ethernet: dwmac: fix non static symbol warning 2016-09-13 11:42:27 -04:00
dwmac-sunxi.c
enh_desc.c stmmac: rework the routines to show the ring status 2016-04-02 20:23:07 -04:00
Kconfig ptp_clock: Allow for it to be optional 2016-11-16 09:26:34 +01:00
Makefile ARM: SoC: late DT updates for v4.9 2016-10-07 21:34:49 -07:00
mmc_core.c stmmac: enhance mmc counter management 2016-04-02 20:23:08 -04:00
mmc.h stmmac: enhance mmc counter management 2016-04-02 20:23:08 -04:00
norm_desc.c stmmac: rework the routines to show the ring status 2016-04-02 20:23:07 -04:00
ring_mode.c stmmac: first frame prep at the end of xmit routine 2016-03-02 14:21:33 -05:00
stmmac_ethtool.c drivers: net: stmmac: add port selection programming 2016-06-28 08:54:23 -04:00
stmmac_hwtstamp.c
stmmac_main.c stmmac: fix error check when init ptp 2016-10-13 11:00:51 -04:00
stmmac_mdio.c net: stmmac: Fix incorrect memcpy source memory 2016-05-25 21:43:35 -07:00
stmmac_pci.c stmmac: let remove/resume/suspend functions take device pointer 2016-05-03 15:22:19 -04:00
stmmac_pcs.h drivers: net: stmmac: reworking the PCS code. 2016-06-28 08:54:23 -04:00
stmmac_platform.c net: ethernet: stmmac: add support of Synopsys 3.50a MAC IP 2016-09-01 14:03:40 -07:00
stmmac_platform.h stmmac: introduce get_stmmac_bsp_priv() helper 2016-09-07 14:13:13 -07:00
stmmac_ptp.c stmmac: fix error check when init ptp 2016-10-13 11:00:51 -04:00
stmmac_ptp.h
stmmac.h drivers: net: stmmac: rework core ISR to better manage PCS and PMT 2016-06-28 08:54:23 -04:00