]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Read embedded cpu bit only once
authorParav Pandit <parav@mellanox.com>
Mon, 9 Mar 2020 02:41:22 +0000 (21:41 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 20 Apr 2020 21:20:21 +0000 (14:20 -0700)
commit85b4078ca9bd7557a6df122169fe7a3710c3fec3
tree1cdc133f867f0eb7da19e0118d2c7e01e8c6c787
parentbe21799eda44b7c2d00d0989376d4126819f3532
net/mlx5: Read embedded cpu bit only once

Embedded CPU bit doesn't change with PCI resume/suspend.
Hence read it only once while probing the PCI device.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c