Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3033888pxb; Mon, 25 Jan 2021 05:26:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqVXCvgdgb9Bj5M7BEnqPwuYXFU/lwgWoVAvSyxt+oBzeo0bB87fXmmM1QIX87tOCPdzN8 X-Received: by 2002:a05:6402:2683:: with SMTP id w3mr446573edd.378.1611581174886; Mon, 25 Jan 2021 05:26:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611581174; cv=none; d=google.com; s=arc-20160816; b=f064EVnDJDOwKYvBiF5q01RLIOFqm4VjGZilhRn7mk2PzEzdzNGXh/xvzv6N6eJhBP BajHyrPqve2Z65hEqr9dEi5EebAP4zJlGPIbjRNwiTlivLydaY4BJZV1zDHM+b6+fiND HkvipO4EEnniYO8lFm+mUqe0SGGHA+4nwiC5QMCE71+5M1eoUG9rX2xXIw7+fEej2rPv +iJkqlV914CaMiXSZVwDZ45Eedeq1GuIwgy2meeU1jOdoH1h2G4Rtd5T6AwVyg24TSBp KP1MFiJiJBeI5McyjrikLBMzI2m23Fn9Z6tYtuZUnJnUBxgyF4G1pTk8oBehvjX8dy0L BwQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1LHPs6veKloMhyGbYCzf5Tkrc+RdfRRKizZUrP4RKFk=; b=nivwU9st/YTsdgN10fswjtak0YfQ+HVsnqfPRsZrmz7c8PcgHrgpiTZ/GmjphDHnwq cV/bqbocDouKWclPveeaYR9tA2ywBS2xlfHOyHNpXp0GJFOSqV5vFIYOO7iTDV9wB2IS lBCeeluyI4Qr/cp3JHLo8nWUn80EtJ05RSny3gR8HL3aJZ7jm9yiC6SWz6q+Fz+KKa2x ZuK0jFTQFoi7fGCcMQzPSkYrIQPnJfoWSSdeMxvqOEmtoXSzPjGh+2shE7hqTOSoXbGI D8A6HhGvzf8xdKw9VZUA1EEMJOl4JRy0uVP18UfrJYpm43VyXaSByhEOZdVx1uXmRDKE /kiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=no554Qq6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d11si5945384ejr.349.2021.01.25.05.25.49; Mon, 25 Jan 2021 05:26:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=no554Qq6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728743AbhAYNRt (ORCPT + 99 others); Mon, 25 Jan 2021 08:17:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728648AbhAYNMQ (ORCPT ); Mon, 25 Jan 2021 08:12:16 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB17DC06174A for ; Mon, 25 Jan 2021 05:11:35 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id t8so7858316ljk.10 for ; Mon, 25 Jan 2021 05:11:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1LHPs6veKloMhyGbYCzf5Tkrc+RdfRRKizZUrP4RKFk=; b=no554Qq64SPim1EkiyV++9RtKXhSiJqgj89U4AUxO5hNWnnHViu7BjgjSz8ZDoJYqf LW0GdBFzeFeszL7hHdwkSntSWE2O/C4QGTBl5cxeS393dYKAbrciyRWA8TwJeTkSq7LF GlwdRfD5eT2bZ6lf9IEY1x1vKreOlXrNEsIwVN789eG5pH3s+8xzpJN3Dl62us/rCTHc KfmMOr/E4La8i+C5E9aGQVCMT6CnvHAoxMebnW7K5drwNziItNuyOutIGjYHA0BVMTb9 p0C2E34IUVLijevWi8jla6iVc19Qjv7J5byAsZty6fAhKWu66e5nk58F6EB2B0Vsz4/c BByQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1LHPs6veKloMhyGbYCzf5Tkrc+RdfRRKizZUrP4RKFk=; b=d13kl8XnsZ75fFd/I3f2KEZYXr8Tv1Vf9O68DG5ywhl1mrNNqhvpodOANWqd7z3ZfI Cw3XLFW3E0qWnO98xsSH/FKlO+orF6ScMTnDS9Cw0STWP1wbW2cHwlAlPZxgidITAtxR cYt/3v17gidp0h2F/IcaZLzS/nmVLRkHSxnj7fFb1DTUEM8gjDEN9tEssidaZOF23Fym 0HoEjbWkuOQjd/OBdBmR6tKVPyix2k1Em6jOfzPGyZKQsPZx9PVvgwRRhvEYy93qgI2y KCgu1OHUyMXo53KZvX/imFAbadFihC/w326TaMyQ705zrC1SlA0d/fQNwSIF3J8rwg94 A9cA== X-Gm-Message-State: AOAM531iYle7v7Mjp5cINq2hKtLfgFoFAC5BtKScJbyq89mxrWRjR309 zvd1ibzit+E3ydJ3irksV1G46ATRBtEc9R3jGSVR1Q== X-Received: by 2002:a2e:964f:: with SMTP id z15mr166740ljh.368.1611580294339; Mon, 25 Jan 2021 05:11:34 -0800 (PST) MIME-Version: 1.0 References: <20210125041753.2214-1-hailong.fan@mediatek.com> In-Reply-To: <20210125041753.2214-1-hailong.fan@mediatek.com> From: Linus Walleij Date: Mon, 25 Jan 2021 14:11:23 +0100 Message-ID: Subject: Re: [PATCH V3] pinctrl: mediatek: Fix trigger type setting follow for unexpected interrupt To: Hailong Fan Cc: Sean Wang , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , "open list:GPIO SUBSYSTEM" , Linux ARM , "linux-kernel@vger.kernel.org" , youlin.pei@mediatek.com, Nicolas Boichat , srv_heupstream@mediatek.com, chentsung@chromium.org, gtk_pangao@mediatek.com, Hanks Chen , yong.wu@mediatek.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 25, 2021 at 5:18 AM Hailong Fan wrote: > When flipping the polarity will be generated interrupt under certain > circumstances, but GPIO external signal has not changed. > Then, mask the interrupt before polarity setting, and clear the > unexpected interrupt after trigger type setting completed. > > Remove mtk_eint_flip_edge: because mtk_eint_unmask already calls it. > > Signed-off-by: Hailong Fan > Reviewed-by: Nicolas Boichat Took out v2 and applied this v3 instead. (No idea what the difference is, you don't say.) Yours, Linus Walleij