From d60dfb88fa258d16a4bd08bb076900b8b2c89613 Mon Sep 17 00:00:00 2001 From: Zhang Jiejing Date: Thu, 3 Nov 2011 13:28:02 +0800 Subject: 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 --- arch/arm/plat-mxc/tzic.c | 6 ++++-- 1 file 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++) { -- cgit v1.2.3