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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8FEDBC433F5 for ; Sun, 17 Apr 2022 16:56:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xNF7ZJzlP5MyRgu6Vz5z/c+jXt7kHfwXwHSMk0/QQFA=; b=4irW6A9rI2cVlF G8xOnpFMDX+1QtDmNPOjhc5Zh6cJ1JBbQq7gbaVcftsmX4YS1mTQi0eznzM5/heGyEcVtBoDGtIsc GnToIWpcts/9FNYrPBm7V7euWGtxyVgCN2Zgif0wNmFYtpf1S4/TLEm0t0yCjyDe3o1zHKiR9mwio wLGBN8HDdmIe6i1kLT+0PSO0KKde/0Cvk7etWfqwnOsHJqXdgKQ6eb06gmqynYt8m5+Q8DI0Pm2nw +tlxc91ol8W4dnbZj/1JFh2HdgeFxiqkjQlZ3rKAOg5Uvq2vtazj6r5W2HHZNYFFNeAleuuyMpMSb bSSqNoChuq4JDw+SUV2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ng8Av-00Ed14-R9; Sun, 17 Apr 2022 16:55:02 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ng89Z-00EcM4-8w for linux-arm-kernel@lists.infradead.org; Sun, 17 Apr 2022 16:53:39 +0000 Received: by mail-io1-xd2d.google.com with SMTP id n134so7377602iod.5 for ; Sun, 17 Apr 2022 09:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BEsXWsVAFxE0Qk9j9TD45ImCnz9zFCsmdmXDW5FiVWg=; b=e5qDIPzNb5i/XDJETnbYTVvf7n/Tz1w05RSl1zubtU+VL7MOtOpH5HwOutaI69+iZB rYx8U06TVLuwCczmAQ7VGcoSfQZ0VJRMpfdXLc0BltbM74CIqcBLSdYEICIvlV0pE38B LzSzw3RMgR4qOp9gMOSH6rdBVJ7hWQPifTqCObYy9JEftJz1fC5K+mZH2YX9SwcLgK2K GQW9/xgn0dwjFxTveoQrl1AXvmT18FQUdurqzuI3/vgftrUX0XyCZjLSrXLiJSKRfNP+ vL/c8Qk5C1iVmXXWgTWWKu1aoEyMKGEipgmcHYswfs3XGNKadPEpJwmrQCmiTl1dWvuE kiGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BEsXWsVAFxE0Qk9j9TD45ImCnz9zFCsmdmXDW5FiVWg=; b=UW8wCV3nsmX4fsIyeTD+4uC4XlbEeduL0W3rLRLB8T5//FJSOlqyos+gw1ktO8W3so v4NwGiO47VLojdO+O/9YTv7FfgB2pYw3G3rKem4pSZ3hrKYfpSnXGfJ5FUkJUf3Lvnfs OxRivB1IBJnHhIFobkNtvAyQoPYrCdgrYkEvXK+R594unS33JIifIBwCyOOccGB8kLOw iV6Xd3/JGLj6aNeXIYBb+/+7DmbbAeQRiaT2Ssodq27k+hGS4YiaBV6aH/+B3DTpkIac Wbo4Tj6/s6WtOzAXrxWhGv/2wYHfu7BzlGUjLFIe4aouUw+aCQVYs4AluOvjxBDLhtRK VuMQ== X-Gm-Message-State: AOAM533ACnyIoT9s0tMhCe6Pyh8XXqnTPqopezZPQCF5OaSKm8nbTUz/ pmx6q3tBKSl7yuhvG9fI+b4= X-Google-Smtp-Source: ABdhPJyh1gSqRyo717tsWNV4tEqAE7Hi4VCbdcxUrunF8BUVtyqzqiU0k2TgU5xd+dDGmmFmZvwZUQ== X-Received: by 2002:a05:6602:2c0b:b0:63d:dfb2:9a95 with SMTP id w11-20020a0566022c0b00b0063ddfb29a95mr3120108iov.93.1650214416558; Sun, 17 Apr 2022 09:53:36 -0700 (PDT) Received: from localhost (ec2-13-59-0-164.us-east-2.compute.amazonaws.com. [13.59.0.164]) by smtp.gmail.com with UTF8SMTPSA id l15-20020a056e0205cf00b002cbea6a61b9sm5338147ils.25.2022.04.17.09.53.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Apr 2022 09:53:36 -0700 (PDT) From: Schspa Shi To: andy.shevchenko@gmail.com Cc: brgl@bgdev.pl, f.fainelli@gmail.com, fancer.lancer@gmail.com, hoan@os.amperecomputing.com, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, opendmb@gmail.com, schspa@gmail.com Subject: [PATCH v2 08/15] gpio: ixp4xx: use raw lock for bgpio_lock Date: Mon, 18 Apr 2022 00:52:01 +0800 Message-Id: <20220417165208.39754-8-schspa@gmail.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20220417165208.39754-1-schspa@gmail.com> References: <20220417165208.39754-1-schspa@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220417_095337_390388_7EE0A840 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org bgpio_lock is changed to raw lock, fellow the header change Signed-off-by: Schspa Shi --- drivers/gpio/gpio-ixp4xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-ixp4xx.c b/drivers/gpio/gpio-ixp4xx.c index b3b050604e0b..6b184502fa3f 100644 --- a/drivers/gpio/gpio-ixp4xx.c +++ b/drivers/gpio/gpio-ixp4xx.c @@ -128,7 +128,7 @@ static int ixp4xx_gpio_irq_set_type(struct irq_data *d, unsigned int type) int_reg = IXP4XX_REG_GPIT1; } - spin_lock_irqsave(&g->gc.bgpio_lock, flags); + raw_spin_lock_irqsave(&g->gc.bgpio_lock, flags); /* Clear the style for the appropriate pin */ val = __raw_readl(g->base + int_reg); @@ -147,7 +147,7 @@ static int ixp4xx_gpio_irq_set_type(struct irq_data *d, unsigned int type) val |= BIT(d->hwirq); __raw_writel(val, g->base + IXP4XX_REG_GPOE); - spin_unlock_irqrestore(&g->gc.bgpio_lock, flags); + raw_spin_unlock_irqrestore(&g->gc.bgpio_lock, flags); /* This parent only accept level high (asserted) */ return irq_chip_set_type_parent(d, IRQ_TYPE_LEVEL_HIGH); -- 2.24.3 (Apple Git-128) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel