diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-09-08 15:21:14 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-10 12:49:00 -0700 |
commit | 0313c7c2e45c40c8f2e4156672125a9756e6d8a1 (patch) | |
tree | 1f2e7506a73cbf66a143b9c057a932790db24d97 /drivers/isdn | |
parent | 3ea87ca772a95ca645d2f4b3e71c2747ceb251e0 (diff) | |
download | lwn-0313c7c2e45c40c8f2e4156672125a9756e6d8a1.tar.gz lwn-0313c7c2e45c40c8f2e4156672125a9756e6d8a1.zip |
mlx4: make sure to always set the port type
Even tho mlx4_core registers the devlink ports, it's mlx4_en
and mlx4_ib which set their type. In situations where one of
the two is not built yet the machine has ports of given type
we see the devlink warning from devlink_port_type_warn() trigger.
Having ports of a type not supported by the kernel may seem
surprising, but it does occur in practice - when the unsupported
port is not plugged in to a switch anyway users are more than happy
not to see it (and potentially allocate any resources to it).
Set the type in mlx4_core if type-specific driver is not built.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
0 files changed, 0 insertions, 0 deletions