diff options
author | Ioana Ciornei <[email protected]> | 2020-11-09 17:46:01 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2020-11-11 14:09:54 -0800 |
commit | 214c798ba1a4e8ff3355d933a46b8a1f27d9a9e7 (patch) | |
tree | 6849e6f90fef13d449ba99d93290793676339d68 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 8ed1045bb828cd04326369cd66afeb48af2582ac (diff) |
net: phy: aquantia: do not return an error on clearing pending IRQs
The referenced commit added in .config_intr() the part of code which upon
configuration of the IRQ state it also clears up any pending IRQ. If
there were actually pending IRQs, a read on the IRQ status register will
return something non zero. This should not result in the callback
returning an error.
Fix this by returning an error only when the result of the
phy_read_mmd() is negative.
Fixes: e11ef96d44f1 ("net: phy: aquantia: remove the use of .ack_interrupt()")
Signed-off-by: Ioana Ciornei <[email protected]>
Tested-by: Camelia Groza <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions