]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: dwmac4: Fix the MTL_OP_MODE_*_MASK operation
authorLey Foon Tan <leyfoon.tan@starfivetech.com>
Thu, 7 Nov 2024 06:36:35 +0000 (14:36 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Nov 2024 00:45:23 +0000 (16:45 -0800)
commit3fccba8fdc1b69a2a5a6f3100c3eacf6125aca7e
tree45dfe4137c172a5df6c4089794a64fba76968470
parent6d4a34fe429f64048f4a273a0b6b001c16613d8c
net: stmmac: dwmac4: Fix the MTL_OP_MODE_*_MASK operation

In order to mask off the bits, we need to use the '~' operator to invert
all the bits of _MASK and clear them.

Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241107063637.2122726-3-leyfoon.tan@starfivetech.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c