public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@cherry.de>
To: Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Quentin Schulz <foss+uboot@0leil.net>,
	u-boot@lists.denx.de, uboot-stm32@st-md-mailman.stormreply.com,
	Paul Barker <paul.barker.ct@bp.renesas.com>
Cc: "Tom Rini" <trini@konsulko.com>,
	"Jerome Forissier" <jerome.forissier@arm.com>,
	"Marek Vasut" <marek.vasut+renesas@mailbox.org>,
	"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
	"Peng Fan" <peng.fan@nxp.com>, "Udit Kumar" <u-kumar1@ti.com>,
	"Alvin Šipraga" <alvin@pqrs.dk>,
	"Patrick Delaunay" <patrick.delaunay@foss.st.com>,
	"Patrice Chotard" <patrice.chotard@foss.st.com>,
	"Adam Ford" <aford173@gmail.com>,
	"Manoj Sai" <abbaraju.manojsai@amarulasolutions.com>,
	"Matteo Lisi" <matteo.lisi@engicam.com>,
	"Tim Harvey" <tharvey@gateworks.com>,
	"Mingkai Hu" <mingkai.hu@nxp.com>,
	"Pramod Kumar" <pramod.kumar_1@nxp.com>,
	"Gilles Talis" <gilles.talis@gmail.com>,
	"Le Jin" <le.jin@siemens.com>,
	"Jan Kiszka" <jan.kiszka@siemens.com>,
	"Kongyang Liu" <seashell11234455@gmail.com>,
	"Stefan Roese" <sr@denx.de>,
	"Francesco Dolcini" <francesco.dolcini@toradex.com>,
	"Michal Simek" <michal.simek@amd.com>,
	"Mattijs Korpershoek" <mkorpershoek@kernel.org>,
	"Casey Connolly" <casey.connolly@linaro.org>,
	"Vignesh Raghavendra" <vigneshr@ti.com>,
	"Bryan Brattlof" <bb@ti.com>,
	"Vaishnav Achath" <vaishnav.a@ti.com>,
	"Jayesh Choudhary" <j-choudhary@ti.com>,
	"Simon Glass" <sjg@chromium.org>,
	"Lukasz Majewski" <lukma@denx.de>, "Marek Vasut" <marex@denx.de>,
	"Sughosh Ganu" <sughosh.ganu@arm.com>, "Yao Zi" <me@ziyao.cc>,
	"Fabio Estevam" <festevam@gmail.com>,
	"Alice Guo" <alice.guo@nxp.com>,
	"Sam Protsenko" <semen.protsenko@linaro.org>,
	"Martyn Welch" <martyn.welch@collabora.com>,
	"Maarten Brock" <Maarten.Brock@sttls.nl>,
	"Kory Maincent" <kory.maincent@bootlin.com>,
	"Markus Schneider-Pargmann (TI.com)" <msp@baylibre.com>,
	"Padmarao Begari" <padmarao.begari@amd.com>,
	"Matthias Brugger" <mbrugger@suse.com>,
	"Mikhail Kshevetskiy" <mikhail.kshevetskiy@iopsys.eu>,
	"Heiko Schocher" <hs@nabladev.com>,
	"Andrew Goodbody" <andrew.goodbody@linaro.org>,
	"Peter Robinson" <pbrobinson@gmail.com>,
	"Brian Sune" <briansune@gmail.com>,
	"Julien Stephan" <jstephan@baylibre.com>,
	"Dinesh Maniyam" <dinesh.maniyam@altera.com>,
	"Ben Dooks" <ben.dooks@codethink.co.uk>,
	"Tien Fong Chee" <tien.fong.chee@altera.com>,
	"Leo Yu-Chi Liang" <ycliang@andestech.com>,
	"Weijie Gao" <weijie.gao@mediatek.com>,
	"Anshul Dalal" <anshuld@ti.com>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"Andre Przywara" <andre.przywara@arm.com>,
	"Andrew Davis" <afd@ti.com>,
	"Hrushikesh Salunke" <h-salunke@ti.com>,
	"Alexey Charkov" <alchark@gmail.com>,
	"Dario Binacchi" <dario.binacchi@amarulasolutions.com>,
	"Ye Li" <ye.li@nxp.com>, "Andreas Dannenberg" <dannenberg@ti.com>,
	"Chintan Vankar" <c-vankar@ti.com>,
	"Martin Schwan" <m.schwan@phytec.de>,
	"Benjamin Hahn" <B.Hahn@phytec.de>,
	"David Lechner" <dlechner@baylibre.com>,
	"Ariel D'Alessandro" <ariel.dalessandro@collabora.com>,
	"Dmitrii Merkurev" <dimorinny@google.com>,
	"Christian Marangi" <ansuelsmth@gmail.com>,
	"Robert Marko" <robert.marko@sartura.hr>,
	"Beiyan Yun" <root@infi.wang>,
	"Lucien.Jheng" <lucienzx159@gmail.com>,
	"Romain Gantois" <romain.gantois@bootlin.com>,
	"Siddharth Vadapalli" <s-vadapalli@ti.com>,
	"Kever Yang" <kever.yang@rock-chips.com>,
	"Jonas Karlman" <jonas@kwiboo.se>,
	"George Chan" <gchan9527@gmail.com>,
	"Balaji Selvanathan" <balaji.selvanathan@oss.qualcomm.com>,
	"Benjamin ROBIN" <dev@benjarobin.fr>,
	"Max Merchel" <Max.Merchel@ew.tq-group.com>,
	"Sean Edmond" <seanedmond@microsoft.com>,
	"Christoph Niedermaier" <cniedermaier@dh-electronics.com>,
	"Shantur Rathore" <i@shantur.com>,
	"Ying-Chun Liu (PaulLiu)" <paul.liu@linaro.org>,
	"Adriano Cordova" <adrianox@gmail.com>,
	"Sky Huang" <SkyLake.Huang@mediatek.com>
