aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorBrett Creeley <brett@pensando.io>2022-01-24 10:53:00 -0800
committerDavid S. Miller <davem@davemloft.net>2022-01-25 11:15:08 +0000
commitb8fd0271dad00b953caaabe73474788d3d19e252 (patch)
treed16ccbebea3daeb116b417384f2b97fcce918203 /tools/perf/scripts/python/export-to-sqlite.py
parentionic: separate function for watchdog init (diff)
downloadlinux-dev-b8fd0271dad00b953caaabe73474788d3d19e252.tar.xz
linux-dev-b8fd0271dad00b953caaabe73474788d3d19e252.zip
ionic: Don't send reset commands if FW isn't running
It's possible the FW is already shutting down while the driver is being removed and/or when the driver is going through reset. This can cause unexpected/unnecessary errors to be printed: eth0: DEV_CMD IONIC_CMD_PORT_RESET (12) error, IONIC_RC_ERROR (29) failed eth1: DEV_CMD IONIC_CMD_RESET (3) error, IONIC_RC_ERROR (29) failed Fix this by checking the FW status register before issuing the reset commands. Also, since err may not be assigned in ionic_port_reset(), assign it a default value of 0, and remove an unnecessary log message. Fixes: fbfb8031533c ("ionic: Add hardware init and device commands") Signed-off-by: Brett Creeley <brett@pensando.io> Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions