OSDN Git Service

net/mlx5: Handle event of power detection in the PCIE slot
authorAya Levin <ayal@mellanox.com>
Sun, 24 Mar 2019 07:21:40 +0000 (09:21 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 5 Apr 2019 21:10:32 +0000 (14:10 -0700)
commit5d3c537f907036c1f18bd325ffc356e24cde664c
treee592b014af0b9fdeadd47884dd3f4c2b8f324047
parentb6460c72c36df973b4935492bacd90b2bbff7028
net/mlx5: Handle event of power detection in the PCIE slot

Handle event of power state change in the PCIE slot. When the event
occurs, check if query power state and PCI power fields is supported. If
so, read these fields from MPEIN (management PCIE info) register and
issue a corresponding message.

Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/events.c
include/linux/mlx5/device.h