linux/drivers/net/dsa
Johnny S. Lee 945e58bdaf net: dsa: mv88e6xxx: depend on PTP conditionally
[ Upstream commit 30e7255375 ]

PTP hardware timestamping related objects are not linked when PTP
support for MV88E6xxx (NET_DSA_MV88E6XXX_PTP) is disabled, therefore
NET_DSA_MV88E6XXX should not depend on PTP_1588_CLOCK_OPTIONAL
regardless of NET_DSA_MV88E6XXX_PTP.

Instead, condition more strictly on how NET_DSA_MV88E6XXX_PTP's
dependencies are met, making sure that it cannot be enabled when
NET_DSA_MV88E6XXX=y and PTP_1588_CLOCK=m.

In other words, this commit allows NET_DSA_MV88E6XXX to be built-in
while PTP_1588_CLOCK is a module, as long as NET_DSA_MV88E6XXX_PTP is
prevented from being enabled.

Fixes: e5f3155267 ("ethernet: fix PTP_1588_CLOCK dependencies")
Signed-off-by: Johnny S. Lee <foss@jsl.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-01-12 11:59:10 +01:00
..
b53 net: dsa: b53: Add SPI ID table 2021-12-08 09:04:47 +01:00
hirschmann net/dsa/hirschmann: Add missing of_node_get() in hellcreek_led_setup() 2022-07-07 17:53:27 +02:00
microchip net: dsa: microchip: ksz9477: fix fdb_dump last invalid entry 2022-08-25 11:40:24 +02:00
mv88e6xxx net: dsa: mv88e6xxx: depend on PTP conditionally 2023-01-12 11:59:10 +01:00
ocelot net: dsa: felix: fix ethtool 256-511 and 512-1023 TX packet counters 2022-08-25 11:40:25 +02:00
qca net: dsa: ar9331: register the mdiobus under devres 2022-02-16 12:56:28 +01:00
sja1105 net: dsa: sja1105: fix memory leak in sja1105_setup_devlink_regions() 2022-12-14 11:37:28 +01:00
xrs700x net: dsa: xrs700x: Use irqsave variant for u64 stats update 2022-09-08 12:28:02 +02:00
bcm_sf2.c net: dsa: bcm_sf2: force pause link settings 2022-07-07 17:53:25 +02:00
bcm_sf2.h net: dsa: bcm_sf2: setup BCM4908 internal crossbar 2021-03-12 17:06:37 -08:00
bcm_sf2_cfp.c net: dsa: bcm_sf2_cfp: fix an incorrect NULL check on list iterator 2022-04-08 14:23:54 +02:00
bcm_sf2_regs.h net: dsa: bcm_sf2: fix BCM4908 RGMII reg(s) 2021-03-18 14:44:05 -07:00
dsa_loop.c net: dsa: Fix possible memory leaks in dsa_loop_init() 2022-11-10 18:15:27 +01:00
dsa_loop.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dsa_loop_bdinfo.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
Kconfig net: dsa: restrict SMSC_LAN9303_I2C kconfig 2022-06-09 10:23:03 +02:00
lan9303-core.c net: lan9303: Fix read error execution path 2022-12-31 13:14:20 +01:00
lan9303.h net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
lan9303_i2c.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
lan9303_mdio.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
lantiq_gswip.c net: dsa: lantiq_gswip: Fix refcount leak in gswip_gphy_fw_list 2022-06-14 18:36:17 +02:00
lantiq_pce.h net: dsa: Use the correct style for SPDX License Identifier 2019-09-22 15:25:08 -07:00
Makefile net: dsa: add Arrow SpeedChips XRS700x driver 2021-01-15 15:37:37 -08:00
mt7530.c net: mt7531: only do PLL once after the reset 2022-10-05 10:39:38 +02:00
mt7530.h net: dsa: mt7530: manually set up VLAN ID 0 2021-08-25 11:09:31 +01:00
mv88e6060.c net: dsa: mv88e6060: prevent crash on an unused port 2022-08-25 11:40:23 +02:00
mv88e6060.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
qca8k.c net: dsa: qca8k: reset cpu port on MTU change 2022-07-12 16:35:10 +02:00
qca8k.h net: dsa: qca8k: add support for internal phy and internal mdio 2021-05-14 15:30:22 -07:00
realtek-smi-core.c net: dsa: realtek: register the MDIO bus under devres 2021-09-21 13:52:16 +01:00
realtek-smi-core.h net: dsa: propagate extack to .port_vlan_filtering 2021-02-14 17:38:12 -08:00
rtl8366.c net: dsa: rtl8366: Fix a bug in deleting VLANs 2021-11-18 19:16:26 +01:00
rtl8366rb.c net: dsa: rtl8366rb: Fix off-by-one bug 2021-11-18 19:16:26 +01:00
vitesse-vsc73xx-core.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
vitesse-vsc73xx-platform.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
vitesse-vsc73xx-spi.c net: dsa: vitesse-vsc73xx: silent spi_device_id warnings 2022-07-29 17:25:21 +02:00
vitesse-vsc73xx.h net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00