]> git.karo-electronics.de Git - linux-beck.git/commit
irqchip/mbigen: Handle multiple device nodes in a mbigen module
authorMaJun <majun258@huawei.com>
Thu, 17 Mar 2016 08:34:01 +0000 (16:34 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 21 Mar 2016 10:24:11 +0000 (11:24 +0100)
commited2a1002d25ccdb6606c8ccb608524118bd30614
tree8318b3d998df026d3425cfd4c9718d56d7ba5f2e
parentd0e286415dc1f4fea2971d6186b0775c7062575b
irqchip/mbigen: Handle multiple device nodes in a mbigen module

Each mbigen device is represented as a independent platform device. If the
devices belong to the same mbigen hardware module, then the register space for
these devices is the same. That leads to a resource conflict.

The solution for this is to represent the mbigen module as a platform device
and make the mbigen devices subdevices of that. The register space is
associated to the mbigen module and therefor the resource conflict is avoided.

[ tglx: Massaged changelog, cleaned up the code and removed the silly printk ]

Signed-off-by: Ma Jun <majun258@huawei.com>
Cc: mark.rutland@arm.com
Cc: jason@lakedaemon.net
Cc: marc.zyngier@arm.com
Cc: Catalin.Marinas@arm.com
Cc: guohanjun@huawei.com
Cc: Will.Deacon@arm.com
Cc: huxinwei@huawei.com
Cc: lizefan@huawei.com
Cc: dingtianhong@huawei.com
Cc: zhaojunhua@hisilicon.com
Cc: liguozhu@hisilicon.com
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1458203641-17172-3-git-send-email-majun258@huawei.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-mbigen.c