Subject: Re: [PATCH 3/6] net: make NET a menuconfig (and downgrade NO_NET to a simple config)
Date: Tue, 21 Apr 2026 10:37:54 +0200	[thread overview]
Message-ID: <4bc9cdaf-38bc-4edf-b19f-d7301c84b49c@cherry.de> (raw)
In-Reply-To: <18031190-2B66-4DEF-8382-6CB9DCCFA3A1@gmx.de>

Hi Heinrich,

On 4/20/26 10:24 PM, Heinrich Schuchardt wrote:
> Am 20. April 2026 13:36:09 MESZ schrieb Quentin Schulz <foss+uboot@0leil.net>:
>> From: Quentin Schulz <quentin.schulz@cherry.de>
>>
>> This will allow a bunch of simplifications across the code base.
>> Disabling NET is the equivalent of today's NO_NET choice. This means
>> that if NET is enabled, either the legacy or lwIP stack is necessarily
>> selected, which allows us to simplify if NET_LEGACY || NET_LWIP into
>> if NET in a later commit.
>>
>> Config fragments - or defconfigs including other defconfigs - setting
>> the network stack (NET_LEGACY or NET_LWIP) must also set NET (or unset
>> NO_NET) if the config they apply to - or the included defconfigs -
>> unsets NET (or selects NO_NET) as otherwise the NET_LEGACY and NET_LWIP
>> symbols are unreachable. This is the case for the two defconfig modified
>> in this commit.
>>
>> NO_NET is now a convenience symbol which hides NET entirely to avoid
>> modifying many defconfigs. If one selected NO_NET to disable the
>> networking stack in the past, this will still work for now. Technically,
>> we should be using the "transitional" Kconfig attribute but that is only
>> available since Kconfig from Linux kernel v6.18 and we're on 6.1 right
>> now.
>>
>> Note that this moves CONFIG_SYS_RX_ETH_BUFFER from under the Network
>> menu back into the main menu as it seems like it needs to be defined
>> even when there's no need for NET support at all and menuconfig option
>> doesn't work the same way as a menu.
>>
>> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
>> ---
>>
>> I'd say we should have everything net-related depends on NET as well,
>> so that disabling networking support with NET=n is also disabling
>> anything related (e.g. Ethernet controller and PHY drivers, USB
>> Ethernet, USB gadget CDC/RNDIS, network CLI commands, etc.).
>> ---
>> configs/am62px_evm_r5_ethboot_defconfig |  2 +-
>> configs/j722s_evm_r5_ethboot_defconfig  |  2 +-
>> net/Kconfig                             | 23 ++++++++++++-----------
>> 3 files changed, 14 insertions(+), 13 deletions(-)
>>
>> diff --git a/configs/am62px_evm_r5_ethboot_defconfig b/configs/am62px_evm_r5_ethboot_defconfig
>> index 8baec9d43ff..df49324b25a 100644
>> --- a/configs/am62px_evm_r5_ethboot_defconfig
>> +++ b/configs/am62px_evm_r5_ethboot_defconfig
>> @@ -5,7 +5,7 @@ CONFIG_ARCH_K3=y
>> CONFIG_SOC_K3_AM62P5=y
>> CONFIG_TARGET_AM62P5_R5_EVM=y
>> CONFIG_DEFAULT_DEVICE_TREE="k3-am62p5-r5-sk"
>> -CONFIG_NET_LEGACY=y
>> +# CONFIG_NO_NET is not set
> 
> Does this imply that NET_LEGACY is the default? Choosing LEGACY as default would not be plausible to me. We should use LWIP as default. Then every new board will use it, hopefully.
> 

