]> Git Repo - linux.git/commitdiff
net: dsa: restrict SMSC_LAN9303_I2C kconfig
authorRandy Dunlap <[email protected]>
Fri, 20 May 2022 05:15:23 +0000 (22:15 -0700)
committerDavid S. Miller <[email protected]>
Sun, 22 May 2022 22:06:59 +0000 (23:06 +0100)
Since kconfig 'select' does not follow dependency chains, if symbol KSA
selects KSB, then KSA should also depend on the same symbols that KSB
depends on, in order to prevent Kconfig warnings and possible build
errors.

Change NET_DSA_SMSC_LAN9303_I2C and NET_DSA_SMSC_LAN9303_MDIO so that
they are limited to VLAN_8021Q if the latter is enabled. This prevents
the Kconfig warning:

WARNING: unmet direct dependencies detected for NET_DSA_SMSC_LAN9303
  Depends on [m]: NETDEVICES [=y] && NET_DSA [=y] && (VLAN_8021Q [=m] || VLAN_8021Q [=m]=n)
  Selected by [y]:
  - NET_DSA_SMSC_LAN9303_I2C [=y] && NETDEVICES [=y] && NET_DSA [=y] && I2C [=y]

Fixes: 430065e26719 ("net: dsa: lan9303: add VLAN IDs to master device")
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Andrew Lunn <[email protected]>
Cc: Vivien Didelot <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Vladimir Oltean <[email protected]>
Cc: Juergen Borleis <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Mans Rullgard <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/dsa/Kconfig

index 37a3dabdce313a6dbec625aba77bb5cdc36f9e54..6d1fcb08bba1fc67a7122abfc465e0beee91a1f8 100644 (file)
@@ -72,7 +72,6 @@ source "drivers/net/dsa/realtek/Kconfig"
 
 config NET_DSA_SMSC_LAN9303
        tristate
-       depends on VLAN_8021Q || VLAN_8021Q=n
        select NET_DSA_TAG_LAN9303
        select REGMAP
        help
@@ -82,6 +81,7 @@ config NET_DSA_SMSC_LAN9303
 config NET_DSA_SMSC_LAN9303_I2C
        tristate "SMSC/Microchip LAN9303 3-ports 10/100 ethernet switch in I2C managed mode"
        depends on I2C
+       depends on VLAN_8021Q || VLAN_8021Q=n
        select NET_DSA_SMSC_LAN9303
        select REGMAP_I2C
        help
@@ -91,6 +91,7 @@ config NET_DSA_SMSC_LAN9303_I2C
 config NET_DSA_SMSC_LAN9303_MDIO
        tristate "SMSC/Microchip LAN9303 3-ports 10/100 ethernet switch in MDIO managed mode"
        select NET_DSA_SMSC_LAN9303
+       depends on VLAN_8021Q || VLAN_8021Q=n
        help
          Enable access functions if the SMSC/Microchip LAN9303 is configured
          for MDIO managed mode.
This page took 0.058783 seconds and 4 git commands to generate.