]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Add sanity checks into module info get
authorJiri Pirko <jiri@mellanox.com>
Thu, 31 Oct 2019 09:42:14 +0000 (11:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 17:54:47 +0000 (10:54 -0700)
commitaf3e8982ee59b92ecaca4e1d8b7fe42b5656ed74
tree7655e5f18bc33649da4df72fbd6b3020a3ad70e2
parent020d09363e0e02013dd3abfda42357cec7809b6b
mlxsw: spectrum: Add sanity checks into module info get

Driver assumes certain values in the PMLP register. Add checks that
verify that PMLP register provides fitting values.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Shalom Toledo <shalomt@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c