]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Do reverse sequence during device removal
authorParav Pandit <parav@mellanox.com>
Thu, 12 Dec 2019 11:30:21 +0000 (13:30 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 8 Jan 2020 00:18:10 +0000 (20:18 -0400)
commit8bce1209326b4367ff5c3a2bf7f2354cfd7b2492
tree7c9b00dc6be1aef8f6240c077a1973b73b619794
parent212ab2485e316148f396dd454c15e207399c17d5
IB/mlx5: Do reverse sequence during device removal

When IB device profile initialization completes, device is marked as
active.

However, IB device is not marked inactive, during device removal flow. It
should be the mirror of the add flow.

Hence, mark it inactive during remove sequence.

Link: https://lore.kernel.org/r/20191212113024.336702-2-leon@kernel.org
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c