[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220519230905.mkuwi3ytguxrwbpl@skbuf>
Date: Fri, 20 May 2022 02:09:05 +0300
From: Vladimir Oltean <olteanv@...il.com>
To: Randy Dunlap <rdunlap@...radead.org>
Cc: netdev@...r.kernel.org, patches@...ts.linux.dev,
Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Juergen Borleis <jbe@...gutronix.de>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Subject: Re: [PATCH] net: dsa: restrict SMSC_LAN9303_I2C kconfig
Hi Randy,
On Thu, May 19, 2022 at 02:33:51PM -0700, Randy Dunlap wrote:
> 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 so that it is limited to VLAN_8021Q if
> the latter is enabled and results in changing NET_DSA_SMSC_LAN9303_I2C
> from =y to =m and eliminating 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: be4e119f9914 ("net: dsa: LAN9303: add I2C managed mode support")
The Fixes: tag is incorrect. It should be:
Fixes: 430065e26719 ("net: dsa: lan9303: add VLAN IDs to master device")
> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
> Cc: Andrew Lunn <andrew@...n.ch>
> Cc: Vivien Didelot <vivien.didelot@...il.com>
> Cc: Florian Fainelli <f.fainelli@...il.com>
> Cc: Vladimir Oltean <olteanv@...il.com>
> Cc: Juergen Borleis <jbe@...gutronix.de>
> Cc: "David S. Miller" <davem@...emloft.net>
> Cc: Eric Dumazet <edumazet@...gle.com>
> Cc: Jakub Kicinski <kuba@...nel.org>
> Cc: Paolo Abeni <pabeni@...hat.com>
> ---
> drivers/net/dsa/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> --- a/drivers/net/dsa/Kconfig
> +++ b/drivers/net/dsa/Kconfig
> @@ -82,6 +82,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
I'm pretty sure that NET_DSA_SMSC_LAN9303_MDIO needs the same treatment
as NET_DSA_SMSC_LAN9303_I2C. And the "depends" line can now be removed
from NET_DSA_SMSC_LAN9303, it serves no purpose.
> select NET_DSA_SMSC_LAN9303
> select REGMAP_I2C
> help
Powered by blists - more mailing lists