Commit 3d7a6f6
mlxsw: core: Initialize switch driver last
Commit 961cf99 ("mlxsw: core: Re-order initialization sequence")
changed the initialization sequence so that the switch driver (e.g.,
mlxsw_spectrum) is initialized before registration with the hwmon and
thermal subsystems.
This was done in order to avoid situations where hwmon/thermal code uses
features not supported by current firmware version, which is only
validated as part of switch driver initialization.
Later, commit b79cb78 ("mlxsw: Move fw flashing code into core.c")
moved firmware validation and flashing code from the switch driver to
mlxsw_core so that it is performed before driver initialization.
Therefore, change the initialization sequence back to its original form.
In addition to being more straightforward, it will allow us to simplify
parts of the code in subsequent patches and future patchsets.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 0013522 commit 3d7a6f6
1 file changed
+10
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
1998 | | - | |
1999 | | - | |
2000 | | - | |
2001 | | - | |
2002 | | - | |
2003 | | - | |
2004 | 1998 | | |
2005 | 1999 | | |
2006 | 2000 | | |
| |||
2014 | 2008 | | |
2015 | 2009 | | |
2016 | 2010 | | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
2017 | 2017 | | |
2018 | 2018 | | |
2019 | 2019 | | |
| |||
2022 | 2022 | | |
2023 | 2023 | | |
2024 | 2024 | | |
| 2025 | + | |
| 2026 | + | |
2025 | 2027 | | |
2026 | 2028 | | |
2027 | 2029 | | |
2028 | 2030 | | |
2029 | 2031 | | |
2030 | | - | |
2031 | | - | |
2032 | | - | |
2033 | 2032 | | |
2034 | 2033 | | |
2035 | 2034 | | |
| |||
2101 | 2100 | | |
2102 | 2101 | | |
2103 | 2102 | | |
| 2103 | + | |
| 2104 | + | |
2104 | 2105 | | |
2105 | 2106 | | |
2106 | 2107 | | |
2107 | | - | |
2108 | | - | |
2109 | 2108 | | |
2110 | 2109 | | |
2111 | 2110 | | |
| |||
0 commit comments