Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5869300rwb; Tue, 1 Aug 2023 09:00:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlG4rideUNGZP0nt6goSP3l+DmmbHAIADp62/YVrMwvZ2VK7x3JmZXcz2YDV0kR8cd/3sKcp X-Received: by 2002:a17:902:e847:b0:1b8:b41a:d4be with SMTP id t7-20020a170902e84700b001b8b41ad4bemr16478972plg.10.1690905627633; Tue, 01 Aug 2023 09:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690905627; cv=none; d=google.com; s=arc-20160816; b=RfKbDGMwRKhJ6FQ3fBg7zW7Vi5HQw+qWX/hI1hMQE5L48LQk71UaIENIli7vmFC1nD UA8RcqqXbiPv+ViEJRKfDCE8dUO3klt8MqLjWfvVTlCY+DbEWLkaVgxV8/IOp2mefGcD AbtmQDpLVoXWlJawoxfamtTzNXd+fiHBKnSuxT+tMFwX4WirozqCczwO+ZKLeIRPK5kv sP5/e6fQ7/sGs48irIe7XLN56Zg1vOQ1/TG6jrb5unBiNyuYS162bJ9y0ogpKd0dAZJz SwGVEROuFlhVs6mAxAJhMdqYhBZlRRTV3ZqRNw8Uj9yUVx57P3KoiZ8TmS68+mOMmNjd fuSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=v3Hw1gMaiWhoQKKZK2hbOYHO2XGGZMLV2/iOs78dLbs=; fh=+EZ4p/ytwqKjs/z2XfavVbASIvnJoW9RJ1x7HvdECf0=; b=NwF5/s+g8SNaxuggbjpx4MZBdLYtOD7AvB31jMNCN3RhXduvl3NCZeMppq0SZzUlKU qMwJof/K61miZQ3fOP1ardyDotC6vpIlLWkc5ZHzJTUb4ppwTejpnsiPalJigkiFWemI m6SU8n3TtwXpr2SptMvaghRmBA8H8+3/bdOAIfBtp3KOMfNOyY+Ife1khhGkQpFau+9Y GkRKi5XGu6Bye+sVS8gZQPd2aDtfcoCsASevpsrgrXrofzYMcZLzppP/ap6AmnNGxHqn SLgH+66OR8DEl7CJBsTIUcQUcRfRUyK7clHdBUUb6BypRTppnW9zVQ92hQ1/P970g2ub A3jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fCbAQl2f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a170903228c00b001b80c35bc65si9474906plh.641.2023.08.01.09.00.12; Tue, 01 Aug 2023 09:00:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fCbAQl2f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233427AbjHAMlC (ORCPT + 99 others); Tue, 1 Aug 2023 08:41:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233378AbjHAMlB (ORCPT ); Tue, 1 Aug 2023 08:41:01 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70AD3A8; Tue, 1 Aug 2023 05:40:59 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 31AEB1C0006; Tue, 1 Aug 2023 12:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1690893657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=v3Hw1gMaiWhoQKKZK2hbOYHO2XGGZMLV2/iOs78dLbs=; b=fCbAQl2f6bVcczNsiSn20w0R4GSWTzdJtsvxoT8oJuXqRxwzubrCHgT+dTC8KuMsN/hXU4 qjlgxD280xtPjU+jrd2UCTJlV2evSae4wIrOFEyZNn49zO/2T1Hwl9Dq8k6YYf7Qw5pL2f 2/rgab5/Th6Ca1Sfi6jYkxMHsyMZcRFIubPVoSYgZ+Ondr0OweFT7yzlxUNHpySUpaish4 6OK5Hl9YRdThPKmAw0gw5QPio3MahcKkEQ50c/34jJ4Z4TVK+xVHa2t91fGe4w2Q8DZfux ITpMoDX82JKsI2twWhwnEyjxywVLbcY0ZIz9NXGerqpMn7nOBLqJzhNJKWgDuA== Date: Tue, 1 Aug 2023 14:40:56 +0200 From: Alexandre Belloni To: Anvesh Jain P Cc: Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Venkata Rao Kakani Subject: Re: [PATCH] rtc: rtc-pm8xxx: control default alarm wake up capability Message-ID: <20230801124056fc665814@mail.local> References: <20230801114549.26956-1-quic_ajainp@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230801114549.26956-1-quic_ajainp@quicinc.com> X-GND-Sasl: alexandre.belloni@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/08/2023 17:15:49+0530, Anvesh Jain P wrote: > Enable & disable rtc alarm wake up capability based on > default parameter passed from device tree. > I see what you are doing but not why this is necessary, NAK. > Signed-off-by: Venkata Rao Kakani > Signed-off-by: Anvesh Jain P > --- > drivers/rtc/rtc-pm8xxx.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c > index f6b779c12ca7..bed57be602b6 100644 > --- a/drivers/rtc/rtc-pm8xxx.c > +++ b/drivers/rtc/rtc-pm8xxx.c > @@ -523,6 +523,9 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev) > if (rc) > return rc; > > + if (of_property_read_bool(pdev->dev.of_node, "disable-alarm-wakeup")) > + device_set_wakeup_capable(&pdev->dev, false); > + > rc = dev_pm_set_wake_irq(&pdev->dev, rtc_dd->alarm_irq); > if (rc) > return rc; > > base-commit: 0a8db05b571ad5b8d5c8774a004c0424260a90bd > -- > 2.17.1 > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com