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: 10934541 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 ECF7C92A for ; Wed, 8 May 2019 07:33:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7EF427FB7 for ; Wed, 8 May 2019 07:33:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8D2E28708; Wed, 8 May 2019 07:33:47 +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 7AFFC27FB7 for ; Wed, 8 May 2019 07:33:47 +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=F9CdxqPf2fbwcxlW3cfEkr8jjcrzpR15HwXdvFHH0cM=; b=AmovMXqP2We+tg igMERmTK8qxD/OJ2MHE41+UEM1aZAnYRRg9+8zZYD+6kSh0sbajB677dTCpiG2/0Z/pCOPTGXHf0X oGqFqhVx8S9gROf1Oj4pamD1UnjHCy7FvvJTIQv6uMHUM/y02HAMrE9+DCr4Xv7nt8ltm1X20wXm1 /Q0Df2b2B9mAv62wBf1Df7IFvc4jU53MlzclrqGYjUVSsoH7pH5Z5IB/Wvuy1GFANQ3ViSi+nqB/v TnX9ZpmPKcNRBJnJbNK4gWE4Y1DEA2WYtWdQA+9EUPi11wC2ZPmKcBzYRAegJc69Fz7ilFARE8kYb EYcATDzJrdlMcXbsidcA==; 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 1hOH5B-0001X8-TR; Wed, 08 May 2019 07:33:41 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hOH58-0001Vf-Am for linux-arm-kernel@lists.infradead.org; Wed, 08 May 2019 07:33:39 +0000 Received: by mail-pg1-x541.google.com with SMTP id j26so9660710pgl.5 for ; Wed, 08 May 2019 00:33:37 -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=tIF3znWLVeWDQ8MGU3I2QFNybPAmjZQvTP64vFs+sNRTqZL81LoDWyZoHeUhGfElp3 STu7ZE/8BJpt5UXd7eYH+mwSr7RILQcehrp+/grI3a7D7ndVrxNGacy49zZkqHsyUL2J yDz1qRwPDL8+IeOV5I3DAzfeS73qE8imPtXPvuaIKbDjTkPp+RRXh8flCujup0BLWT4A 7ibp9MzuZ4+1duIUEsiRLmLgUh3UHAGI5zlcG54iH4KIVkXdHC89RC0XdjG5m5dRWZ/r D/xvm2hf6LZlOzq7EdJBZhS8CrVvuef2d0PXrpGyfJo2nH/AHON+anBFdWWGc5ax7UXu qLGg== X-Gm-Message-State: APjAAAVPm3IUk3iq7iQRfuUUv6OvvexOYzzDiN8VEDdeBsloarRDVV62 Yx0GXn4ZD9Rr4NblJOWCCY52OA== 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_399543_78330007 X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. 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 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