Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2746533pxb; Sun, 24 Jan 2021 19:22:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5xcBC3r7BD1Rbuv8rGrkaId+mNfQpW4lKXZ5pxBKx9Xs7WGFOotPZ88an34tPS1NLr7aG X-Received: by 2002:a17:907:7252:: with SMTP id ds18mr9790ejc.239.1611544947526; Sun, 24 Jan 2021 19:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611544947; cv=none; d=google.com; s=arc-20160816; b=aoVtqOh4WzxAMkt3AY/u3aThHxlNy7hRy6aqaMXU4OfzIaAc0BLoY4nWUE2K/hL9NH GPRpRIsCgX9JqKPMJRSSxvrrFdSU3jbnixi09v4m70Wd8gYundFVlkVHI+xS8mfdmhin WI4ixKSgzPj6EBJcBh6Pn9evk0UC/foF9A0CIz9xFGNxxNiq3t54zCF53Ce3aweY3Uyk ToDholAjfDIOuclXuVFbZ0KAh+8gG45FmOsCrYnz8xlN8FfQGEKB313ojPGjGNBrZUFY yaqf2iLpcRzjBu1ig/y1Krf6S9x46OgiDVmK2OUGA/GybGFaak+JmYqA9j5w+UmBznSl 4vcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=lLKMVs8fE2vVdWsZajBheeSZ7xutmr1c+2PDYuBc2xA=; b=zMpDLcKECBPMZfcactAKp9iqeoobxWo/IHEsH7GpDAwy67G8bJUHm9XIpd9HhDK3JM iK3cSWlHkgxqoI9dtAwEUKachGHBeS1vMNNzO6BoOFjlRLWakm4daw2au1xULLOMYWdC CB6p7S0UHZy+AotdMWbZfaTpHolqWTe+/HshRRnGOWrSsRFsuKcfU/SxxBSpTFNrZR/y 5F96RAAe3/MHlORH7UY7B+1tyyilngd7ZPSp7wKTlMyEi35i8OaC+3F52J++v3E+r4B6 EdN5kS96w9RMoi5vxiPWGEuCEREEml85H8M23aKDsQsndZesGOm6DKv4w6P/+E5D0qJq Chnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KNxbYJs9; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o5si4287813ejj.164.2021.01.24.19.22.04; Sun, 24 Jan 2021 19:22:27 -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=@mediatek.com header.s=dk header.b=KNxbYJs9; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727022AbhAYDSS (ORCPT + 99 others); Sun, 24 Jan 2021 22:18:18 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:42707 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727024AbhAYDRk (ORCPT ); Sun, 24 Jan 2021 22:17:40 -0500 X-UUID: 8f3baea1f7b840a08ffedcf7441ee9f1-20210125 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=lLKMVs8fE2vVdWsZajBheeSZ7xutmr1c+2PDYuBc2xA=; b=KNxbYJs9w7tq3lEVE6nW+oWXR98auhBoBMxvnSqCKNygV8Uu8+CmyT6PoIKVzNFOtUtt6NKdwJOkIDh30WriPJFauHknPRlsDtrNvdNmY6/wlf+am1oJhjdipkcKhpMga917aboFB2XYb1CMORgz3QR+qMMTc/0qkLsqTO2vyKg=; X-UUID: 8f3baea1f7b840a08ffedcf7441ee9f1-20210125 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1414889028; Mon, 25 Jan 2021 11:16:51 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 25 Jan 2021 11:16:44 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 25 Jan 2021 11:16:43 +0800 Message-ID: <1611544603.1248.4.camel@mhfsdcap03> Subject: Re: [PATCH RESEND] pinctrl: mediatek: Fix trigger type setting follow for unexpected interrupt From: mtk15103 To: Nicolas Boichat CC: Sean Wang , Linus Walleij , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , "open list:GPIO SUBSYSTEM" , linux-arm Mailing List , lkml , , srv_heupstream , Chen-Tsung Hsieh , , Hanks Chen , Yong Wu , , Date: Mon, 25 Jan 2021 11:16:43 +0800 In-Reply-To: References: <20210121075149.1310-1-hailong.fan@mediatek.com> <1611230975.2493.17.camel@mhfsdcap03> <1611283438.2493.23.camel@mhfsdcap03> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 9A7BAF05F21477708E1562AEFAEB3544FFCDA7ABFCCC70DE90D0C7139706089C2000:8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIxLT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