Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp522555yba; Wed, 15 May 2019 05:36:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTf0Xc1IN7mXAiWgfjFJJ6Or6KeJ7EgO/kxvv3SeKyAqvU4OR0XZ353lEUed2Ad0dAfE9r X-Received: by 2002:a17:902:8ec6:: with SMTP id x6mr42497285plo.123.1557923780362; Wed, 15 May 2019 05:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557923780; cv=none; d=google.com; s=arc-20160816; b=lvlhBeFaoDm0pd/P/djIbRXZkDqTLt0l9rlfiiZ6jiALj+yV0aLOk71dZ7uHKCQsIm UqWS+NdNuNfm/f86UNBEmC6AJmTekMk+A7Jnh2qABRYEELZW5zdVaokmh6jhaj7vmjjF hemDZko7Vs94VyddCzj6el2uLmc1tAWes8yNdqkxTLKrvEy6zMA7HkEn2GXqlP099Aj2 KeCnQJqy3517xSsK85hYwICIyeH4Qqqwb3XvjvyZAennuQMiP9OogQr2lpzztEhdoKwh 8gdu9c89fZptkjvxPbMzLXiV9VVjHXWTJ7PJD7GBt2o2mhW+2BIyT63K9GuBqabWRJmB E1fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=yiKjzO3jjAcCkVpV95xaozrebkteaEr5MfK27p85tTk=; b=hfvMfjRDjQWMSoRVkYkx9F2pTXXx/dmvw3KQ3+E+ZjWe9dEamQXzBddMPPAzF4B/Te TK7yMYKBFULWCnatvoMmGPA1Ra0pkSf0JgHkb3a9qdN7CDpl8HzbOEwBYzAfXvfygV3b sR7HYJ0DfC2DHvu+ZakkO1hLSWGBkMb9I/AkN33RmZOZ/1/G7jtwmtzw9SGpd1itXnNV TxSpOIMDz12tkEJQEZGeNLPzbPIoc36IyqZ9GUOWwKu/7cjviAHWzZXd1xI8X9UUTieT lUgHbptCD476Ah36kJwfI/d5lUlWcnhleMEYp583m930kVMIxNNCXeGrfdQAaVazPl7k 0Psw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si1677618pgj.576.2019.05.15.05.36.05; Wed, 15 May 2019 05:36:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726665AbfEOMcr (ORCPT + 99 others); Wed, 15 May 2019 08:32:47 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:50139 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726494AbfEOMcq (ORCPT ); Wed, 15 May 2019 08:32:46 -0400 Received: from localhost (unknown [92.184.112.208]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 43E7C20000A; Wed, 15 May 2019 12:32:42 +0000 (UTC) Date: Wed, 15 May 2019 14:32:41 +0200 From: Alexandre Belloni To: roman.stratiienko@globallogic.com Cc: a.zummo@towertech.it, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rtc: test: enable wakeup flags Message-ID: <20190515123241.GL7622@piout.net> References: <20190515111436.14513-1-roman.stratiienko@globallogic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190515111436.14513-1-roman.stratiienko@globallogic.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, (You didn't use my correct email address, please update your kernel) On 15/05/2019 14:14:36+0300, roman.stratiienko@globallogic.com wrote: > 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); > + The first created RTC doesn't have any alarm, so this must not be done for all the devices. Also, this driver will never wake up the platform so I'm not sure it is relevant to test alarmtimers. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com