]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlxsw: core_linecards: Introduce per line card auxiliary device
authorJiri Pirko <jiri@nvidia.com>
Mon, 25 Jul 2022 08:29:17 +0000 (10:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 20:50:51 +0000 (13:50 -0700)
commitbd02fd76d1909637c95e8ef13e7fd1e748af910d
treec7facad089cb99dd047cd8251af2b9e29239670a
parent7b2d9a1a50ec3bedf067fe234a4a71196c89e826
mlxsw: core_linecards: Introduce per line card auxiliary device

In order to be eventually able to expose line card gearbox version and
possibility to flash FW, model the line card as a separate device on
auxiliary bus.

Add the auxiliary device for provisioned line card in order to be able
to expose provisioned line card info over devlink dev info. When the
line card becomes active, there may be other additional info added to
the output.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/Kconfig
drivers/net/ethernet/mellanox/mlxsw/Makefile
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/core_linecard_dev.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c