Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp197567yba; Fri, 12 Apr 2019 01:35:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJ3X2Nen1+EkyO1JvIFVp1Oxbg9P4OjljaMcu+ZoIHbyWslUKwgVfvzDsUBH4w9qj/nSmq X-Received: by 2002:a17:902:6bc5:: with SMTP id m5mr55612880plt.180.1555058113040; Fri, 12 Apr 2019 01:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555058113; cv=none; d=google.com; s=arc-20160816; b=U9bHr+d3L0LjP//LQfh4I+W7UdqS6hzXlYQgHZPozKrXdUyi2jmiyzVHiNahIA/ud6 tz7dauesHtR/cIaUsxFW0YABElVbgBjmI8tAmZO5PzEva6/GoRrZSmdsJATYMn8/yZpZ wnleAuzL92JlynOXPUuEyVoM+XmHCuAA1fZ9EcM7T61HJlrpyntxSIdAH9qh3gyufOU5 ICAuA3RGpFY4+ydRK9m2XLJg6+gm7X1mUvF+dhHlIo3NVled5cDG8B/JOa9Bxo1h179m sQnBOHak2nUlahNHtmH4MIHuUoJBGRFa4WFlqq/5xlpABYJAMtOU0CgyOm+PoPUjNt25 ifsA== 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=WgWySItJ5sd6GIwWT26yHqhgB3V4t1xpH1tAcv/CTbU=; b=KI/S8/ZgqfSTccqjQq5NjVk/OCX2r23pW8O3/s+X1OnY0ptSUpZBVbCTS4u+oDxSPw f8VXKVh9NwduAbSbhjo1yBox/x0ggaNW3TfIm/K/1uC1lw7qU2c2rUTv8Ld8MK7qWzqS jpn2KNyuG7/AdMop20xbQBevnoEd3+pe7FJ51eaSgFX6CKT7z81y5wMYgZZmTzUrV5As PA2PGCuD6KeBX+a8BHKzvFbrIGbgg7EHaLbY2+DT9SgAVI01dbjc61fqkmnp1Kh+cZIb OvKApGRrQpc7mO6NsyConie4zSYBXRVZgBpqa/ARff56TMCdG7sBKeiv7f5z04FKGOtY KhSw== 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 x13si36750435pll.96.2019.04.12.01.34.57; Fri, 12 Apr 2019 01:35:13 -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 S1727298AbfDLIeC (ORCPT + 99 others); Fri, 12 Apr 2019 04:34:02 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:53467 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727021AbfDLIeB (ORCPT ); Fri, 12 Apr 2019 04:34:01 -0400 X-Originating-IP: 109.213.33.177 Received: from localhost (alyon-652-1-42-177.w109-213.abo.wanadoo.fr [109.213.33.177]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 92BE71C0012; Fri, 12 Apr 2019 08:33:59 +0000 (UTC) Date: Fri, 12 Apr 2019 10:33:59 +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: mxc: use dev_pm_set_wake_irq() to simplify code Message-ID: <20190412083359.GQ3578@piout.net> References: <1554948064-2343-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: <1554948064-2343-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 11/04/2019 02:06:04+0000, Anson Huang wrote: > With calling dev_pm_set_wake_irq() to set MXC 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-mxc.c | 32 ++++++-------------------------- > 1 file changed, 6 insertions(+), 26 deletions(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com