irqdomain: Do irq_find_mapping and set_type for hierarchy irqdomain in case OF
authorYingjoe Chen <yingjoe.chen@mediatek.com>
Thu, 6 Nov 2014 14:20:15 +0000 (22:20 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 23 Nov 2014 12:01:46 +0000 (13:01 +0100)
commit0cc01abab6412f3a76256bb57ca58dcb94a6edc7
tree563060ad84e9d66eb1b8a1ad191b03cb775529fb
parentf8264e34965aaf43203912ed8f7b543c00c8d70f
irqdomain: Do irq_find_mapping and set_type for hierarchy irqdomain in case OF

It is possible to call irq_create_of_mapping to create/translate the
same IRQ from DT for multiple times. Perform irq_find_mapping check
and set_type for hierarchy irqdomain in irq_create_of_mapping() to
avoid duplicate these functionality in all outer most irqdomain.

Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Yingjoe Chen <yingjoe.chen@mediatek.com>
Cc: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/irqdomain.c