]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Set port type before setting its address
authorIdo Schimmel <idosch@mellanox.com>
Thu, 8 Sep 2016 06:16:02 +0000 (08:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Sep 2016 23:56:53 +0000 (16:56 -0700)
commit5d29a3866de45a2c1916fa21bd6001033c9069d1
tree211182527aa6482c4b186249673851fcff76b936
parentfd36947cdded9d77108d412bbb54ac7ce62f468b
mlxsw: spectrum: Set port type before setting its address

During port init, we currently set the port's type to Ethernet after
setting its MAC address. However, the hardware documentation states this
should be the other way around.

Align the driver with the hardware documentation and set the port's MAC
address after setting its type.

Fixes: a3f159160767 ("mlxsw: spectrum: Add initial support for Spectrum ASIC")
Signed-off-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