[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220417165208.39754-3-schspa@gmail.com>
Date: Mon, 18 Apr 2022 00:51:56 +0800
From: Schspa Shi <schspa@...il.com>
To: andy.shevchenko@...il.com
Cc: brgl@...ev.pl, f.fainelli@...il.com, fancer.lancer@...il.com,
hoan@...amperecomputing.com, linus.walleij@...aro.org,
linux-arm-kernel@...ts.infradead.org, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org, opendmb@...il.com, schspa@...il.com
Subject: [PATCH v2 03/15] gpio: tb10x: use raw lock for bgpio_lock
bgpio_lock is changed to raw lock, fellow the header change
Signed-off-by: Schspa Shi <schspa@...il.com>
---
drivers/gpio/gpio-tb10x.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c
index 718a508d3b2f..de6afa3f9716 100644
--- a/drivers/gpio/gpio-tb10x.c
+++ b/drivers/gpio/gpio-tb10x.c
@@ -62,14 +62,14 @@ static inline void tb10x_set_bits(struct tb10x_gpio *gpio, unsigned int offs,
u32 r;
unsigned long flags;
- spin_lock_irqsave(&gpio->gc.bgpio_lock, flags);
+ raw_spin_lock_irqsave(&gpio->gc.bgpio_lock, flags);
r = tb10x_reg_read(gpio, offs);
r = (r & ~mask) | (val & mask);
tb10x_reg_write(gpio, offs, r);
- spin_unlock_irqrestore(&gpio->gc.bgpio_lock, flags);
+ raw_spin_unlock_irqrestore(&gpio->gc.bgpio_lock, flags);
}
static int tb10x_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
--
2.24.3 (Apple Git-128)
Powered by blists - more mailing lists