From patchwork Mon Apr 29 03:55:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Boichat X-Patchwork-Id: 10921137 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 79F291398 for ; Mon, 29 Apr 2019 03:55:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E40C2858F for ; Mon, 29 Apr 2019 03:55:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 51D74285B5; Mon, 29 Apr 2019 03:55:36 +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 052982858F for ; Mon, 29 Apr 2019 03:55:35 +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=dpJmR4onAz/HzgV8KVDknlT0928R3tWUbelIo9AJBWE=; b=iPQT40RA4spYVQ HDrmx/xtc1CZBiUowKpsRQpPRlVisK4yjBf+SP/TLR4juEEPlTunrJRFay1V6B2Z1sxr37tSjIZ9w 9r6pKT+AxxEYMxd8L7AeWA3adREeXoyw6PSn8IIxm3EakvqgvQOflTibzXieqAT9o3Ca4mm0ambrt IyX9wLgS3c+d7PGYj8Xeyuoo+7cDC20eliwMbJ148cwz0ruxmk8gwbf6X1reQ5OAzc9gpDUD0OLNg lfa1UNUmo5wF7QJyD2uVd1afU7o449BPnU2xnTnnsvj5fPUBtMJq26JSXi3W41D15MDlUjogoxnxG fYKV44VCBpgkboAmll5Q==; 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 1hKxO6-00065T-Qk; Mon, 29 Apr 2019 03:55:30 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hKxO3-00064e-V0 for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2019 03:55:29 +0000 Received: by mail-pl1-x641.google.com with SMTP id f36so4426304plb.5 for ; Sun, 28 Apr 2019 20:55:27 -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=bXk34VsYreRCPNz4i6pWPCyTwvp96N833kW5KsYPoLI=; b=QA3b1VEMbb59818pXyhhNImtFA59xQ9SCX5WROV+Ul/trmfLt4HCeV030EL6SVf+iL N4s8vtOptfY7n0NAMyGYKVz7OOd8lsdVcIlBDOPBEJ/X1a81gLUMzCzapAfpsJkywWNo 7uLoYVxud71OMLp9bl+NqVQ57Yadzqm9zi1pg= 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=bXk34VsYreRCPNz4i6pWPCyTwvp96N833kW5KsYPoLI=; b=YNmTqi74blFP0uquoUq0dXceHmqjyNK1S08uvx/GhnhGxybzS7oQpywge57bWdfIAF 0xsxOCeu5/iI2QhOkog6xs46ogOf62KR3y3IZxYzyZ1Mznk0dYAf7vBMLhxr6glhNFyQ fNG6Cn6wW5ly6p98iqKldSHoUmS2LePqH9UUPE8Q8+G3NfW3Y9lbEUbeCRffHv7EC7sm eo0jW+epwdCjuK9HgxtreWEm1dF7VvHNAvVsN4aYA9iRRUZpKuJ8MhvGBBElTV8J4t5l 18UhaXuCz7MI//Mm20T2k53rlNsIwY+3fWisM/xGo4KrjDk56QEx8Tk+OjEolpk6FeAG eTMw== X-Gm-Message-State: APjAAAVtD/hCjhgwt1nqav/U2ngsifpsShSQw547tMRcIhENjY0kxFBV iq5NcObvMxAZwkAwXx17xq+D/A== X-Google-Smtp-Source: APXvYqzjt4UrpemC6KYvWhVVLUW4VYRT494asAiDQflS3Vl76Sn5i0szake9Oj3w9XgJcvbp9UevSA== X-Received: by 2002:a17:902:6f17:: with SMTP id w23mr39043760plk.29.1556510127299; Sun, 28 Apr 2019 20:55:27 -0700 (PDT) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:d8b7:33af:adcb:b648]) by smtp.gmail.com with ESMTPSA id x128sm55433585pfx.103.2019.04.28.20.55.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 20:55:26 -0700 (PDT) From: Nicolas Boichat To: linux-mediatek@lists.infradead.org Subject: [PATCH 0/2] pinctrl: mediatek: Fix 2 issues related to resume from wake sources. Date: Mon, 29 Apr 2019 11:55:13 +0800 Message-Id: <20190429035515.73611-1-drinkcat@chromium.org> X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190428_205528_023062_F465EDBC X-CRM114-Status: UNSURE ( 8.05 ) 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 fixes 2 issues when resuming from a wake source, especially if these wake sources are level-sensitive. Tested on mt8183 with the series in https://patchwork.kernel.org/cover/10921121/, but this should affect all mediatek platforms. Nicolas Boichat (2): pinctrl: mediatek: Ignore interrupts that are wake only during resume pinctrl: mediatek: Update cur_mask in mask/mask ops drivers/pinctrl/mediatek/mtk-eint.c | 34 ++++++++++++++++------------- 1 file changed, 19 insertions(+), 15 deletions(-)