Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp395964yba; Mon, 1 Apr 2019 08:29:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZMjpvIJ6wiz72Rk7ZrQRuxG22STcHp8YFm51NBaqpJ69c+sEgwGsZTtB+QWnPdlqMqxoK X-Received: by 2002:a17:902:be04:: with SMTP id r4mr51047133pls.218.1554132591008; Mon, 01 Apr 2019 08:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554132590; cv=none; d=google.com; s=arc-20160816; b=z8skmHSp5x0BahvVaD8VxmjFO+5Sn40N7GEps+knFvn+wWDw97dv4Iimy/2TyA2L7+ Cmd/0kxCqp43mR13EKIRDPwi2MW3toOZ5l4Q0KTWTcrAjLTdQBRwtCrosCcq1w+x0UZo MREXc+KV6o7jD9pg6AunjWZt46idehgN31VJlS43FRhodJtYdMqikdRvzyGzg+sVosub zARQQMh6lRZmqrbVktGT9gJHRqpXj+kHgy5jFGDSioaQuUUkgW78g5gOgQY+fm+do6bZ 2rczitKfAom+8ddjMq++2/E2/vsnZm312gyUjQA9sod+6efMK20euB0a1/1h8IaWgIjb B52w== 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=JrpU8uaht5dryU1pwY1DEsSVmRw9CtrAklJydMoQ2Co=; b=YiDyFMQYjYmGrFdzuAf4GkmbMnzyLfWVkgm/pBca3a1UHjJmB8askRa2pvp3VY/yre HiP+sA00FtJgyHT5q5c+jDYrti8R2fwhfuDto1IFtNZY+D1PwOXLmL+/cWWAiDDE4eth S4l8OujBUt1YAu+uFRl2L2DfjOmBy3xYFaOa5MpigUcgWL5kcex79184VS2uV93G1EZb cdSGOf5f8s1ZTPLyK+UaEKtojT/VDLALaQDTITV42swQFW432EbUTVPix5g+vgo3xceV z2u1f9l4cNr8PWWz9z/ve5zaCagzAHehABZoKwE4W+fVFjxSOhb905LmkC+yES5mS2V8 ONmw== 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 m3si8726908pfh.249.2019.04.01.08.29.35; Mon, 01 Apr 2019 08:29:50 -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 S1728594AbfDAP2k (ORCPT + 99 others); Mon, 1 Apr 2019 11:28:40 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:51135 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbfDAP2k (ORCPT ); Mon, 1 Apr 2019 11:28:40 -0400 X-Originating-IP: 109.213.83.19 Received: from localhost (alyon-652-1-60-19.w109-213.abo.wanadoo.fr [109.213.83.19]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 932211C000C; Mon, 1 Apr 2019 15:28:37 +0000 (UTC) Date: Mon, 1 Apr 2019 17:28:36 +0200 From: Alexandre Belloni To: Anson Huang Cc: "a.zummo@towertech.it" , "linux-rtc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH] rtc: snvs: use dev_pm_set_wake_irq() to simplify code Message-ID: <20190401152836.GN3430@piout.net> References: <1553667192-16665-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1553667192-16665-1-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/03/2019 06:18:20+0000, Anson Huang wrote: > With calling dev_pm_set_wake_irq() to set SNVS RTC as wakeup > source for suspend, generic wake irq mechanism will automatically > enable it as wakeup source when suspend, then the suspend/resume > callback which are ONLY for enabling/disabling irq wake can be > removed, it simplifies the code. > > Signed-off-by: Anson Huang > --- > drivers/rtc/rtc-snvs.c | 25 ++++--------------------- > 1 file changed, 4 insertions(+), 21 deletions(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com