summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorFlorian Fainelli <florian.fainelli@broadcom.com>2023-05-25 20:59:15 +0300
committerDavid S. Miller <davem@davemloft.net>2023-05-26 14:17:06 +0300
commit4781e965e655b0f1736856908f861939dac79b4e (patch)
tree8678c245852049d49eaeba8cbd8e6908a09e9bcb /tools/include
parentf26f03b3031938ad46c3fb617745e9fd4a289ce7 (diff)
downloadlinux-4781e965e655b0f1736856908f861939dac79b4e.tar.xz
net: phy: broadcom: Register dummy IRQ handler
In order to have our interrupt descriptor fully setup and in particular the action, ensure that we register a full fledged interrupt handler. This also allow us to set the interrupt polarity and flow through the same call. This is specifically necessary for kernel/irq/pm.c::suspend_device_irq to set the interrupt descriptor to the IRQD_WAKEUP_ARMED state and enable the interrupt for wake-up since it was still in a disabled state. Without an interrupt descriptor we would have ran into cases where the wake-up interrupt is not capable of waking up the system, specifically if we resumed the system ACPI S5 using the Ethernet PHY. In that case the Ethernet PHY interrupt would be pending by the time the kernel booted, which it would acknowledge but then we could never use it as a wake-up source again. Fixes: 8baddaa9d4ba ("net: phy: broadcom: Add support for Wake-on-LAN") Suggested-by: Doug Berger <doug.berger@broadcom.com> Debugged-by: Doug Berger <doug.berger@broadcom.com> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions