From: Anson Huang Date: Wed, 4 Sep 2013 01:46:47 +0000 (-0400) Subject: ENGR00277955-2 rtc: rtc-snvs: support wakeup system from freeze mode X-Git-Tag: KARO-TX6-2014-07-10~251 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f26f078bd1dfd848673028f060ac6ac3e4c0c4d4;p=karo-tx-linux.git ENGR00277955-2 rtc: rtc-snvs: support wakeup system from freeze mode To support wakeup system from freeze mode of suspend, device's irq can NOT be disabled during devices suspend, so we need to add IRQF_NO_SUSPEND flag to irqflags. Signed-off-by: Anson Huang --- diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index fa384fe28988..f938c1dec237 100644 --- a/drivers/rtc/rtc-snvs.c +++ b/drivers/rtc/rtc-snvs.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. + * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. * * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License @@ -276,7 +276,8 @@ static int snvs_rtc_probe(struct platform_device *pdev) device_init_wakeup(&pdev->dev, true); ret = devm_request_irq(&pdev->dev, data->irq, snvs_rtc_irq_handler, - IRQF_SHARED, "rtc alarm", &pdev->dev); + IRQF_SHARED | IRQF_NO_SUSPEND, + "rtc alarm", &pdev->dev); if (ret) { dev_err(&pdev->dev, "failed to request irq %d: %d\n", data->irq, ret);