This series fixes 2 issues that were found during NCSI's availability testing on BCM5718 and improves HNCDSC AEN handler:
* PATCH[1] refactors the code so that minimal code change is put to PATCH[2]. * PATCH[2] fixes the NCSI channel's stale link state before doing failover. * PATCH[3] chooses the hot channel, which was ever chosen as active channel, when the available channels are all in link-down state. * PATCH[4] improves Host Network Controller Driver Status Change (HNCDSC) AEN handler Changelog ========= v2: * Merged PATCH[v1 1/2] to PATCH[v2 1]. * Avoid if/else statements in ncsi_suspend_channel() as Joel suggested. * Added comments to explain why we need retrieve last link states in ncsi_suspend_channel(). Gavin Shan (4): net/ncsi: Avoid if statements in ncsi_suspend_channel() net/ncsi: Fix stale link state of inactive channels on failover net/ncsi: Choose hot channel as active one if necessary net/ncsi: Improve HNCDSC AEN handler net/ncsi/internal.h | 2 + net/ncsi/ncsi-aen.c | 18 +++++-- net/ncsi/ncsi-manage.c | 126 +++++++++++++++++++++++++++++++++++++------------ 3 files changed, 112 insertions(+), 34 deletions(-) -- 2.1.0