Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp489294yba; Wed, 15 May 2019 05:03:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwu4AsWMBO5fignNdF8PLRNcBx3KkXskIdQYijmrggj8sjigA9aGt4+eiwX5Ms7Gh1FZIB6 X-Received: by 2002:aa7:9ab0:: with SMTP id x16mr39496098pfi.201.1557921833746; Wed, 15 May 2019 05:03:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557921833; cv=none; d=google.com; s=arc-20160816; b=I2oke+huHnRgdn076sr3fJ1GnIyRdLr7ZAWO0+425X0JfeV1GHH7g/HbOYhREv6VS6 AGvJZ5a2+mqYkP/Feo1tlWXfDouu3M1zifTykEl0vmOx2q9T3A3ru+N19z5A/14pF/Gg PQh8bCblcUBobg0Ny1JGgznIlxcWZGSA+BZ/wQNVTDK/DnyDBkq7zMDHKGK10wHgZULm 4waxBnaVLtA+Nn660WDBW/8mHXCr/Ie1Tkhm11EJ5yp/Aj/AhaGE2jjIYPCuBMhaGQij DHxLcfUhVoEvz1YmvP/aSs0C3nZDnpEaY6FomUJYl3W0/M5iKxMhmHvCEzUh9h/JE1Hr PWDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=JZxB086EqwggOhFxHexHkttok94oso/OJUjNF3aMwEw=; b=vpYmz8BpFwg2/6GOH19qJifQLDNlRPfKc/qIcQ+i5SVLf3Dt6UG9gZGr/o555l8ncJ sqxmn3jCsmMEq2xMMUgApRAr9L7DqBoXzSodhfHDOyTwvnMyNcmC0PRN0dInRBzcfBf/ LG77Htxsa+xILQYQdjPInjUp69++2QLkErzm4wHaaN1wFPFHDLdWqiLAqUjySyXIqdcr NJqo0pdy+F8PEfmUVOA1Own0DPh84YOBSh+NyaAk5iDPG1IFZ+OB/FbJ03w5HrsfWwRL CzdZTdm2oI1DkagW7OCHpK9l+FiDq95l3Dzb4WMNG2WrPDVdhAw47Vhzakc3xwSTQAp3 MlXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@globallogic.com header.s=google header.b=SlWMkZO0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t30si1655196pgk.496.2019.05.15.05.03.37; Wed, 15 May 2019 05:03:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@globallogic.com header.s=google header.b=SlWMkZO0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730463AbfEOMA0 (ORCPT + 99 others); Wed, 15 May 2019 08:00:26 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46178 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730176AbfEOLOr (ORCPT ); Wed, 15 May 2019 07:14:47 -0400 Received: by mail-lj1-f195.google.com with SMTP id h21so2095439ljk.13 for ; Wed, 15 May 2019 04:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=globallogic.com; s=google; h=from:to:cc:subject:date:message-id; bh=JZxB086EqwggOhFxHexHkttok94oso/OJUjNF3aMwEw=; b=SlWMkZO0NyRYv7qICWGSh++5Zi8+7R3oKxXcZ9+KhhZYU250CR11qNBwz+rXDAuT6C Xqu672PFvC2GjahgiNoNuW+NQAwUkaUTgGxzrlrecppsg7v28PIxURdyOha350W1tksj zKE1GmGYlXMObrHbnO30DZmUh7BaDiLjkOG3X5UWf69H30F/JLN0wdHtBgUdBXZmwln8 Uz+Mab6mr7ZAbsBtc26f6leQ04LYBFoERfXP59q4K+v/msGokMRFwTAXxd3ZpX4+5byX gwKrcrnZthl7A/VN02W/Vg+0tQd/xsUh5qkvLvU7bhS5U7nLl1SwcTuT9vnG2j+yvgGE 7ueA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JZxB086EqwggOhFxHexHkttok94oso/OJUjNF3aMwEw=; b=W+jNvZyJvkreqsHDuL0M8ZIXbwfHBPROmOjcYsEiYCXPIiSyJqSG229RF60isEbVJL 1V/7znkuBDfgTneCisnNH7whSwcePD/r1XGGn6PmeWY3SpGY+OOY3LmiYhVHeTju/yXr IrR1r9MS+V3KG48AxO1/kmZ9CMz07IyqHIF2yGFA/93KLSILWJkvvNkD0hM9t0ACWnlZ CKa+6cLbo1mcfK1sfl55Y6TU6Mt3cAgyPJ0FjrvgG+9IiY3RR6F47AB5KxAlW8NXH0nX hhmFxNSq/CviSdrlOeC/zRpNHBLG04tOk3KUQzFqynRdI/22ImlQ62ROKfR7DIxmstTr Bx8Q== X-Gm-Message-State: APjAAAX1T1kfHuG9aQEpdzQGyirnUdA3KbarhOD2BrenUayi67I680cI /YjarzHaH2Gkbm7B7eOy3JK14w== X-Received: by 2002:a2e:85c9:: with SMTP id h9mr7217175ljj.110.1557918885495; Wed, 15 May 2019 04:14:45 -0700 (PDT) Received: from roman-VirtualBox.synapse.com ([195.238.92.107]) by smtp.gmail.com with ESMTPSA id q26sm376027lfd.54.2019.05.15.04.14.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 May 2019 04:14:44 -0700 (PDT) From: roman.stratiienko@globallogic.com To: a.zummo@towertech.it, alexandre.belloni@free-electrons.com, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Roman Stratiienko Subject: [PATCH] rtc: test: enable wakeup flags Date: Wed, 15 May 2019 14:14:36 +0300 Message-Id: <20190515111436.14513-1-roman.stratiienko@globallogic.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roman Stratiienko Alarmtimer interface uses only the RTC with wekeup flags enabled. Allow to use rtc-test driver with alarmtimer interface. Signed-off-by: Roman Stratiienko --- drivers/rtc/rtc-test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/rtc-test.c b/drivers/rtc/rtc-test.c index 6c5f09c815e8..c839ae575c77 100644 --- a/drivers/rtc/rtc-test.c +++ b/drivers/rtc/rtc-test.c @@ -123,6 +123,8 @@ static int test_probe(struct platform_device *plat_dev) platform_set_drvdata(plat_dev, rtd); + device_init_wakeup(&plat_dev->dev, 1); + rtd->rtc = devm_rtc_allocate_device(&plat_dev->dev); if (IS_ERR(rtd->rtc)) return PTR_ERR(rtd->rtc); -- 2.17.1