From f26f078bd1dfd848673028f060ac6ac3e4c0c4d4 Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Tue, 3 Sep 2013 21:46:47 -0400 Subject: [PATCH] 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 --- drivers/rtc/rtc-snvs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.5