]> git.baikalelectronics.ru Git - kernel.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)
commit477c8eb1b54d33c9f9ceb07ebe19f39f7a9506cb
treed096b789e02460b33c2e9f20334ad008a8262fd0
parent8e79445dc3201eac98fbbd020eb4450425c4ff8c
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