Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2452242pxb; Sun, 17 Apr 2022 23:44:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEJZ8zUOgoNHvSfFYzwG2UzvkecOWO94rsTKuoHpC447ekrfKS489GaLwGBIYRuO2mtxks X-Received: by 2002:a63:7c42:0:b0:39c:c333:b3d4 with SMTP id l2-20020a637c42000000b0039cc333b3d4mr8944463pgn.456.1650264290760; Sun, 17 Apr 2022 23:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650264290; cv=none; d=google.com; s=arc-20160816; b=qsi+eDEz9g2WccunrN33YUfV43pfSXWQ8GyTZgTzV/LJPQXLtiKObbOPcS7cqDnHN2 hTGH07l+i3G1ijTqLau+C38dhXms/6bl4MQjg83evhBZudyMh7nIwrctBouEGYU4b4E2 cHPf+QKqfXqCGw9HcTZRMSYkeZ1lrd4t0EeyPbkFIoMwAOfftlBSc6OeVsMxnoI6/NMi vqTu7gTE+nPh4GgCl0W/TpAYXXD0xcAQmfganm+y6mfrVWH/bX4DDcyllpK+IXwAGDUv qx/70bw1zEYBA2UNkOmdzsKYY9h/7LPDNzBkeeGOvVoJdGtxRFUyREE6JkThQRfnanzx b88w== 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=WpafZOKGy8uw4nGe6/GVYe+oBX78YZzxyaLoPSujzfU=; b=ZD9q+cdSE6K1/NAYjrfRI1/GFNH9RL9N8zeKORcteq/4Z7XvODMFYrBYykD55FFqHa /4y+CAJi2H/B7M0SADoKdUvk5jtCMkyxPZ3KaKnpaP8oD32ghUTjMxdUzZnj8DYkRllT XW0vCgYcpwfzwSQG6TBGVVaVcz2rqXrUQ0q0D8wvFui4CVp/CEC0PLoL5rIWXvm1q0gO lZcujCk59oGqzwNeuE0qRW0wUF98jlvoIq5cA2HIWRg6aavNd6292bp4Ype9HlVukFWU /W9CpAFIa2RjqJdMzs8uAKDQy5+bkwsAeddz/Sson6kbZ+0LgRHhdZh3iRv7UF0VyJj0 +avQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=egMfLQdO; 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 j193-20020a638bca000000b003984299e83fsi8004761pge.474.2022.04.17.23.44.36; Sun, 17 Apr 2022 23:44:50 -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=egMfLQdO; 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 S234565AbiDQQ5C (ORCPT + 99 others); Sun, 17 Apr 2022 12:57:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234547AbiDQQ4t (ORCPT ); Sun, 17 Apr 2022 12:56:49 -0400 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3584636B50; Sun, 17 Apr 2022 09:54:13 -0700 (PDT) Received: by mail-il1-x133.google.com with SMTP id r17so1386444iln.9; Sun, 17 Apr 2022 09:54:13 -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=WpafZOKGy8uw4nGe6/GVYe+oBX78YZzxyaLoPSujzfU=; b=egMfLQdOLO8GIGFwSxiNlknQU9OQprDKwJuzaZCkUJsN+I2Z32yd4zQHbWDu/PmvMn vz4uh3chuZUOVGEjIxrK+GGMQYsw4Y9zv6jvFUIRxHBpSfkBKJrfWWzKmw9raaqJ+JWM K1NrAtoj2Ersr815tCIh7bpVPB14aUw23T3IV5slSA1Gu8/+tOsdxElP+Wb1XKawNLCI khTPBzemsqLcDy3uvML++snSlTkxpCnuZ8YyPMusgd79yd5pxrsG+zbV7rM+fhrLNUJU 0X59h8BYJOi6gicT0MWDLLK2lY93/Ylf30nvWVKgvmfYA7AutbEQEPZB5HMe8r1dKfj9 /6bg== 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=WpafZOKGy8uw4nGe6/GVYe+oBX78YZzxyaLoPSujzfU=; b=ykQLXZlHsjk/b11OtUDzTWSdJjEUZ9k+eA1wGWNWQ8BAXf2P/6d//aJCN8klt+v0so o7BnKnp2WCZqoa3UTRWc5S8XQiSx3QfYT3Dt2+YKykdQT40FENepxfcCjT0GlKhfR+0V mRdLg3lHn8qj5Wn6hHz/cvarTs91cNKUHUNorNtvp8XofD7nDH94TbhybhRM04ux888w RSaKf1J+5kBw6wzDEW8kaEOFTx67WakmFYnqRWNb5NFtHwWOax45VHjPs5lXZdxJSFd4 HDnDx06FsYvShEMlkZ3Ujr7ojQyHEzlvvHhh/uEK2wRtpJ6uFLkYG3W/4PvQlFv75B7b lOcQ== X-Gm-Message-State: AOAM531P71uBK6uXOJN/hctD6sNKEiWBxGdLTtc/DJtOP/syPN7Qp5q7 enYcAjVwceL6vCJ7jofWnT4= X-Received: by 2002:a92:9405:0:b0:2bf:6a01:6ad1 with SMTP id c5-20020a929405000000b002bf6a016ad1mr3246596ili.197.1650214452620; Sun, 17 Apr 2022 09:54:12 -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 t18-20020a056e02011200b002cbe6ce18e5sm5697326ilm.40.2022.04.17.09.54.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Apr 2022 09:54:12 -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 13/15] gpio: cadence: use raw lock for bgpio_lock Date: Mon, 18 Apr 2022 00:52:06 +0800 Message-Id: <20220417165208.39754-13-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-cadence.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-cadence.c b/drivers/gpio/gpio-cadence.c index 562f8f7e7d1f..137aea49ba02 100644 --- a/drivers/gpio/gpio-cadence.c +++ b/drivers/gpio/gpio-cadence.c @@ -41,12 +41,12 @@ static int cdns_gpio_request(struct gpio_chip *chip, unsigned int offset) struct cdns_gpio_chip *cgpio = gpiochip_get_data(chip); unsigned long flags; - spin_lock_irqsave(&chip->bgpio_lock, flags); + raw_spin_lock_irqsave(&chip->bgpio_lock, flags); iowrite32(ioread32(cgpio->regs + CDNS_GPIO_BYPASS_MODE) & ~BIT(offset), cgpio->regs + CDNS_GPIO_BYPASS_MODE); - spin_unlock_irqrestore(&chip->bgpio_lock, flags); + raw_spin_unlock_irqrestore(&chip->bgpio_lock, flags); return 0; } @@ -55,13 +55,13 @@ static void cdns_gpio_free(struct gpio_chip *chip, unsigned int offset) struct cdns_gpio_chip *cgpio = gpiochip_get_data(chip); unsigned long flags; - spin_lock_irqsave(&chip->bgpio_lock, flags); + raw_spin_lock_irqsave(&chip->bgpio_lock, flags); iowrite32(ioread32(cgpio->regs + CDNS_GPIO_BYPASS_MODE) | (BIT(offset) & cgpio->bypass_orig), cgpio->regs + CDNS_GPIO_BYPASS_MODE); - spin_unlock_irqrestore(&chip->bgpio_lock, flags); + raw_spin_unlock_irqrestore(&chip->bgpio_lock, flags); } static void cdns_gpio_irq_mask(struct irq_data *d) @@ -90,7 +90,7 @@ static int cdns_gpio_irq_set_type(struct irq_data *d, unsigned int type) u32 mask = BIT(d->hwirq); int ret = 0; - spin_lock_irqsave(&chip->bgpio_lock, flags); + raw_spin_lock_irqsave(&chip->bgpio_lock, flags); int_value = ioread32(cgpio->regs + CDNS_GPIO_IRQ_VALUE) & ~mask; int_type = ioread32(cgpio->regs + CDNS_GPIO_IRQ_TYPE) & ~mask; @@ -115,7 +115,7 @@ static int cdns_gpio_irq_set_type(struct irq_data *d, unsigned int type) iowrite32(int_type, cgpio->regs + CDNS_GPIO_IRQ_TYPE); err_irq_type: - spin_unlock_irqrestore(&chip->bgpio_lock, flags); + raw_spin_unlock_irqrestore(&chip->bgpio_lock, flags); return ret; } -- 2.24.3 (Apple Git-128)