net: ethernet: mtk_eth_soc: fix typo for declaration MT7988 ESW capability
authorBo-Cun Chen <bc-bocun.chen@mediatek.com>
Tue, 13 May 2025 04:27:30 +0000 (05:27 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 May 2025 02:28:21 +0000 (19:28 -0700)
commit1bdea6fad6fb985ff13828373c48e337c4e939f9
tree1c521eab64b52cd8508d1a33bd3e4d4f27532db2
parent09e76365baa1d3fb7617d48f00662d32dd9d4828
net: ethernet: mtk_eth_soc: fix typo for declaration MT7988 ESW capability

Since MTK_ESW_BIT is a bit number rather than a bitmap, it causes
MTK_HAS_CAPS to produce incorrect results. This leads to the ETH
driver not declaring MAC capabilities correctly for the MT7988 ESW.

Fixes: 445eb6448ed3 ("net: ethernet: mtk_eth_soc: add basic support for MT7988 SoC")
Signed-off-by: Bo-Cun Chen <bc-bocun.chen@mediatek.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/b8b37f409d1280fad9c4d32521e6207f63cd3213.1747110258.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_eth_soc.c