mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
pinctrl/rockchip: enable clock for gpio_to_irq
Since all pins have been created mapping in probe, the create mapping operation in gpio_to_irq will never happen, the issue is hidened. The patch add clk_enable/disable for gpio_to_irq. Change-Id: I50c945f95f9f66ed3ab83a8c332893151272e9f6 Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
@@ -3618,7 +3618,9 @@ static int rockchip_gpio_to_irq(struct gpio_chip *gc, unsigned offset)
|
||||
if (!bank->domain)
|
||||
return -ENXIO;
|
||||
|
||||
clk_enable(bank->clk);
|
||||
virq = irq_create_mapping(bank->domain, offset);
|
||||
clk_disable(bank->clk);
|
||||
|
||||
return (virq) ? : -ENXIO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user