]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitdeb904e45b4e32517f91512db5c50457004313d2
tree09cfe6822664675c1578f22c0f8ce6e166b40f14
parente482c01dc73c23b2b8293cb43f633efddc87b36a
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