From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E96EAC433E0 for ; Tue, 23 Feb 2021 10:24:15 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1583E64E32 for ; Tue, 23 Feb 2021 10:24:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1583E64E32 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sntech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=hMz24e+491YuEERAMSaKqMpxSDLRCnF/FTGh3L43cUc=; b=TyjJZKu93PVaOf/brqcYQAjkS ixzbjIbj4lScHsBpZDae1ZimwvOQsmpAnYZmlU1IlV5kFKwnWrgdf7IcKIsUq8178dxnGIHBTO7sx xMqmJtdvMtx+xCxKocr+tgPtOLTQc/xCJoNxhyWGdP+6uQcu07h7PbM69nIMVw6lKOpSFXTQL5J1H xMznsc/8kWJoSDPTomgoY7kKpVpqFt+JzsEPhLmTV9QLJ9ghAXcggVku45Xwh4Ks2wucWFzX6xYVG JZMNUCAZwpjlsHKfniPMw4nn4FfdMcWt/ui/LjuYBssU4zaTB1kQej5AZFmpDa84T0ywlCC8GoLUm tWt8WFoPQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEUrT-0000Uw-2X; Tue, 23 Feb 2021 10:24:11 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEUrR-0000UU-FN for linux-rockchip@lists.infradead.org; Tue, 23 Feb 2021 10:24:10 +0000 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEUrQ-00006b-AO; Tue, 23 Feb 2021 11:24:08 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linus.walleij@linaro.org, Jianqun Xu Subject: Re: [PATCH] pinctrl: rockchip: clear int status when driver probed Date: Tue, 23 Feb 2021 11:24:07 +0100 Message-ID: <14836062.ZYm5mLc6kN@diego> In-Reply-To: <20210223101937.273085-1-jay.xu@rock-chips.com> References: <20210223101937.273085-1-jay.xu@rock-chips.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210223_052409_529174_C9C3CE65 X-CRM114-Status: GOOD ( 14.61 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-gpio@vger.kernel.org, Ziyuan Xu , Jianqun Xu , linux-rockchip@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Am Dienstag, 23. Februar 2021, 11:19:37 CET schrieb Jianqun Xu: > Some devices may do gpio interrupt trigger and make an int status before > pinctrl driver probed, then the gpio handler will keep complain untill > the device driver works to stop trigger. > > Signed-off-by: Ziyuan Xu > Signed-off-by: Jianqun Xu Reviewed-by: Heiko Stuebner > --- > drivers/pinctrl/pinctrl-rockchip.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c > index aa1a1c850d05..ec4cb88572cf 100644 > --- a/drivers/pinctrl/pinctrl-rockchip.c > +++ b/drivers/pinctrl/pinctrl-rockchip.c > @@ -3433,6 +3433,7 @@ static int rockchip_interrupts_register(struct platform_device *pdev, > * things enabled, so for us that's all masked and all enabled. > */ > writel_relaxed(0xffffffff, bank->reg_base + GPIO_INTMASK); > + writel_relaxed(0xffffffff, bank->reg_base + GPIO_PORTS_EOI); > writel_relaxed(0xffffffff, bank->reg_base + GPIO_INTEN); > gc->mask_cache = 0xffffffff; > > _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip