net: bcmgenet: Properly overlay PHY and MAC Wake-on-LAN capabilities
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Tue, 6 Aug 2024 17:56:59 +0000 (10:56 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 8 Aug 2024 15:29:29 +0000 (08:29 -0700)
commit9ee09edc05f20422e7ced84b1f8a5d3359926ac8
treec405f760fd48be118f2c332942c7b6165b1f9195
parent86a41ea9fd79ddb6145cb8ebf5aeafceabca6f7d
net: bcmgenet: Properly overlay PHY and MAC Wake-on-LAN capabilities

Some Wake-on-LAN modes such as WAKE_FILTER may only be supported by the MAC,
while others might be only supported by the PHY. Make sure that the .get_wol()
returns the union of both rather than only that of the PHY if the PHY supports
Wake-on-LAN.

Fixes: 7e400ff35cbe ("net: bcmgenet: Add support for PHY-based Wake-on-LAN")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20240806175659.3232204-1-florian.fainelli@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c