Linus Walleij 545ebd9a9b gpio: drop lock before reading GPIO direction
When adding the gpiochip, the GPIO HW drivers' callback get_direction()
could get called in atomic context. Some of the GPIO HW drivers may
sleep when accessing the register.

Move the lock before initializing the descriptors.

Reported-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2016-05-30 17:11:59 +02:00
..
2016-03-30 10:38:51 +02:00
2016-01-05 11:21:05 +01:00
2016-04-18 13:32:20 +02:00
2016-02-16 00:19:53 +01:00
2016-01-05 15:46:34 +01:00
2016-03-09 22:02:52 +07:00
2016-05-27 15:26:11 -07:00
2016-04-09 20:14:36 +02:00
2016-05-20 21:26:15 -07:00