summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Jiejing <jiejing.zhang@freescale.com>2011-11-03 13:28:02 +0800
committerZhang Jiejing <jiejing.zhang@freescale.com>2011-11-09 12:41:31 +0800
commitd60dfb88fa258d16a4bd08bb076900b8b2c89613 (patch)
tree1f4f6a7dbc4a73e8ccdc8c188623e6e139410729
parent8b795354ffd143b62d3737fcda9dec0bb2e68f6c (diff)
ENGR00161033 mx5x: add a info when tzic fail to set.
sometime kernel can't enter suspend because tzic can't be set. but it without print any log, this log help people quick find out the suspend failure caused by tzic. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
-rw-r--r--arch/arm/plat-mxc/tzic.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/plat-mxc/tzic.c b/arch/arm/plat-mxc/tzic.c
index 857cc0ca9a7a..6513a63d792e 100644
--- a/arch/arm/plat-mxc/tzic.c
+++ b/arch/arm/plat-mxc/tzic.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2004-2011 Freescale Semiconductor, Inc. All Rights Reserved.
*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
@@ -167,8 +167,10 @@ int tzic_enable_wake(int is_idle)
unsigned int i, v;
__raw_writel(1, TZIC_DSMINT);
- if (unlikely(__raw_readl(TZIC_DSMINT) == 0))
+ if (unlikely(__raw_readl(TZIC_DSMINT) == 0)) {
+ printk(KERN_INFO "tzic: can't enter suspend when still have Interrupt!\n");
return -EAGAIN;
+ }
if (likely(is_idle)) {
for (i = 0; i < 4; i++) {