mlxsw: i2c: Add support for system interrupt handling
authorVadim Pasternak <vadimp@nvidia.com>
Sun, 21 Aug 2022 16:20:14 +0000 (18:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 24 Aug 2022 00:21:59 +0000 (17:21 -0700)
commit33fa6909a263d70e01ac0cd1bd11ddc15d05f97b
treeb6fd749c582ad214fc17e1ed02fd0d5aed8966d6
parent508c29bf15ea5e106b0b3e84076cd5bd90a11b48
mlxsw: i2c: Add support for system interrupt handling

Extend i2c bus driver with interrupt handler to support system specific
hotplug events, related to line card state change.

Provide system IRQ line for interrupt handler. IRQ line Id could be
provided through the platform data if available, or could be set to the
default value.

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/i2c.c