diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2022-12-05 23:46:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-12-19 14:36:45 +0300 |
commit | 972707bae3d7f70b897e893f35cae69030283752 (patch) | |
tree | 800b660b3d6c3ac62c798849db3556183db0de9c /drivers/pinctrl/nuvoton | |
parent | 289721fe0993b1a1f28c751c6d56fabedb25cf64 (diff) | |
download | linux-972707bae3d7f70b897e893f35cae69030283752.tar.xz |
net: fec: properly guard irq coalesce setup
commit 7e6303567ce3ca506e4a2704e4baa86f1d8bde02 upstream.
Prior to the Fixes: commit, the initialization code went through the
same fec_enet_set_coalesce() function as used by ethtool, and that
function correctly checks whether the current variant has support for
irq coalescing.
Now that the initialization code instead calls fec_enet_itr_coal_set()
directly, that call needs to be guarded by a check for the
FEC_QUIRK_HAS_COALESCE bit.
Fixes: df727d4547de (net: fec: don't reset irq coalesce settings to defaults on "ip link up")
Reported-by: Greg Ungerer <gregungerer@westnet.com.au>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20221205204604.869853-1-linux@rasmusvillemoes.dk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pinctrl/nuvoton')
0 files changed, 0 insertions, 0 deletions