]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pinctrl: rockchip: avoid hardirq-unsafe functions in irq_chip
authorJohn Keeping <john@metanate.com>
Thu, 23 Mar 2017 10:59:31 +0000 (10:59 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Mar 2017 09:18:50 +0000 (11:18 +0200)
commit88bb94216f59e10802aaf78c858a4146085faf18
treed096b789e02460b33c2e9f20334ad008a8262fd0
parent05709c3e88f5f0adb7889facbfd546c998f65d59
pinctrl: rockchip: avoid hardirq-unsafe functions in irq_chip

With real-time preemption, regmap functions cannot be used in the
implementation of irq_chip since they use spinlocks which may sleep.

Move the setting of the mux for IRQs to an irq_bus_sync_unlock handler
where we are allowed to sleep.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c