diff options
author | Ido Schimmel <idosch@mellanox.com> | 2019-05-29 11:47:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-30 12:59:46 -0700 |
commit | 961cf99a074f55e1d6deded7590226f6cfca9fb6 (patch) | |
tree | 2420a996ec6788f7dac2a17f12bb93877c019269 /drivers/net/ethernet/mellanox/mlxsw/reg.h | |
parent | mlxsw: i2c: Allow flexible setting of I2C transactions size (diff) | |
download | linux-dev-961cf99a074f55e1d6deded7590226f6cfca9fb6.tar.xz linux-dev-961cf99a074f55e1d6deded7590226f6cfca9fb6.zip |
mlxsw: core: Re-order initialization sequence
The driver core first registers with the hwmon and thermal subsystems
and only then proceeds to initialize the switch driver (e.g.,
mlxsw_spectrum). It is only during the last stage that the current
firmware version is validated and a newer one flashed, if necessary.
The above means that if a new firmware feature is utilized by the
hwmon/thermal code, the driver will not be able to load.
Solve this by re-ordering initializing the switch driver before
registering with the hwmon and thermal subsystems.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Shalom Toledo <shalomt@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/reg.h')
0 files changed, 0 insertions, 0 deletions