Re: [1/3] drivers/pci/hotplug: Handle presence detection change properly

From
Michael Ellerman <hidden>
Date
2017-02-16 05:59:47
Also in
linuxppc-dev
Reply to
Gavin Shan, 2017-01-11
On Wed, 2017-01-11 at 00:50:06 UTC, Gavin Shan wrote:
The surprise hotplug is driven by interrupt in PowerNV PCI hotplug
driver. In the interrupt handler, pnv_php_interrupt(), we bail when
pnv_pci_get_presence_state() returns zero wrongly. It causes the
presence change event is always ignored incorrectly.

This fixes the issue by bailing on error (non-zero value) returned
from pnv_pci_get_presence_state().

Fixes: 360aebd85a4 ("drivers/pci/hotplug: Support surprise hotplug in powernv driver")
Cc: <redacted> #v4.9+
Reported-by: Hank Chang <redacted>
Signed-off-by: Gavin Shan <redacted>
Tested-by: Willie Liauw <redacted>
Series applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/d7d55536c6cd1f80295b6d7483ad05

cheers
Thread (2 messages) 2 messages, 2 authors, last reply 2017-02-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help