mlxsw: core_linecards: Implement line card activation process
authorJiri Pirko <jiri@nvidia.com>
Mon, 18 Apr 2022 06:42:38 +0000 (09:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2022 10:00:19 +0000 (11:00 +0100)
commitee7a70fa671b274aa7e34c66a6e9ab55acadc59a
tree8b66578ae74c32302b3499117854d352f2f6aed3
parentb217127e5e4ee0ecfce7c5f84cfe082238123bda
mlxsw: core_linecards: Implement line card activation process

Allow to process events generated upon line card getting "ready" and
"active".

When DSDSC event with "ready" bit set is delivered, that means the
line card is powered up. Use MDDC register to push the line card to
active state. Once FW is done with that, the DSDSC event with "active"
bit set is delivered.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c