Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3151454pxv; Sun, 25 Jul 2021 18:37:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUog5MYLKhnsIIytoY+pRDjqGRRAVfZyyS78utex1UJIJzHhWReFPh55IJPKe0zzw5pRsX X-Received: by 2002:a5d:8a17:: with SMTP id w23mr13045544iod.19.1627263475440; Sun, 25 Jul 2021 18:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627263475; cv=none; d=google.com; s=arc-20160816; b=xdb8C1GMdF74SlTMQu2kEsiYVWakUZlIb4sVaXm6PMLriskGanrgwV+WY/wgwCL48B TbTQuMD+5F3cNOeOe9l/jmlvndzmUSl1tF2iQufLVyOvt/dUdGTlTJRLxRtbZsq7GssH lAysBhl5NiAwxRIavhJ4IO3+qYDJM4V4RgQ0MUzrBc5YeBk9RnuoH8U/GTqrBzW4AQ5X OWuEHS8SbOaeV9DI3Zc7LXZMcK749doZr7TRNfJQm5vOAK6pE/b8e5OdyU3Hx6gDaGVC 5YDpMiXwo77c/YpwtTnTkwIQy1x4qtYQcv6HUSBfbpBsRoeTVJ3emX/iC5ZHRGe3EF2+ 0+5g== 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=0s7YY9Ei5/k48QPYhFT1SC3XKsoXM6OS5sQe13CC1yY=; b=iMMNrK5MQRvdo03xn3HyM4Aola/re0fZW+aZ2NYPbo4XjqC24UWffUt2fi3ot5KMsJ fYR38WuziJRm+0zPlFGgxZGyT1rFT+xzWF99ZZKcSh+NOp2UEVMb/Kyp1v3QALiX66R2 PPyYDJafrJq4NzPuVfGA6FmjX0kXPV5JRscYqA3cOFwZhxycIGrY9CoiULuiUY+p/JPU 0y83eLniPGnZeodoCPFwDCafoHrv3kk7/sEhl4lwUV/XH3a4MqWTEsjIpV6pcQg9KvIs cMFUIocujBGsOz2Jh/UOmxIzwImCYYJ79BUE68/xFri8gL7L5fKmsuQCsSE8mwScSC9F 4mwA== 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 b12si39886720ioj.88.2021.07.25.18.37.44; Sun, 25 Jul 2021 18:37:55 -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 S231646AbhGZAzQ (ORCPT + 99 others); Sun, 25 Jul 2021 20:55:16 -0400 Received: from lucky1.263xmail.com ([211.157.147.131]:48578 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231639AbhGZAzQ (ORCPT ); Sun, 25 Jul 2021 20:55:16 -0400 Received: from localhost (unknown [192.168.167.16]) by lucky1.263xmail.com (Postfix) with ESMTP id EB329C1D15; Mon, 26 Jul 2021 09:35:43 +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 P26933T140041662949120S1627263341300227_; Mon, 26 Jul 2021 09:35:43 +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 v7 8/9] gpio/rockchip: drop irq_gc_lock/irq_gc_unlock for irq set type Date: Mon, 26 Jul 2021 09:35:39 +0800 Message-Id: <20210726013539.1634793-1-jay.xu@rock-chips.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <210726013345.1634442-1-jay.xu@rock-chips.com> References: <210726013345.1634442-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 --- 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