]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Avoid repeated calls to pci enable/disable
authorDaniel Jurgens <danielj@mellanox.com>
Wed, 20 Apr 2016 13:01:16 +0000 (16:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2016 19:02:40 +0000 (15:02 -0400)
commit56f2de2b806e48a397807932a7a750971de093f5
tree83290b8a28423b8f84d033d0749a7a58b773808c
parentd2f664ce7331ad9fa6191c14d2c6af9e398998c3
net/mlx4_core: Avoid repeated calls to pci enable/disable

Maintain the PCI status and provide wrappers for enabling and disabling
the PCI device.  Performing the actions more than once without doing
its opposite results in warning logs.

This occurred when EEH hotplugged the device causing a warning for
disabling an already disabled device.

Fixes: 5b0d7b9c74bc ('net/mlx4_core: Handle AER flow properly')
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c
include/linux/mlx4/device.h