]> 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)
commita14e4493f2a3d2dfb533f64d4fc88bc9238ebd7d
tree211182527aa6482c4b186249673851fcff76b936
parent8512848c3cbd6187bd5d26992845cf4c92977beb
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: 91747a7223b2 ("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