commit | d22663edacdfb292e7132989de93bf2828cac493 | [log] [tgz] |
---|---|---|
author | Parav Pandit <parav@mellanox.com> | Fri Jun 28 22:36:00 2019 +0000 |
committer | Saeed Mahameed <saeedm@mellanox.com> | Mon Jul 01 16:40:30 2019 -0700 |
tree | 636557ad2d667ee990b28ef1ede30a6df903f425 | |
parent | 386e75af995c3aec475a2185b919bf46af396bfc [diff] |
net/mlx5: Move pci status reg access mutex to mlx5_pci_init mlx5_pci_init() performs pci specific initialization of the mlx5_core_dev struct. Hence move pci_status_mutex to pci initialization routine mlx5_pci_init(). This allows reusing mlx5_mdev_init() to non PCI devices. Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Vu Pham <vuhuong@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>