]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/imx-irqsteer: Change to use reg_num instead of irq_group
authorAisheng Dong <aisheng.dong@nxp.com>
Wed, 20 Feb 2019 11:40:47 +0000 (11:40 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 22 Feb 2019 09:22:56 +0000 (09:22 +0000)
commitc2fd7197b78859a0a45332c0b31881e26773c04d
tree09cfe6822664675c1578f22c0f8ce6e166b40f14
parent0882d2ae0828d67843d3440ec6486e5505970e47
irqchip/imx-irqsteer: Change to use reg_num instead of irq_group

One group can manage 64 interrupts by using two registers (e.g. STATUS/SET).
However, the integrated irqsteer may support only 32 interrupts which
needs only one register in a group. But the current driver assume there's
a mininum of two registers in a group which result in a wrong register map
for 32 interrupts per channel irqsteer. Let's use the reg_num caculated by
interrupts per channel instead of irq_group to cover this case.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-imx-irqsteer.c