summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYotam Gigi <yotamg@mellanox.com>2017-06-01 16:26:46 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-01 12:25:41 -0400
commitce6ef68f433f2c97e5d2cf35d2b694e17592d350 (patch)
tree938411cbf6d3b09aa4dc466d3fc54d01af656053 /arch
parent40aa306f8dafaf872da1a71479e933bd3ce0c294 (diff)
mlxsw: spectrum: Implement the ethtool flash_device callback
Add callback to the ethtool flash_device op. This callback uses the mlxfw module to flash the new firmware file to the device. As the firmware flash process takes about 20 seconds and ethtool takes the rtnl lock during the flash_device callback, release the rtnl lock at the beginning of the flash process and take it again before leaving the callback. This way, the rtnl is not held during the process. To make sure the device does not get deleted during the flash process, take a reference to it before releasing the rtnl lock. Signed-off-by: Yotam Gigi <yotamg@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions