Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp737798pxb; Wed, 18 Aug 2021 12:59:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkEnmc1QYUwcAQMoCZgpZHDqtyQiiVXsuz/q/qpwtiNYyV5O/sYjF/u3s8XrSjmRtyYVEY X-Received: by 2002:a05:6402:34d5:: with SMTP id w21mr12304858edc.210.1629316755461; Wed, 18 Aug 2021 12:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629316755; cv=none; d=google.com; s=arc-20160816; b=WKvD23Nl5daxTP4/J8ViP+IW5FVtNAVCFVZVYIRG+MrvQPzxmSCvaLtEIqwnQwbrpF JUrcVmUxLU7RbdC3HBuT81pNrh6jB4JHX7GCO/WC287w66dyD55w8sMuN9TzxmXQAzjW MrT2rteXODtlEfar/dMqhwwkbP4COMos8OScWmQ3uLkiMRaeIM/SAo2nb/AnMO7PZp8G Y/XBuejGTjBG4YOdlCKm2f+6JNx2UoT9Te+evjnJn2ke6u7AIDB2I43ySG7ptWFbXe2+ vSG9Lqh7jgEfjhc8UTS4Lqy51GsWuqVOhrcc+8Ok4k3UIbx6i2XMyeWAudK3A1oTIb1h jMvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=n97DgIAKSJU7LXWRTr2AfIBghnY/1OiG1Rinl6t+0kY=; b=E5bqueuShuZqmQEiR2y+SHPvEtIh0zjgUxH5zzFUUXuz6LgWA+Rx1LD2/7eauF/IaQ du6sb8OVKev/FlgS0b+yMzQqQYoA7liVOGxRKh4Sodc7BBhw+IV1p6ION9jTL/Rp2q9j EeJtNK++pkmDQ1+4z+OZbUDOd0+hxtEL6e75LaxrcbL7Bbt6JYQRC8AXIn+SkRdxaZQh nfWq03x+hiHDQdtA2kKQ0K9KXsCc/SoHGQfD7XM/wnxlN/J1e2CYrksHpWu8QyRe28TC f9BZtJxkW12uHIEtXEeYMUpbrqTMkSED3sh943AkgQRlUEM9fRUTrn0r0aoPgCYGtiOS bywQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=p3FmjRCX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si825069ejy.113.2021.08.18.12.58.52; Wed, 18 Aug 2021 12:59:15 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=p3FmjRCX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233607AbhHRT5o (ORCPT + 99 others); Wed, 18 Aug 2021 15:57:44 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:42394 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232969AbhHRT5g (ORCPT ); Wed, 18 Aug 2021 15:57:36 -0400 Date: Wed, 18 Aug 2021 19:56:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1629316620; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n97DgIAKSJU7LXWRTr2AfIBghnY/1OiG1Rinl6t+0kY=; b=p3FmjRCX0PxslJfmz2L4TuwrrqRZ2+NTdEjjqP3N4tSh/BvEQwD2l4ey++Ue7B7ITJuQdM PhJb17ftdfaUPOYlBCz9gGpWDj5YC9t4jgMCSIMNDsN5PJJcSivqTz1AZuPslwEN/nHg5c AQ8GW2chudjwMZpefr5IlT7+67ol3NWnqvOuAtu8BTRldDi0Vu7/Ebufn7hNfNqYD5q+pS D3z4IfNsmUy0Xh2ZdiLnomEGFTJbtFHqwXhDfBYr7JGVpTW1e5eUITLg/jmbg8mNIuw2f2 D8/5Lj4NSTfyoYKMf6xeoZ/tZlD5lm7jgVvd2kp0mcbv3jZ7Y9FX99talxl5JQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1629316620; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n97DgIAKSJU7LXWRTr2AfIBghnY/1OiG1Rinl6t+0kY=; b=yUhw4lCSidPPggxx5nIa6dnBpn0gLD7M0T2b+CcnsK1EiJ5r7bpc4W53t0aq9a0LvlTJ3o 3sT0n7a0kS3uP6AQ== From: "irqchip-bot for Jianqun Xu" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] gpio/rockchip: drop irq_gc_lock/irq_gc_unlock for irq set type Cc: Heiko Stuebner , Jianqun Xu , Linus Walleij , maz@kernel.org, tglx@linutronix.de In-Reply-To: <20210816012135.1119234-1-jay.xu@rock-chips.com> References: <20210816012135.1119234-1-jay.xu@rock-chips.com> MIME-Version: 1.0 Message-ID: <162931661928.25758.9843149521008622364.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 93103f6eb09ca5152ef9173ec8b91b78df1905e8 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/93103f6eb09ca5152ef9173ec8b91b78df1905e8 Author: Jianqun Xu AuthorDate: Mon, 16 Aug 2021 09:21:35 +08:00 Committer: Linus Walleij CommitterDate: Tue, 17 Aug 2021 01:01:50 +02:00 gpio/rockchip: drop irq_gc_lock/irq_gc_unlock for irq set type 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 Link: https://lore.kernel.org/r/20210816012135.1119234-1-jay.xu@rock-chips.com Signed-off-by: Linus Walleij --- 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 b2be560..036b2d9 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;