diff options
author | 2019-02-12 19:56:15 +0100 | |
---|---|---|
committer | 2019-02-13 20:44:12 -0800 | |
commit | b79555d5d8d32643e9d7193341dcaff13bf9ffcd (patch) | |
tree | eba13e945a7e44d0cc6dc4dcacac39e306e2d22e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | sctp: set stream ext to NULL after freeing it in sctp_stream_outq_migrate (diff) | |
download | wireguard-linux-b79555d5d8d32643e9d7193341dcaff13bf9ffcd.tar.xz wireguard-linux-b79555d5d8d32643e9d7193341dcaff13bf9ffcd.zip |
net: phy: fix interrupt handling in non-started states
phylib enables interrupts before phy_start() has been called, and if
we receive an interrupt in a non-started state, the interrupt handler
returns IRQ_NONE. This causes problems with at least one Marvell chip
as reported by Andrew.
Fix this by handling interrupts the same as in phy_mac_interrupt(),
basically always running the phylib state machine. It knows when it
has to do something and when not.
This change allows to handle interrupts gracefully even if they
occur in a non-started state.
Fixes: 2b3e88ea6528 ("net: phy: improve phy state checking")
Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions