mlxsw: core_linecards: Expose device FW version over device info
authorJiri Pirko <jiri@nvidia.com>
Mon, 25 Apr 2022 03:44:30 +0000 (06:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2022 09:42:29 +0000 (10:42 +0100)
commite932b4bdbd7cf51907d733376ddcd5b679c02923
tree7bb437c9a05d982ddea2492dda26df7b753fa4b5
parentc38e9bf338121b8c27e0458d817d534d005bc517
mlxsw: core_linecards: Expose device FW version over device info

Extend MDDQ to obtain FW version of line card device and implement
device_info_get() op to fill up the info with that.

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>
Documentation/networking/devlink/mlxsw.rst
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c