]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: dwmac-mediatek: Fix inverted handling of mediatek,mac-wol
authorNĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Sat, 9 Nov 2024 15:16:32 +0000 (10:16 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Nov 2024 03:23:02 +0000 (19:23 -0800)
commita03b18a71c128846360cc81ac6fdb0e7d41597b4
tree1b1e1f191948ad7815a076d5ecf21e02e94a6dfd
parente28acc9c1ccfcb24c08e020828f69d0a915b06ae
net: stmmac: dwmac-mediatek: Fix inverted handling of mediatek,mac-wol

The mediatek,mac-wol property is being handled backwards to what is
described in the binding: it currently enables PHY WOL when the property
is present and vice versa. Invert the driver logic so it matches the
binding description.

Fixes: fd1d62d80ebc ("net: stmmac: replace the use_phy_wol field with a flag")
Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Link: https://patch.msgid.link/20241109-mediatek-mac-wol-noninverted-v2-1-0e264e213878@collabora.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c