]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4: Support shutdown() interface
authorGavin Shan <shangw@linux.vnet.ibm.com>
Tue, 4 Mar 2014 07:35:20 +0000 (15:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Mar 2014 01:40:24 +0000 (20:40 -0500)
commit01234f94a96870eafea250999e8cbc30b174449b
tree8ca70becfe9dee6aa6eee9287cb1517267cd5385
parent2d1d812c7a0fc62a5d812f46b9266e75d20aebc3
net/mlx4: Support shutdown() interface

In kexec scenario, we failed to load the mlx4 driver in the
second kernel because the ownership bit was hold by the first
kernel without release correctly.

The patch adds shutdown() interface so that the ownership can
be released correctly in the first kernel. It also helps avoiding
EEH error happened during boot stage of the second kernel because
of undesired traffic, which can't be handled by hardware during
that stage on Power platform.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Tested-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c