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)
commit3247ff2b318f3eeaaf32163ce39ddaac23e9a6f9
tree211182527aa6482c4b186249673851fcff76b936
parent40d259045500c6431633f215516c1f94bac8c62f
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: 56ade8fe3fe1 ("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