Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2168000rdb; Thu, 21 Sep 2023 10:17:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXrdHGkPA0ZWDYP6smchaHoYXm02muZopY+ScGbCDd0c5asnfqY1T80KgAVyRTS7sBZaT+ X-Received: by 2002:a05:6a00:2349:b0:68e:380c:6b13 with SMTP id j9-20020a056a00234900b0068e380c6b13mr6990785pfj.15.1695316638157; Thu, 21 Sep 2023 10:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695316638; cv=none; d=google.com; s=arc-20160816; b=DQZn2tbaW3SWmYMQDEBS2lDcROi57vhBE1J5NZdovRqMR8sfuDyrPwI9pTRfNI4nlW wcpGiYH/GjQ4Qofx7GRgV0JIKUhzhPmU5B1gSNtfldIBzhGhgpgpH/9mqEd7J/JMgEVC dZjOG7JClZh2QEeDbLucnX0OkYS2Ut5pqzgHykUx8sRVDyHDV9GPZpHe+VeQlTcMGsHT wvnjFqJVa3kzQIDU1Q2aWk3UAJCl9dOTPWqrEk1wGeHAKpakfbFr1OaYXUPfxZ/i4I8v zHYxswZkqfrirgIoMCgeSj2wy5Z5EAaFN4+tcQIvkVv/PAqEZ9k3EgomEr7o3aCnp+eV 1+GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=vdNvdWrJv4pZpBV9XZXcyjFDYLAUpCM3GPaE0lqh+Q4=; fh=42XwWkcaVGTmqH7uUo+PZlDqm+nqmQc2mhcEoquXlzc=; b=rAqEPg07EfSHiNbg05+JiP8A45X1fokK6GWboh1VcG9O0KU/kKkfpGhlkZ+lvyu5iV 0lOZBT7NZSTXTuSXqssyCWbcN2mB+GXAflobd9lCJiZUeibQGs5HAxHVKNkOO0MOd0dp chAUj/5mpyzrPmBAUOp90ODQ+d2YDXANk9cm00FNhI28lItSfoFRpiegCRYyMGvsLjXd +Y7k4h7MTDTu3tgRkoOR1fceelagVkQ6CTCo+nKsKSQhrPEfWmltWYgrnhHurG4/dhFP 51ydkux2l8cA4fighHynwOzFWZBtgyxRHDJtqTzRMyYpCQSaZmPMPagNLh9D6fK51vAW qaYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id s17-20020a656911000000b0056c2f508898si1804517pgq.725.2023.09.21.10.17.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 10:17:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A9FA580A2225; Thu, 21 Sep 2023 10:11:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230234AbjIURLM (ORCPT + 99 others); Thu, 21 Sep 2023 13:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbjIURJ3 (ORCPT ); Thu, 21 Sep 2023 13:09:29 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22F9965BC; Thu, 21 Sep 2023 10:05:16 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="466800712" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="466800712" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 04:24:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="776381303" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="776381303" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 04:24:33 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1qjHnK-0000000GsO5-33XN; Thu, 21 Sep 2023 14:24:30 +0300 Date: Thu, 21 Sep 2023 14:24:30 +0300 From: Andy Shevchenko To: Wenhua Lin Cc: Linus Walleij , Bartosz Golaszewski , Orson Zhai , Baolin Wang , Chunyan Zhang , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, wenhua lin , Xiongpeng Wu Subject: Re: [PATCH V2 2/4] gpio: sprd: Clear interrupt after set the interrupt type Message-ID: References: <20230921090027.11136-1-Wenhua.Lin@unisoc.com> <20230921090027.11136-3-Wenhua.Lin@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230921090027.11136-3-Wenhua.Lin@unisoc.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:11:35 -0700 (PDT) X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email On Thu, Sep 21, 2023 at 05:00:25PM +0800, Wenhua Lin wrote: > The initialization state of the EIC module is a high level trigger. Here you use EIC, in other places eic. Can you, please, be consistent? > If it is currently a high level, the interrupt condition is met at > this time, and the EIC interrupt has a latch capability, which will > cause an interrupt to occur after booting. To avoid this, When setting > the EIC interrupt trigger type, clear the interrupt once. -- With Best Regards, Andy Shevchenko