Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2636537pxb; Mon, 18 Apr 2022 05:17:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt1JpHP5nqmKqHJ3Q1W+0QnOpEn0KQvIRq9Htzcb+OcaezsWKiacnYhWFhoFgLVQGQamSJ X-Received: by 2002:a05:6a00:1897:b0:50a:5c7d:e003 with SMTP id x23-20020a056a00189700b0050a5c7de003mr9139945pfh.28.1650284242561; Mon, 18 Apr 2022 05:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650284242; cv=none; d=google.com; s=arc-20160816; b=TWdGa+TQgnXR+CR6Z+u/mLsot8SGrBwE2aOPrEbJtr4wRlV9hTd3hBxas0vXTxCHgT 3+XMd6Db35FKNFSdMXHtg+ZJaodvHktBoUS+rAc/cjPmFa92izl9Ijw0fFCIgERl+VxS ihw7NZStiBdFaZ0kXRm+R0gImiMYcQWYeGPE0QjrO0lXH/t8kc9M/c0+y+YxipTYqo1J JOGDs7cVNuJZ4ruzMu+ZPzz9EtUiS171KHQKGRkWdSaMtm8XcyotviUln3OC28Kd4Kwx ym9q3ACeJ1grZ0gpfmelGRAeWOkSrTkhckXCcEgmOQQeyjL3sB1BQ6wTOclgam8XfaL4 aXHg== 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 :dkim-signature; bh=BEsXWsVAFxE0Qk9j9TD45ImCnz9zFCsmdmXDW5FiVWg=; b=g7REmy9aXbQvPsw03cgu6zAf2oHaWwyzBBvjC72Y3sifK9L+WLexzOMFScFgkc3+QR 3/Am9SMTK3uvqCi09zKDM07UVZp0VsGGF8tiB6+MxNTyvrxf1rGHr9aslGQP+uPafHQ1 L7h5n6XHW4OP/GBOiLBKFU4e2lcKbBAcR/+GM40f6cF8+BKkayFZCO5C/eYHWI/jXhUb 13Yv0/9HRVLCMv+1siX6vH4/tOl5gDKKoOZZ67yg2+IE96/jxe24HoWnYlFLozUKw7rQ jSVY8/sP6sqwG/2AZUNHLcjlmJP6nyJ/GppNpJSGGTuwZseUvg/N2GYoiBrNg7402R6J A1jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e5qDIPzN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a170902eb1100b00153b2d1663fsi8088303plb.583.2022.04.18.05.17.08; Mon, 18 Apr 2022 05:17:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e5qDIPzN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234484AbiDQQ4Q (ORCPT + 99 others); Sun, 17 Apr 2022 12:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234464AbiDQQ4M (ORCPT ); Sun, 17 Apr 2022 12:56:12 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23BD82717C; Sun, 17 Apr 2022 09:53:37 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id 125so12402699iov.10; 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=WHLxQVocLVSJ01wACLj2FEPM86MqYsVheC1jD1wGYpiPcQrCdXqD5oGFjV7+iRZnXb UvCwcjyy5sYrgWlsBhdIhZQR+5g29bZ5lNy1Rs3s2p2lhGA0+9IhmmWU/RaeHSqpGtcv vePtdqx4YGZcCt9lGkep774N4u7pbvVu6dGIxAvGc37uly6tG2v/aqxsyYkZK8v0Vj8k 5UkgsGM+j+phamaHBUmBHnsBJyiP2jKtchnUgkeGg//C4MrH2a8mcJwngHYgIvF8+Nsc mLfv1T6tVqpn6GskGKJn3Oqzj5BGYoSQ/MkvV2urv9RZm1NsjanwIymb4A78oAYGohv6 XsaA== X-Gm-Message-State: AOAM5331gNRvbwdpTrjW8+lGRhJOuJqPACqMPU8h7IkzUAmwFxnb/AYg cbo0qXwKzScHzXeqFStiwXQ= 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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)