From patchwork Mon Apr 29 03:25:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Boichat X-Patchwork-Id: 10921129 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4F857912 for ; Mon, 29 Apr 2019 03:26:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E0ED28658 for ; Mon, 29 Apr 2019 03:26:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3223628735; Mon, 29 Apr 2019 03:26:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CD91C28658 for ; Mon, 29 Apr 2019 03:26:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SlvfRwQK4nz+zKUklO+aeJ/VcpOfTHtgofcUCwle1xU=; b=cGnfKihU3esNEp Ib9MfwoQ5JrUordsb3PCyPQgCFXmMLahQV/2KVgMJAlmLmf07TEM775G5Ixq1FZMS91XmOZPjx6j4 9laGSXdvbqPNQ0zjvK729j8a0XfiIBWpkZjme3+fJ7iTCcgsnhVfTgHkccxzeAOfqr7s/Q8DRio3T uScCc02K5/FkejHEaY9UiruK1BXhErtKqmEPPuWuXZrygwlUpWxf6sLOKf3/qEOdAVGxOJvtksCLS 0e/u+lYkyy4wItF1B9i3Hk6V+sSUqReiYPWRhHaPSFJXguRKzQabHTJmcOF7VECtUIpuUSd8Gvqs8 j3SjW0h8Cx5/1ezbCFIQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hKwwK-0005Rt-UJ; Mon, 29 Apr 2019 03:26:48 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hKwvj-0004nn-Te for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2019 03:26:16 +0000 Received: by mail-pl1-x642.google.com with SMTP id l2so1626956plt.11 for ; Sun, 28 Apr 2019 20:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cjmbiwT3xx0O7Zw3eEqLKXpxbtx6F0HnsFgBh+Wws60=; b=CNgWhxrReeKSMttB9V3/AQpjze5DuX7cltNGhy/sDaNNUG7o+k1WqxOSMkKwKlDvW2 /9n0hGXDpt/Or05jBZQIIJVwxeyltEgOjCn83ff0quxl9zoHmE2m3a1M1H44l1FkUIzz fYB61oYgVr8AOx3UNCWaSDCzPBsI7r0sSZzRE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cjmbiwT3xx0O7Zw3eEqLKXpxbtx6F0HnsFgBh+Wws60=; b=dkpuM+jqfuRWAQJDpwUnzu4WHZAbWw2CvFT7+99Y/E71eOkKAovqFz2DfOB6OtezCi mhbTobLq03Q2imsE+9So7dypQqB9oyFBHAlL+5H485DkWRfPBr8Y7UBLj/1v0VdDWKxe +FdSs3qa1XGDectgqmWomqI3DgzNEq3bQPO6HZKEnT6Sbqv46sT9f+NeCjVFWCkX6AdK 4zHwUwSBwU44pE7Wd6kahHO2BfGXfrax4FczbT5FJiuTVMBkmHOamfBkiRbnxaNOJB6t b/P3SrOrZIGBBD2M0zV5uVp2M9e8qtLxk6GM176HCC3LAOHkqL5UvOg6LuZOnjEOoaeo WZGQ== X-Gm-Message-State: APjAAAXPrvf5yROIT0RHWP+EQ/bi+WpmQ8Z3CsJ5/QL9B3X9gnlbOZTk shcMIjjE75Z+dgEbqWG73SIl9g== X-Google-Smtp-Source: APXvYqy06pNWRUPq6DrNgZnE5+p+TnTL2fBYI+0TfPcqSXM5TfqsdN3IWuQyyVKhaxJhoe+spIIhgA== X-Received: by 2002:a17:902:a7:: with SMTP id a36mr59457611pla.111.1556508371342; Sun, 28 Apr 2019 20:26:11 -0700 (PDT) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:d8b7:33af:adcb:b648]) by smtp.gmail.com with ESMTPSA id a10sm41364938pfc.21.2019.04.28.20.26.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 20:26:10 -0700 (PDT) From: Nicolas Boichat To: linux-mediatek@lists.infradead.org Subject: [PATCH 2/2] pinctrl: mediatek: mt8183: Add mtk_eint_pm_ops Date: Mon, 29 Apr 2019 11:25:51 +0800 Message-Id: <20190429032551.65975-3-drinkcat@chromium.org> X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog In-Reply-To: <20190429032551.65975-1-drinkcat@chromium.org> References: <20190429032551.65975-1-drinkcat@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190428_202612_164089_80E78520 X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chuanjia Liu , Linus Walleij , Sean Wang , linux-kernel@vger.kernel.org, evgreen@chromium.org, swboyd@chromium.org, linux-gpio@vger.kernel.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Setting this up will configure wake from suspend properly, and wake only for the interrupts that are setup in wake_mask, not all interrupts. Signed-off-by: Nicolas Boichat Reviewed-by: Chuanjia Liu --- drivers/pinctrl/mediatek/pinctrl-mt8183.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8183.c b/drivers/pinctrl/mediatek/pinctrl-mt8183.c index 2c7409ed16fae9c..ce93e55b79a435a 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt8183.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt8183.c @@ -583,6 +583,7 @@ static struct platform_driver mt8183_pinctrl_driver = { .driver = { .name = "mt8183-pinctrl", .of_match_table = mt8183_pinctrl_of_match, + .pm = &mtk_eint_pm_ops, }, .probe = mt8183_pinctrl_probe, };