fsl/pci: fix RC cannot detect PME message coming
authorWang Dongsheng <dongsheng.wang@freescale.com>
Tue, 15 Apr 2014 07:43:18 +0000 (15:43 +0800)
committerScott Wood <scottwood@freescale.com>
Thu, 22 May 2014 23:08:14 +0000 (18:08 -0500)
PCI controller disable PME message report feature, that shouldn't
have happened. Fix it and enable PME message report feature.

Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/sysdev/fsl_pci.c

index 3f415e252ea54fc34e8dee84ea7de1b56fd54ec1..4bd091a05583b7eeed07c22c2375be83cbcf34a9 100644 (file)
@@ -1150,8 +1150,7 @@ static int fsl_pci_pme_probe(struct pci_controller *hose)
        pci = hose->private_data;
 
        /* Enable PTOD, ENL23D & EXL23D */
-       out_be32(&pci->pex_pme_mes_disr, 0);
-       setbits32(&pci->pex_pme_mes_disr,
+       clrbits32(&pci->pex_pme_mes_disr,
                  PME_DISR_EN_PTOD | PME_DISR_EN_ENL23D | PME_DISR_EN_EXL23D);
 
        out_be32(&pci->pex_pme_mes_ier, 0);