* Re: [net PATCH] net: ethernet: mediatek: only enable WED for ARM64 architecture
@ 2026-09-22 17:03 netdev-bot+sashiko
2026-09-24 2:41 ` Jakub Kicinski
0 siblings, 1 reply; 3+ messages in thread
From: netdev-bot+sashiko @ 2026-09-22 17:03 UTC (permalink / raw)
To: yangshiji66
Cc: netdev, nbd, lorenzo, andrew+netdev, davem, edumazet, kuba,
pabeni, matthias.bgg, angelogioacchino.delregno, linux-kernel,
linux-arm-kernel, linux-mediatek, stable
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] Inappropriate `Fixes:` tag: the commit claims to fix
804775dfc288 ("net: ethernet: mtk_eth_soc: add support for Wireless…
--
net: ethernet: mediatek: only enable WED for ARM64 architecture
This narrows the dependency of the hidden def_bool symbol
NET_MEDIATEK_SOC_WED so it is only enabled on ARM64 ARCH_MEDIATEK
builds, on the grounds that only MT7622 and MT798x implement WED.
> diff --git a/drivers/net/ethernet/mediatek/Kconfig b/drivers/net/ethernet/mediatek/Kconfig
> index 2ba361f8ce7d..7737f2f15478 100644
> --- a/drivers/net/ethernet/mediatek/Kconfig
> +++ b/drivers/net/ethernet/mediatek/Kconfig
> Fixes: 804775dfc288 ("net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED)")
[Severity: Medium]
Is the Fixes: tag appropriate here? The changelog does not describe a
defect, only a hardware-scope observation and a prediction:
Currently, only MT7622 and MT798x SoCs support WED features. They
are all ARM64 platforms. And it is unlikely that MediaTek will
release a new net chip based on ARM32 architecture in the future.
As far as I can tell nothing misbehaves on 32-bit today. WED is only
instantiated when the ethernet DT node carries a mediatek,wed phandle:
drivers/net/ethernet/mediatek/mtk_eth_soc.c:mtk_probe() {
...
np = of_parse_phandle(pdev->dev.of_node,
"mediatek,wed", i);
if (!np)
break;
...
mtk_wed_add_hw(np, eth, eth->base + wdma_base, wdma_phy, i);
...
}
and git grep wed arch/arm/boot/dts/mediatek returns no matches, so no
32-bit MediaTek platform can reach mtk_wed_add_hw().
There also does not appear to be any 64-bit-only construct that a
depends on ARM64 would be repairing: mtk_wed.c, mtk_wed_wo.c,
mtk_wed_mcu.c and mtk_wed.h contain no readq/writeq, no >> 32 address
splitting and no CONFIG_64BIT conditionals (the only CONFIG_64BIT use in
the directory is in mtk_eth_soc.h, which this symbol does not gate).
> @@ -8,7 +8,7 @@ config NET_VENDOR_MEDIATEK
> if NET_VENDOR_MEDIATEK
>
> config NET_MEDIATEK_SOC_WED
> - depends on ARCH_MEDIATEK || COMPILE_TEST
> + depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
> def_bool NET_MEDIATEK_SOC != n
Since the Fixes: tag makes this a candidate for stable backporting, could
this silently flip a config symbol in released kernels? On a stable tree
with 32-bit ARCH_MEDIATEK, the depends on line becomes false and
NET_MEDIATEK_SOC_WED is a hidden def_bool, so make olddefconfig drops
mtk_wed*.o from the build with no prompt or warning.
Would it make sense to drop the Fixes: tag and describe this as a build
scope cleanup instead?
One more question on the ARM64 condition itself: if something in the WED
code really is not buildable on 32-bit, does the || COMPILE_TEST branch
leave that unaddressed, since it still builds the identical code on
non-ARM64 targets?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/OSZPR01MB8140B889AD227E0B547F5F87BC872%40OSZPR01MB8140.jpnprd01.prod.outlook.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [net PATCH] net: ethernet: mediatek: only enable WED for ARM64 architecture
2026-09-22 17:03 [net PATCH] net: ethernet: mediatek: only enable WED for ARM64 architecture netdev-bot+sashiko
@ 2026-09-24 2:41 ` Jakub Kicinski
0 siblings, 0 replies; 3+ messages in thread
From: Jakub Kicinski @ 2026-09-24 2:41 UTC (permalink / raw)
To: netdev-bot+sashiko
Cc: yangshiji66, netdev, nbd, lorenzo, andrew+netdev, davem,
edumazet, pabeni, matthias.bgg, angelogioacchino.delregno,
linux-kernel, linux-arm-kernel, linux-mediatek, stable
On Tue, 22 Sep 2026 17:03:12 +0000 netdev-bot+sashiko@kernel.org wrote:
> Is the Fixes: tag appropriate here? The changelog does not describe a
> defect, only a hardware-scope observation and a prediction:
>
> Currently, only MT7622 and MT798x SoCs support WED features. They
> are all ARM64 platforms. And it is unlikely that MediaTek will
> release a new net chip based on ARM32 architecture in the future.
>
> As far as I can tell nothing misbehaves on 32-bit today.
Not just the fixes tag, the whole commit seems rather pointless.
--
pw-bot: reject
^ permalink raw reply [flat|nested] 3+ messages in thread
* [net PATCH] net: ethernet: mediatek: only enable WED for ARM64 architecture
@ 2026-09-18 16:38 Shiji Yang
0 siblings, 0 replies; 3+ messages in thread
From: Shiji Yang @ 2026-09-18 16:38 UTC (permalink / raw)
To: netdev
Cc: Felix Fietkau, Lorenzo Bianconi, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Matthias Brugger,
AngeloGioacchino Del Regno, linux-kernel, linux-arm-kernel,
linux-mediatek, stable, Shiji Yang
Currently, only MT7622 and MT798x SoCs support WED features. They
are all ARM64 platforms. And it is unlikely that MediaTek will
release a new net chip based on ARM32 architecture in the future.
Fixes: 804775dfc288 ("net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED)")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
---
drivers/net/ethernet/mediatek/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mediatek/Kconfig b/drivers/net/ethernet/mediatek/Kconfig
index 2ba361f8ce7d..7737f2f15478 100644
--- a/drivers/net/ethernet/mediatek/Kconfig
+++ b/drivers/net/ethernet/mediatek/Kconfig
@@ -8,7 +8,7 @@ config NET_VENDOR_MEDIATEK
if NET_VENDOR_MEDIATEK
config NET_MEDIATEK_SOC_WED
- depends on ARCH_MEDIATEK || COMPILE_TEST
+ depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
def_bool NET_MEDIATEK_SOC != n
config NET_MEDIATEK_SOC
--
2.53.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-24 2:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-22 17:03 [net PATCH] net: ethernet: mediatek: only enable WED for ARM64 architecture netdev-bot+sashiko
2026-09-24 2:41 ` Jakub Kicinski
-- strict thread matches above, loose matches on Subject: below --
2026-09-18 16:38 Shiji Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®