pinctrl: rockchip: add irq_enable & irq_disable ops
authorJeffy Chen <jeffy.chen@rock-chips.com>
Thu, 2 Mar 2017 05:56:52 +0000 (13:56 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Mar 2017 09:10:01 +0000 (10:10 +0100)
commitd468289a021c638c84da29e21db7924c66571f25
tree5581616e6bd07a444057f642d5f0b40b64ad27a4
parent2afd450d78f5cff1659630265e65418b36caf709
pinctrl: rockchip: add irq_enable & irq_disable ops

Currently we are trying to enable/disable the clk of irq's gpio bank when
unmask/mask irq. But the kernel's "lazy disable approach" will skip masking
irq when the irq chip doesn't support irq_disable ops.

So we may hit this case:
irq_enable-> enable clk
irq_disable-> noop
irq_enable-> enable clk again
irq_disable-> noop

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c