mlxsw: core_linecards: Register a system event handler
authorVadim Pasternak <vadimp@nvidia.com>
Sun, 21 Aug 2022 16:20:13 +0000 (18:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 24 Aug 2022 00:21:59 +0000 (17:21 -0700)
commit508c29bf15ea5e106b0b3e84076cd5bd90a11b48
treecc4177d8802821a5a45601a469d1f78e2ce02364
parent2ab4e70966a2ed5c67b7b04aba1aeb200b0ad82c
mlxsw: core_linecards: Register a system event handler

Add line card system event handler. Register it with core. It is
triggered by system interrupts raised from chassis programmable logic
devices to CPU. The purpose is to handle line card state changes over
I2C bus.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c