[1/3] drivers/pci/hotplug: Handle presence detection change properly
Michael Ellerman
patch-notifications at ellerman.id.au
Thu Feb 16 16:59:45 AEDT 2017
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: stable at vger.kernel.org #v4.9+
> Reported-by: Hank Chang <hankmax0000 at gmail.com>
> Signed-off-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
> Tested-by: Willie Liauw <williel at supermicro.com.tw>
Series applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/d7d55536c6cd1f80295b6d7483ad05
cheers
More information about the Linuxppc-dev
mailing list