]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: provide lockdep keys for nested/unnested irqchips
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Jan 2017 12:37:07 +0000 (13:37 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 19 Jan 2017 08:57:20 +0000 (09:57 +0100)
commit95ae5dd6cf7c62d31d9d374b27cf7d006ded1f74
tree5c53e38e08e39a10e827757c7057838e977e38fa
parentb04106bd595baad714f2242e95fc3893cf047edb
gpio: provide lockdep keys for nested/unnested irqchips

The helper function for adding a GPIO chip compiles in a lockdep
key for debugging, the same key is needed for nested chips as
well.

The macro construction is unreadable, replace this with two
static inlines instead.

The _gpiochip_irqchip_add prefixed function is not helpful,
rename it with gpiochip_irqchip_add_key() that tell us what the
function is actually doing.

Fixes: c451ed680005 ("gpio: simplify adding threaded interrupts")
Cc: Roger Quadros <rogerq@ti.com>
Reported-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Reported-by: Roger Quadros <rogerq@ti.com>
Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
Tested-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Tested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
include/linux/gpio/driver.h