]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae7bed299fc4b7da60cd7df25ebfa3de97620272
treee592b014af0b9fdeadd47884dd3f4c2b8f324047
parent2ea9e0cbd409905b3ae48f0ef0eed1298324133c
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