From patchwork Wed May 8 07:33:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Boichat X-Patchwork-Id: 10934543 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 8738613AD for ; Wed, 8 May 2019 07:33:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71F9C27FB7 for ; Wed, 8 May 2019 07:33:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 661DF28708; Wed, 8 May 2019 07:33:48 +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 2213B27FB7 for ; Wed, 8 May 2019 07:33:48 +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: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:In-Reply-To:References: List-Owner; bh=/8uXYT9U44T2+Nz2Rv3301Xn9Aq2WzFhDZlKV7udh3c=; b=qJ6GSJq9FPIgzD r13dhn/jLg1Y5ujJbdn8HHXQKigwVAQG0+pSTW4v3homuA22Ztu7FFxtlNS9jXNTcrEHNzWiKzz1K NSqgZxIXPB/Opiqy7p1KtGp/vRzZj8SEWaOkHU7qZ719D8TM4FjyF1vmB7B4JYDJYNjuxdCDQpyjR Oeqhdpi6Zuu4B5ZCTYprqehnPEhqa4aSUSVr/xM3rVKrF8bTPtIxbxLOvquwbGBd6gUBzOL7UP8vC FiDecLTzhHBkBf2pzBwMsu83P/I18v+q8I9s9Wmq/QSprvsW3stOnd680VwRvJGdltT0ukWUYyvBZ /W9HAKDmqqNZOrlrzywQ==; 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 1hOH5G-0001e6-P6; Wed, 08 May 2019 07:33:46 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hOH58-0001Vg-Am for linux-mediatek@lists.infradead.org; Wed, 08 May 2019 07:33:39 +0000 Received: by mail-pf1-x441.google.com with SMTP id j11so10018838pff.13 for ; Wed, 08 May 2019 00:33:38 -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:mime-version :content-transfer-encoding; bh=cXDSUoWLJ80ofU9SNBABTlyG/UyP3q/4EzPOKhLgxHM=; b=JAI6ShQFH5LPrZX4xP0iFXDlDAd4VN4ubLGwY2TwHwEtFJ4qd+UKB0kAFNMmlDUy3/ 9k6f03F08QS2BDgt/s4UrtkxIbFJsaLs76mX9jjd5fOIsOuNzAivPbnD08UX7gb3Jgqw 1ldBY+aY6kti87kHKpHzxW5ZMzbT0SLV3Eitc= 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:mime-version :content-transfer-encoding; bh=cXDSUoWLJ80ofU9SNBABTlyG/UyP3q/4EzPOKhLgxHM=; b=tqQhH7PVfhZ7x4ZW2l4iJamLhNPcZcIGMgo7tLWmwDVvO3gwetn5HWEyt3GL+hBuDb mBUET84l/gj1HDg2A63WjE3/cL8e0ckulHjPwIdhWpYKydcCHc7NbcDy6Q0q4Q0egOy2 EM5ztZfPzj+wYgUOOT7Aj7RRClbLvtHjizZXhfBf37BigiHl90cVW7eq/jvrJK6wmBke 5EqSuTY/cnWnpwDbe3QN0Uqqr+hgpbfAAV/EvBWLSI/oUJkc3Ew6B/AOf1pcP5bP/BeD dbbjCyhjb8/kqsxKSqWCeJSjJ/Z+NzLkg7TeC2W3bZ7tKlD3LV3fKxgYkLkqmAL7YXyy 1Qpw== X-Gm-Message-State: APjAAAWURyQEPUkthmypNM1v3wtQB3vOnuAqHLrcgYr0WrGczA88JwsI vpK85ysPM3NyE89M+3OqYQXgDToMkLubnGnB X-Google-Smtp-Source: APXvYqwZZ1j+Kgl5thN1AhwfMfoLsny+ZI4X49uRTCohf76ophHTPd+CXngETV9CgnXsMhUfkhp3zg== X-Received: by 2002:a62:1897:: with SMTP id 145mr47430119pfy.122.1557300817134; Wed, 08 May 2019 00:33:37 -0700 (PDT) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:d8b7:33af:adcb:b648]) by smtp.gmail.com with ESMTPSA id n26sm29539047pfi.165.2019.05.08.00.33.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 00:33:36 -0700 (PDT) From: Nicolas Boichat To: linux-mediatek@lists.infradead.org Subject: [PATCH v2 0/2] pinctrl: mediatek: mt8183: Add support for wake sources Date: Wed, 8 May 2019 15:33:29 +0800 Message-Id: <20190508073331.27475-1-drinkcat@chromium.org> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190508_003338_399482_4FCCDCE8 X-CRM114-Status: UNSURE ( 8.01 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds support for wake sources in pinctrl-mtk-common-v2, and pinctrl-mt8183. Without this patch, all interrupts that are left enabled on suspend act as wake sources (and wake sources without interrupt enabled do not). Changes since v1: - Move changes from mtk-common-v2 to mtk-pinctrl-paris, as recommended by Sean, to keep better separation between eint and pinctrl-common features. Nicolas Boichat (2): pinctrl: mediatek: Add pm_ops to pinctrl-paris pinctrl: mediatek: mt8183: Add mtk_pinctrl_paris_pm_ops drivers/pinctrl/mediatek/pinctrl-mt8183.c | 1 + drivers/pinctrl/mediatek/pinctrl-paris.c | 19 +++++++++++++++++++ drivers/pinctrl/mediatek/pinctrl-paris.h | 2 ++ 3 files changed, 22 insertions(+) Acked-by: Sean Wang