]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Add the needed callbacks for mlxfw integration
authorYotam Gigi <yotamg@mellanox.com>
Tue, 23 May 2017 19:56:27 +0000 (21:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 21:46:17 +0000 (17:46 -0400)
commite691c79f19110d6e438bbed3e9337b2923a5dd11
treeb366acdf019aa4d6403276570cfb8f815cb19c30
parent2e5cb4d98203393a8fe227609b91f42b00d37b4d
mlxsw: spectrum: Add the needed callbacks for mlxfw integration

The mlxfw module defines several needed callbacks in order to flash the
device's firmware. As the mlxfw module is shared between several different
drivers, those callbacks are the glue functionality that is responsible
for hardware interaction. Add those callbacks using the MCQI, MCC, MCDA
registers.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c