projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb9be23
)
powerpc/85xx: fix race bug of calling request_irq after enable elbc interrupts
author
Shaohui Xie
<Shaohui.Xie@freescale.com>
Fri, 3 Jun 2011 02:45:11 +0000
(10:45 +0800)
committer
Kumar Gala
<galak@kernel.crashing.org>
Fri, 3 Jun 2011 05:09:09 +0000
(
00:09
-0500)
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_lbc.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/sysdev/fsl_lbc.c
b/arch/powerpc/sysdev/fsl_lbc.c
index 0608b1657da41f511ceca7a5bb4ef677ee14fbad..d917573cf1a854183d425053b479ed6423ae0c3c 100644
(file)
--- a/
arch/powerpc/sysdev/fsl_lbc.c
+++ b/
arch/powerpc/sysdev/fsl_lbc.c
@@
-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->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 */
if (of_device_is_compatible(node, "fsl,elbc"))
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;
}
+ /* Enable interrupts for any detected events */
+ out_be32(&fsl_lbc_ctrl_dev->regs->lteir, LTEIR_ENABLE);
+
return 0;
err: