]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
IB/mlx5: Return PORT_ERR in Active to Initializing tranisition
authorNoa Osherovich <noaos@mellanox.com>
Sat, 4 Jun 2016 12:15:29 +0000 (15:15 +0300)
committerKamal Mostafa <kamal@canonical.com>
Mon, 22 Aug 2016 14:43:02 +0000 (07:43 -0700)
commit02525b0c1e5caecd5226b70954ef114ac847b111
treea46b5e1f26d86fe108b28a204d040933550532df
parentcd57c6ceeac39a433750d5b9ee473c64d0ab7de4
IB/mlx5: Return PORT_ERR in Active to Initializing tranisition

BugLink: http://bugs.launchpad.net/bugs/1615620
commit 2788cf3bd90af3791c3195c52391bcf34fa67b40 upstream.

FW port-change events are fired on Active <-> non Active port state
transitions only.
When the port state changes from Active to Initializing (Active ->
Down -> Initializing), a single event is fired.
The HCA transitions from Down to Initializing unless prevented from
doing so, hence the driver should also propagate events when the port
state is Initializing to consumers so they'll be aware that the port
is no longer Active and act accordingly.

Fixes: e126ba97dba9e ('mlx5: Add driver for Mellanox Connect-IB...')
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/infiniband/hw/mlx5/main.c