]> 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)
commit46ecdb73e378cdba0e333277876d7f7e5bfcc0ff
tree8b66578ae74c32302b3499117854d352f2f6aed3
parent26048936b8ab38a8962f946c532666c44bb0b4cf
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