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

net: dsa: mv88e6xxx: NET_DSA_MV88E6XXX_PTP should depend on NET_DSA_MV88E6XXX

Making global2 support mandatory removed the Kconfig symbol
NET_DSA_MV88E6XXX_GLOBAL2. This symbol also served as an intermediate
symbol to make NET_DSA_MV88E6XXX_PTP depend on NET_DSA_MV88E6XXX. With
the symbol removed, the user is always asked about PTP support for
Marvell 88E6xxx switches, even if the latter support is not enabled.

Fix this by reinstating the dependency.

Fixes: 63368a7416df144b ("net: dsa: mv88e6xxx: Make global2 support mandatory")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Geert Uytterhoeven and committed by
David S. Miller
99bb2eba 3ffd3dad

+1 -1
+1 -1
drivers/net/dsa/mv88e6xxx/Kconfig
··· 12 12 config NET_DSA_MV88E6XXX_PTP 13 13 bool "PTP support for Marvell 88E6xxx" 14 14 default n 15 - depends on PTP_1588_CLOCK 15 + depends on NET_DSA_MV88E6XXX && PTP_1588_CLOCK 16 16 help 17 17 Say Y to enable PTP hardware timestamping on Marvell 88E6xxx switch 18 18 chips that support it.