]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/eeh: Fix improper condition in eeh_pci_enable()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 30 Sep 2014 02:39:00 +0000 (12:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Sep 2014 07:15:13 +0000 (17:15 +1000)
commit4d4f577e4b5ee1299096438bbcf743bbe14f33ab
treeacf1c7ebc480e33d06fbab503c7e78a7f40fa506
parent22fca17924094113fe79c1db5135290e1a84ad4b
powerpc/eeh: Fix improper condition in eeh_pci_enable()

The function eeh_pci_enable() is called to apply various requests
to one particular PE: Enabling EEH, Disabling EEH, Enabling IO,
Enabling DMA, Freezing PE. When enabling IO or DMA on one specific
PE, we need check that IO or DMA isn't enabled previously. But
the condition used to do the check isn't completely correct because
one PE would be in DMA frozen state with workable IO path, or vice
versa.

The patch fixes the improper condition.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh.c