Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3642672imm; Wed, 5 Sep 2018 03:41:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYGSyZqGIP6XWNYtgf/6BFh6xb33H5bIWxguC9gL10gI5gnMrvQmYebIy+8LA/rWP0TA4AI X-Received: by 2002:a63:4386:: with SMTP id q128-v6mr35104206pga.353.1536144104169; Wed, 05 Sep 2018 03:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536144104; cv=none; d=google.com; s=arc-20160816; b=wthK/c7oR58KzjK/ufj/Bg2xc3/k38SqyUTl4zP85A5wacj+7Lxu06nOFO+SAnM+LF SfbwVCgF/trDO01uwA7Ia0PmCBeXE5bFfIaHCrkSarvhhKGWGtqhxiLHzwSJGh+X3E/2 uaoVmbjZ30II/3ARwmJoo5N+VvKo8WaGGFQTJ7TthKL6hzzf5As/frQmS1QoYe+LYGnw SV0PniGZKgpL8ctW67v0M4c/1U8VF06OXTA+Gm6vISHmmzfrUX7kguVYIG7gmJ+UbpUb kvfTnRrwYRhwmmPhX4AJWPS1fM27eTVhoj1W3/H4XEvHio0e6Oh2vMmuEeuJMf824I96 CL2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=R7jiNrClTPLnmnXKMHklytIviNBAkmWfDOenfvyG6sU=; b=N/z1XvmKLh0qrWBl+PMOY9BP35PA1GfHKDPiLM5TzBhU4weqCd8IgjOmsauAXUVcFQ 4FbcyScwoSnT7xCeB+qMG/qNsIOcX6orn9ZSRMI+Ys8CdnsSTt7KRIf9UCltaWDQ4lUR 5t00Vw6ym7g6iBnYVG0R59A/orYyt6mo1xqcgVrb2C71WcxvCENG8OX1RymmtUJi3zdL 3fjLx9t3ZmxxKvCOXhRIuQ6ktUllgBWKKJYvRrBhCDl7xhvFP1zcur3VLeTB5bFxtO+P lK4v1RD503iiIXYi/9Sp04/5kJ16aCRoNoeHDNOAScWSh5qJYZLDvrVqxM7iY2iBVZ2A n+iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="lSJiPz/7"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10-v6si1725941pgk.672.2018.09.05.03.41.26; Wed, 05 Sep 2018 03:41:44 -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=@kernel.org header.s=default header.b="lSJiPz/7"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727597AbeIEPJ5 (ORCPT + 99 others); Wed, 5 Sep 2018 11:09:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:45714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726071AbeIEPJ5 (ORCPT ); Wed, 5 Sep 2018 11:09:57 -0400 Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B4AB92086A; Wed, 5 Sep 2018 10:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536144019; bh=T9wBMznCKudnOkR62/1OScS/rQUtrmusCxX+oGrg76Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lSJiPz/7ymIGwaZeOILM1k9YRJ4GqIt9hP7Gt0Vmies0lE9yo9dpokdB4Y1U8qHkm QZxVjrqKl/Kvhj1fC3Usc6CLydj0DQhUVBcN9KgsapqUhJBSaEr7fzA2QnBM6feo3F wTiAmHjyadDdXqKfu98YKa35WtAVhfN2xpU3mkoM= Received: by mail-wm0-f50.google.com with SMTP id f21-v6so7432906wmc.5; Wed, 05 Sep 2018 03:40:18 -0700 (PDT) X-Gm-Message-State: APzg51Dyfni9fPOo1/laKGcMilAmDeDrXngL724SEsX90NykrUHhTPvO 41pbqo5MS+k0B+2+4UULddbzD6fVutS3V7dAl4A= X-Received: by 2002:a1c:ac1:: with SMTP id 184-v6mr5235169wmk.119.1536144017208; Wed, 05 Sep 2018 03:40:17 -0700 (PDT) MIME-Version: 1.0 References: <20180905093243.3861-1-m.szyprowski@samsung.com> In-Reply-To: <20180905093243.3861-1-m.szyprowski@samsung.com> From: Krzysztof Kozlowski Date: Wed, 5 Sep 2018 12:40:05 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mfd: max8997: Enale irq-wakeup unconditionally To: Marek Szyprowski Cc: linux-kernel@vger.kernel.org, "linux-samsung-soc@vger.kernel.org" , myungjoo.ham@samsung.com, lee.jones@linaro.org, =?UTF-8?B?QmFydMWCb21pZWogxbtvxYJuaWVya2lld2ljeg==?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 5 Sep 2018 at 11:33, Marek Szyprowski wrote: > > IRQ wakeup support for MAX8997 driver was initially configured by > respective property in pdata. However, after the driver conversion to > device-tree, setting it was left as 'todo'. Nowadays most of other MAX PMIC > MFD drivers initialized from device-tree simply assume unconditionally that > they can be an irq wakeup source, so enable wakeup support also for > MAX8997. This fixes support for wakeup from MAX8997 RTC alarm. > > Signed-off-by: Marek Szyprowski If you want to have wakeup always, then just remove pd->wakeup and use always true in device_init_wakeup(). Otherwise (if it still should be configurable), use wakeup-source property in DTS: https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/power/wakeup-source.txt Best regards, Krzysztof > --- > drivers/mfd/max8997.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c > index 3f554c447521..7155e991cb82 100644 > --- a/drivers/mfd/max8997.c > +++ b/drivers/mfd/max8997.c > @@ -152,12 +152,7 @@ static struct max8997_platform_data *max8997_i2c_parse_dt_pdata( > return ERR_PTR(-ENOMEM); > > pd->ono = irq_of_parse_and_map(dev->of_node, 1); > - > - /* > - * ToDo: the 'wakeup' member in the platform data is more of a linux > - * specfic information. Hence, there is no binding for that yet and > - * not parsed here. > - */ > + pd->wakeup = true; > > return pd; > } > -- > 2.17.1 >