Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1348349pxy; Sun, 15 Aug 2021 18:25:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGRHyqBnoplZyAvQbkElrN9EAuu0VoJNVT/4hjXtpxyFZ+RbJmr7rQ0vEfjSptW6L8Ys4l X-Received: by 2002:a05:6402:c84:: with SMTP id cm4mr13248881edb.56.1629077156357; Sun, 15 Aug 2021 18:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629077156; cv=none; d=google.com; s=arc-20160816; b=KxGkphF4P6Sgwlw7TQbbXoP1BKsLYPoUyrPuM9qNMl4Wet+erdrnpoTXjSbYBGtRbq S44NfB4k76FLaxa+AGcmVIPdK0dvZvJV6K9RluJfWf1fTE9dNsyiJP8Vjmbk8rb/H0Cq kK7Bn3+omF4uaDY8ChtleAIt7ShfM+huGsRjfLAtcrum6VH2dfQ8l5v/OG+iEWMue5dY E7zannHfoACKu73ny0vNdJOvdjoPkyc14WQU7X3yfoGxopnybDaFRjaj03S5V3cw/ZMx x7MsxTujZkw2ZHoHDwurrFsyz9herj+mNxa0z/r2RiTkNo8l5Ifs6r+Pgr5wK33LHbG+ W3LQ== 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:message-id:date:subject:cc:to:from; bh=uuJv+GHj/D1qwfmsLqTq4olxMZBZFuW6arIYFYi284M=; b=ppD5/n3Io8gHFJV2YpMsaLLh+Nl7Q5GX/CnL9rAgV0G3gwWKUkY67UFWO7/ko45zm1 Z9c9P56J3BiU0SptB88qbD5SBZCavKiuh+3/1pYpba9qzVvC2V1U3H/110L4OOEdXQ+A pyTxLpYegWpTUcWc8IvwdMCCpKq8m5QIp2q4h7kzA8HhTev9bd4r/e403NKNmnA1wERI wx6MBNcJ6twJJFQi4+4jckdX0hTrkNcuh9HG25oIuiz99dYY9yDp4WRiIA1Ze8y0BG9k 5F1ICwv0BiH9mwh6HohcrTKLmM/TypGUI/G8TkRp5uB13fdhEeIhCX0rJMdPA0DceIEo xMYw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt41si7581899ejc.338.2021.08.15.18.25.34; Sun, 15 Aug 2021 18:25:56 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233017AbhHPBWO (ORCPT + 99 others); Sun, 15 Aug 2021 21:22:14 -0400 Received: from lucky1.263xmail.com ([211.157.147.131]:59178 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233002AbhHPBWN (ORCPT ); Sun, 15 Aug 2021 21:22:13 -0400 Received: from localhost (unknown [192.168.167.70]) by lucky1.263xmail.com (Postfix) with ESMTP id C67F0C2729; Mon, 16 Aug 2021 09:21:40 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-SKE-CHECKED: 1 X-ANTISPAM-LEVEL: 2 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P4989T139770969683712S1629076896694465_; Mon, 16 Aug 2021 09:21:38 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: jay.xu@rock-chips.com X-SENDER: xjq@rock-chips.com X-LOGIN-NAME: jay.xu@rock-chips.com X-FST-TO: linus.walleij@linaro.org X-RCPT-COUNT: 9 X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: Jianqun Xu To: linus.walleij@linaro.org, heiko@sntech.de Cc: bgolaszewski@baylibre.com, robh+dt@kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jianqun Xu Subject: [PATCH v8 8/9] gpio/rockchip: drop irq_gc_lock/irq_gc_unlock for irq set type Date: Mon, 16 Aug 2021 09:21:35 +0800 Message-Id: <20210816012135.1119234-1-jay.xu@rock-chips.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210816011948.1118959-1-jay.xu@rock-chips.com> References: <20210816011948.1118959-1-jay.xu@rock-chips.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There has spin lock for irq set type already, so drop irq_gc_lock and irq_gc_unlock. Reviewed-by: Heiko Stuebner Signed-off-by: Jianqun Xu --- v8: - none v7: - none v6: - add reviewed by heiko drivers/gpio/gpio-rockchip.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpio/gpio-rockchip.c b/drivers/gpio/gpio-rockchip.c index b2be56040289..036b2d959503 100644 --- a/drivers/gpio/gpio-rockchip.c +++ b/drivers/gpio/gpio-rockchip.c @@ -406,7 +406,6 @@ static int rockchip_irq_set_type(struct irq_data *d, unsigned int type) irq_set_handler_locked(d, handle_level_irq); raw_spin_lock_irqsave(&bank->slock, flags); - irq_gc_lock(gc); level = rockchip_gpio_readl(bank, bank->gpio_regs->int_type); polarity = rockchip_gpio_readl(bank, bank->gpio_regs->int_polarity); @@ -461,7 +460,6 @@ static int rockchip_irq_set_type(struct irq_data *d, unsigned int type) rockchip_gpio_writel(bank, level, bank->gpio_regs->int_type); rockchip_gpio_writel(bank, polarity, bank->gpio_regs->int_polarity); out: - irq_gc_unlock(gc); raw_spin_unlock_irqrestore(&bank->slock, flags); return ret; -- 2.25.1