Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3211436yba; Sun, 28 Apr 2019 20:27:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxjYP5+MwI72aeWW2J8+ovQHIZhPD0Gq9808tjOaWRfdhs9aUxJUNMjqCagZ58wWnGjZ+O X-Received: by 2002:a63:ee15:: with SMTP id e21mr27912948pgi.180.1556508456346; Sun, 28 Apr 2019 20:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556508456; cv=none; d=google.com; s=arc-20160816; b=JzAHhr2nK4fs7/QQ0V4MbOyzWlTTy+7ll2qNlF6wvUKkjWa+LBlx7SWcFLoZg0yJNy CS9AUYCr5n72VC2AmiTs7dNTh5sA9Hic0EaduaeAx56n6V+BSlGwXqeJ/2RHn50Mkhhz fcjk0TjPgaVvZDGpJdeu5hrX1ZJCqPsJtwBOxrKW3Q6VtQH64RRy0SbS4cjtxuQ85a0z 8qh1NzVDyx0rbUHKT9qxV+HIdLlsLiIoZsfD6S++EQ17f4SM0NUDNw92+mEIGEI+qNHR YaYOk/heHTb4rIMfjdg6X83kUmfUIPpq4dD8P4gr/rco8FngNsx8tObQXNSmea/cJZN8 EYXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cjmbiwT3xx0O7Zw3eEqLKXpxbtx6F0HnsFgBh+Wws60=; b=MQjdIfFlMIRWQggnkCL0QIla6xoZIiaSKAb2qtIqCNPWx2/XqassS4RjKNLZHFZFmm taawuLQr7CMOQC0oBItNMjqLVy5YMZWmEPpKC1a5WYhdCuMvTr67e8/SzF12TEPHvGh1 d/JJhz3bA2FHU6LzhQFvd7ih/KmLhnc+m8NglzlSG1Pz2yEkcEXL7wQYnviZsprgdekP RhnK2ODyqON+mVC5hR0go3KU5AMWAElEkOn0kZbMiJgsLy1QyOWnUE8T1XyhuWhhPhoa RqThZK2e/hScEkicokv9J39Cw1k1kVNw11qltiy2v8ZSxI+LiLyf2oTNrQbGe+F86jNq +OJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CNgWhxrR; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12si8423844pgg.237.2019.04.28.20.27.21; Sun, 28 Apr 2019 20:27:36 -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=@chromium.org header.s=google header.b=CNgWhxrR; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727327AbfD2D0M (ORCPT + 99 others); Sun, 28 Apr 2019 23:26:12 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:40321 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727268AbfD2D0M (ORCPT ); Sun, 28 Apr 2019 23:26:12 -0400 Received: by mail-pl1-f194.google.com with SMTP id b3so4389236plr.7 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=PlsXB20HvTQ3uOb2zZBEFa8X55MaEELRyIBqkB2FtRbCsCmeU+dv0uy5fKpmWlcRVD Q8hN2SIVLBaP6EI4YFetWoEhSspEVMvljS/xzSdSQhz8dz2FlBciMeXdKzhyHeviow/y RXvd+OYRZFG/ZC+W2T51D65B9nnVCK3Nq0SVwegLmNQQg+4uxNTZvF/BaLkpkZoCJInI EYCzEO6aTfleduFNY2BMnz1uRnVoDxhzDbENINRYm1YkBuFr1b8qBbW6KM8OCpd/mZ1s d96D27gSp+RkOhlpSb8t+s7pcQ6udWRzvIJBz9Q2Ve5ZKrrOSqrdDyjBd6PQADujc6gq 2xzA== X-Gm-Message-State: APjAAAVupxmsS6JJwVisCp64LX3dPA3kaMrOQ1qaqqR3hd9iWwWFPiuD yZnhGFEDOAT81dDFhtf3FqNjbQ== 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 Cc: Sean Wang , Linus Walleij , Matthias Brugger , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chuanjia Liu , evgreen@chromium.org, swboyd@chromium.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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, }; -- 2.21.0.593.g511ec345e18-goog