When call irq_alloc_domain_generic_chips, pass the name of the irq
chip with bank name instead of just rockchip_gpio_irq.
So we can know the irq belong to which gpio by read /proc/interrupts.
cat /proc/interrupts
before:
56: 435 rockchip_gpio_irq 3 Level bcmsdh_sdmmc
58: 0 rockchip_gpio_irq 5 Edge power
87: 2 rockchip_gpio_irq 2 Level fusb302
105: 36 rockchip_gpio_irq 20 Level gt9xx
106: 0 rockchip_gpio_irq 21 Level rk808
109: 0 rockchip_gpio_irq 24 Level fusb302
209: 42 rockchip_gpio_irq 28 Edge es8316_interrupt
after:
56: 401 gpio0 3 Level bcmsdh_sdmmc
58: 0 gpio0 5 Edge power
87: 2 gpio1 2 Level fusb302
105: 39 gpio1 20 Level gt9xx
106: 0 gpio1 21 Level rk808
109: 0 gpio1 24 Level fusb302
209: 37 gpio4 28 Edge es8316_interrupt
Change-Id: Iff7afda770e8493dc4c105c1d251aeae0f69f639
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
}
ret = irq_alloc_domain_generic_chips(bank->domain, 32, 1,
- "rockchip_gpio_irq", handle_level_irq,
+ bank->name, handle_level_irq,
clr, 0, IRQ_GC_INIT_MASK_CACHE);
if (ret) {
dev_err(&pdev->dev, "could not alloc generic chips for bank %s\n",