(below, "current" means the value in master branch, so before this 
series is applied).

(current) CONFIG_NET is the default already, see 
https://source.denx.de/u-boot/u-boot/-/blob/master/Kconfig#L794-L824. 
This series does not aim to change anything but the name of the symbols. 
Yes, we could make NET_LWIP the new default stack, but not in this 
series. Also, we have an issue that if you enable SPL_NET you need the 
legacy stack, even in proper (according to 
https://source.denx.de/u-boot/u-boot/-/blob/master/common/spl/Kconfig#L1152-L1154). 
So we would need to tackle this first (we don't necessarily need to 
support lwIP in SPL, just that the choice in SPL shouldn't impact the 
choice in proper).

If you're asking about this defconfig specifically, it's simply because 
it is not a typical defconfig. It includes 
configs/am62px_evm_r5_defconfig which sets CONFIG_NO_NET=y. Because 
NO_NET used to (before this series) be a choice with (current) NET and 
NET_LWIP, am62px_evm_r5_ethboot_defconfig needed to override it with 
another choice, namely (current) NET. Because NET_LEGACY is 
automatically selected when NO_NET is unset (due to NET default y), we 
only need to unset NO_NET in configs/am62px_evm_r5_ethboot_defconfig to 
restore the current state of enabling the legacy stack (current NET, now 
NET_LEGACY). This is not changing anything, just moving things around.

Does this answer your question?

Cheers,
Quentin

  reply	other threads:[~2026-04-21 12:38 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-20 11:36 [PATCH 0/6] net: migrate NO_NET out of the networking stack choice Quentin Schulz
2026-04-20 11:36 ` [PATCH 1/6] move networking menu in net/Kconfig Quentin Schulz
2026-04-20 19:40   ` Simon Glass
2026-04-21  5:17   ` Ilias Apalodimas
2026-04-20 11:36 ` [PATCH 2/6] rename NET to NET_LEGACY Quentin Schulz
2026-04-20 19:42   ` Simon Glass
2026-04-21 10:16     ` Quentin Schulz
2026-04-21  5:17   ` Ilias Apalodimas
2026-04-20 11:36 ` [PATCH 3/6] net: make NET a menuconfig (and downgrade NO_NET to a simple config) Quentin Schulz
2026-04-20 19:42   ` Simon Glass
2026-04-20 20:24   ` Heinrich Schuchardt
2026-04-21  8:37     ` Quentin Schulz [this message]
2026-04-21 10:31       ` Heinrich Schuchardt
2026-04-20 11:36 ` [PATCH 4/6] simplify NET_LEGACY || NET_LWIP condition with NET condition Quentin Schulz
2026-04-20 19:42   ` Simon Glass
2026-04-20 11:36 ` [PATCH 5/6] doc: remove mention to non-existing TPL_NET Quentin Schulz
2026-04-20 19:42   ` Simon Glass
2026-04-20 11:36 ` [PATCH 6/6] boot: remove NO_NET use Quentin Schulz
2026-04-20 19:43   ` Simon Glass
2026-04-21  5:16   ` Ilias Apalodimas
2026-04-20 19:51 ` [0/6] net: migrate NO_NET out of the networking stack choice Simon Glass
2026-04-21 11:06   ` Quentin Schulz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4bc9cdaf-38bc-4edf-b19f-d7301c84b49c@cherry.de \
    --to=quentin.schulz@cherry.de \
    --cc=B.Hahn@phytec.de \
    --cc=Maarten.Brock@sttls.nl \
    --cc=Max.Merchel@ew.tq-group.com \
    --cc=SkyLake.Huang@mediatek.com \
    --cc=abbaraju.manojsai@amarulasolutions.com \
    --cc=adrianox@gmail.com \
    --cc=afd@ti.com \
    --cc=aford173@gmail.com \
    --cc=alchark@gmail.com \
    --cc=alice.guo@nxp.com \
    --cc=alvin@pqrs.dk \
    --cc=andre.przywara@arm.com \
    --cc=andrew.goodbody@linaro.org \
    --cc=anshuld@ti.com \
    --cc=ansuelsmth@gmail.com \
    --cc=ariel.dalessandro@collabora.com \
    --cc=balaji.selvanathan@oss.qualcomm.com \
    --cc=bb@ti.com \
    --cc=ben.dooks@codethink.co.uk \
    --cc=briansune@gmail.com \
    --cc=c-vankar@ti.com \
    --cc=casey.connolly@linaro.org \
    --cc=cniedermaier@dh-electronics.com \
    --cc=dannenberg@ti.com \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=dev@benjarobin.fr \
    --cc=dimorinny@google.com \
    --cc=dinesh.maniyam@altera.com \
    --cc=dlechner@baylibre.com \
    --cc=festevam@gmail.com \
    --cc=foss+uboot@0leil.net \
    --cc=francesco.dolcini@toradex.com \
    --cc=gchan9527@gmail.com \
    --cc=gilles.talis@gmail.com \
    --cc=h-salunke@ti.com \
    --cc=hs@nabladev.com \
    --cc=i@shantur.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=j-choudhary@ti.com \
    --cc=jan.kiszka@siemens.com \
    --cc=jerome.forissier@arm.com \
    --cc=jonas@kwiboo.se \
    --cc=jstephan@baylibre.com \
    --cc=kever.yang@rock-chips.com \
    --cc=kory.maincent@bootlin.com \
    --cc=le.jin@siemens.com \
    --cc=lucienzx159@gmail.com \
    --cc=lukma@denx.de \
    --cc=m.schwan@phytec.de \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=marex@denx.de \
    --cc=martyn.welch@collabora.com \
    --cc=matteo.lisi@engicam.com \
    --cc=mbrugger@suse.com \
    --cc=me@ziyao.cc \
    --cc=michal.simek@amd.com \
    --cc=mikhail.kshevetskiy@iopsys.eu \
    --cc=mingkai.hu@nxp.com \
    --cc=mkorpershoek@kernel.org \
    --cc=msp@baylibre.com \
    --cc=neil.armstrong@linaro.org \
    --cc=padmarao.begari@amd.com \
    --cc=patrice.chotard@foss.st.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=paul.barker.ct@bp.renesas.com \
    --cc=paul.liu@linaro.org \
    --cc=pbrobinson@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=pramod.kumar_1@nxp.com \
    --cc=robert.marko@sartura.hr \
    --cc=romain.gantois@bootlin.com \
    --cc=root@infi.wang \
    --cc=s-vadapalli@ti.com \
    --cc=seanedmond@microsoft.com \
    --cc=seashell11234455@gmail.com \
    --cc=semen.protsenko@linaro.org \
    --cc=sjg@chromium.org \
    --cc=sr@denx.de \
    --cc=sughosh.ganu@arm.com \
    --cc=tharvey@gateworks.com \
    --cc=tien.fong.chee@altera.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=u-kumar1@ti.com \
    --cc=uboot-stm32@st-md-mailman.stormreply.com \
    --cc=vaishnav.a@ti.com \
    --cc=vigneshr@ti.com \
    --cc=weijie.gao@mediatek.com \
    --cc=xypron.glpk@gmx.de \
    --cc=ycliang@andestech.com \
    --cc=ye.li@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox