* [PATCH] gpio: tegra: drop tegra specific GPIO lockdep classes
@ 2018-07-26 15:42 Stefan Agner
2018-07-29 21:39 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Agner @ 2018-07-26 15:42 UTC (permalink / raw)
To: linus.walleij
Cc: thierry.reding, jonathanh, linux-gpio, linux-tegra, linux-kernel,
Stefan Agner
Since commit e45d1c80c0ee ("gpio: put GPIO IRQs into their own lock
class") and commit a0a8bcf4670c ("gpiolib: irqchip: use different
lockdep class for each gpio irqchip") GPIO lib takes care of lockdep
classes. In fact, gpiochip_irq_map() overwrites the class anyway, so
the lockdep class set by the driver is useless. Remove it.
Signed-off-by: Stefan Agner <stefan@agner.ch>
---
drivers/gpio/gpio-tegra.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index 94396caaca75..e5fcc012179e 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -550,13 +550,6 @@ static const struct dev_pm_ops tegra_gpio_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(tegra_gpio_suspend, tegra_gpio_resume)
};
-/*
- * This lock class tells lockdep that GPIO irqs are in a different category
- * than their parents, so it won't report false recursion.
- */
-static struct lock_class_key gpio_lock_class;
-static struct lock_class_key gpio_request_class;
-
static int tegra_gpio_probe(struct platform_device *pdev)
{
struct tegra_gpio_info *tgi;
@@ -661,8 +654,6 @@ static int tegra_gpio_probe(struct platform_device *pdev)
bank = &tgi->bank_info[GPIO_BANK(gpio)];
- irq_set_lockdep_class(irq, &gpio_lock_class,
- &gpio_request_class);
irq_set_chip_data(irq, bank);
irq_set_chip_and_handler(irq, &tgi->ic, handle_simple_irq);
}
--
2.18.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gpio: tegra: drop tegra specific GPIO lockdep classes
2018-07-26 15:42 [PATCH] gpio: tegra: drop tegra specific GPIO lockdep classes Stefan Agner
@ 2018-07-29 21:39 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2018-07-29 21:39 UTC (permalink / raw)
To: Stefan Agner
Cc: thierry.reding, Jon Hunter, open list:GPIO SUBSYSTEM,
linux-tegra, linux-kernel
On Thu, Jul 26, 2018 at 5:42 PM Stefan Agner <stefan@agner.ch> wrote:
> Since commit e45d1c80c0ee ("gpio: put GPIO IRQs into their own lock
> class") and commit a0a8bcf4670c ("gpiolib: irqchip: use different
> lockdep class for each gpio irqchip") GPIO lib takes care of lockdep
> classes. In fact, gpiochip_irq_map() overwrites the class anyway, so
> the lockdep class set by the driver is useless. Remove it.
>
> Signed-off-by: Stefan Agner <stefan@agner.ch>
Patch applied. Makes perfect sense.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-29 21:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-26 15:42 [PATCH] gpio: tegra: drop tegra specific GPIO lockdep classes Stefan Agner
2018-07-29 21:39 ` Linus Walleij
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.