]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf80cc9ef55bb1e3c8393464b80327ddb5e90a2d0
tree8b66578ae74c32302b3499117854d352f2f6aed3
parentb6a6909e353de238ed8f7467a0e65c2815618fae
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