aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorJeremy Linton <[email protected]>2022-03-10 04:55:35 +0000
committerJakub Kicinski <[email protected]>2022-03-10 22:54:32 +0000
commit00b022f8f876a3a036b0df7f971001bef6398605 (patch)
tree540b61a082088fee97e1efc555d0743d1dffee23 /tools/perf/scripts/python/check-perf-trace.py
parentnet: arc_emac: Fix use after free in arc_mdio_probe() (diff)
downloadkernel-00b022f8f876a3a036b0df7f971001bef6398605.tar.gz
kernel-00b022f8f876a3a036b0df7f971001bef6398605.zip
net: bcmgenet: Don't claim WOL when its not available
Some of the bcmgenet platforms don't correctly support WOL, yet ethtool returns: "Supports Wake-on: gsf" which is false. Ideally if there isn't a wol_irq, or there is something else that keeps the device from being able to wakeup it should display: "Supports Wake-on: d" This patch checks whether the device can wakup, before using the hard-coded supported flags. This corrects the ethtool reporting, as well as the WOL configuration because ethtool verifies that the mode is supported before attempting it. Fixes: c51de7f3976b ("net: bcmgenet: add Wake-on-LAN support code") Signed-off-by: Jeremy Linton <[email protected]> Tested-by: Peter Robinson <[email protected]> Acked-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions