]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: mtk_eth: add COMPILE_TEST support
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 13 Dec 2021 11:23:22 +0000 (12:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Dec 2021 15:07:40 +0000 (15:07 +0000)
Improve the build testing of mtk_eth drivers by enabling them when
COMPILE_TEST is selected. Moreover COMPILE_TEST will be useful
for the driver development.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/Kconfig

index c357c193378e2d3b28af88ba34807fff63883251..86d356b4388d00a61a108f7665feae9fc377acf3 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config NET_VENDOR_MEDIATEK
        bool "MediaTek devices"
-       depends on ARCH_MEDIATEK || SOC_MT7621 || SOC_MT7620
+       depends on ARCH_MEDIATEK || SOC_MT7621 || SOC_MT7620 || COMPILE_TEST
        help
          If you have a Mediatek SoC with ethernet, say Y.
 
@@ -10,6 +10,7 @@ if NET_VENDOR_MEDIATEK
 config NET_MEDIATEK_SOC
        tristate "MediaTek SoC Gigabit Ethernet support"
        depends on NET_DSA || !NET_DSA
+       select PINCTRL
        select PHYLINK
        select DIMLIB
        help