powerpc/85xx: fix race bug of calling request_irq after enable elbc interrupts
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
fb9be2349f
commit
704102a679
1 changed files with 3 additions and 3 deletions
|
@ -196,9 +196,6 @@ static int __devinit fsl_lbc_ctrl_init(struct fsl_lbc_ctrl *ctrl,
|
||||||
out_be32(&lbc->lteccr, LTECCR_CLEAR);
|
out_be32(&lbc->lteccr, LTECCR_CLEAR);
|
||||||
out_be32(&lbc->ltedr, LTEDR_ENABLE);
|
out_be32(&lbc->ltedr, LTEDR_ENABLE);
|
||||||
|
|
||||||
/* Enable interrupts for any detected events */
|
|
||||||
out_be32(&lbc->lteir, LTEIR_ENABLE);
|
|
||||||
|
|
||||||
/* Set the monitor timeout value to the maximum for erratum A001 */
|
/* Set the monitor timeout value to the maximum for erratum A001 */
|
||||||
if (of_device_is_compatible(node, "fsl,elbc"))
|
if (of_device_is_compatible(node, "fsl,elbc"))
|
||||||
clrsetbits_be32(&lbc->lbcr, LBCR_BMT, LBCR_BMTPS);
|
clrsetbits_be32(&lbc->lbcr, LBCR_BMT, LBCR_BMTPS);
|
||||||
|
@ -322,6 +319,9 @@ static int __devinit fsl_lbc_ctrl_probe(struct platform_device *dev)
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Enable interrupts for any detected events */
|
||||||
|
out_be32(&fsl_lbc_ctrl_dev->regs->lteir, LTEIR_ENABLE);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
|
Loading…
Add table
Reference in a new issue