diff options
author | 2016-02-12 16:03:05 +1100 | |
---|---|---|
committer | 2016-02-22 19:25:55 +1100 | |
commit | f6bf0fa14cf848ae770e0b7842c9b11ce2f01645 (patch) | |
tree | 26f2719f43c59c9c027fea48f552d13a4badbf9a /include | |
parent | powerpc/ioda: Set "read" permission when "write" is set (diff) | |
download | linux-dev-f6bf0fa14cf848ae770e0b7842c9b11ce2f01645.tar.xz linux-dev-f6bf0fa14cf848ae770e0b7842c9b11ce2f01645.zip |
powerpc/eeh: Fix partial hotplug criterion
During error recovery, the device could be removed as part of the
partial hotplug. The criterion used to come with partial hotplug
is: if the device driver provides error_detected(), slot_reset()
and resume() callbacks, it's immune from hotplug. Otherwise,
it's going to experience partial hotplug during EEH recovery. But
the criterion isn't correct enough: mlx4_core driver for Mellanox
adapters provides error_detected(), slot_reset() callbacks, but
resume() isn't there. Those Mellanox adapters won't be to involved
in the partial hotplug.
This fixes the criterion to a practical one: adpater with driver
that provides error_detected(), slot_reset() will be immune from
partial hotplug. resume() isn't mandatory.
Fixes: f2da4ccf ("powerpc/eeh: More relaxed hotplug criterion")
Cc: stable@vger.kernel.org #v4.4+
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions