OSDN Git Service

net: bcmgenet: Support wake-up from s2idle
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 17 Feb 2023 18:34:14 +0000 (10:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2023 11:40:53 +0000 (11:40 +0000)
commit3fcdf2dfefb6313ea0395519d1784808c0b6559b
tree865d92753eb13d18f249ae1d316ce7e6158c5a20
parent5f1eb1ff58ea122e24adf0bc940f268ed2227462
net: bcmgenet: Support wake-up from s2idle

When we suspend into s2idle we also need to enable the interrupt line
that generates the MPD and HFB interrupts towards the host CPU interrupt
controller (typically the ARM GIC or MIPS L1) to make it exit s2idle.

When we suspend into other modes such as "standby" or "mem" we engage a
power management state machine which will gate off the CPU L1 controller
(priv->irq0) and ungate the side band wake-up interrupt (priv->wol_irq).
It is safe to have both enabled as wake-up sources because they are
mutually exclusive given any suspend mode.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c