提交 901aefa6 编写于 作者: L liuyun 提交者: Hongchen Zhang

LoongArch: Call irq_find_matching_fwnode get irq domain

LoongArch inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I6BWFP

--------------------------------

Fix patch "LoongArch: Old BPI compatibility"
Signed-off-by: Nliuyun <liuyun@loongson.cn>
Change-Id: I67c2535a86213e620546889a081511eaa499289a
上级 2c1c0b0c
......@@ -239,7 +239,11 @@ int setup_legacy_IRQ(void)
printk("CPU domain init eror!\n");
return -1;
}
cpu_domain = get_cpudomain();
cpu_domain = irq_find_matching_fwnode(cpuintc_handle, DOMAIN_BUS_ANY);
if (!cpu_domain) {
printk("CPU domain error!\n");
return -1;
}
ret = liointc_acpi_init(cpu_domain, acpi_liointc);
if (ret) {
printk("Liointc domain init eror!\n");
......@@ -269,7 +273,11 @@ int setup_legacy_IRQ(void)
pch_msi_parse_madt((union acpi_subtable_headers *)acpi_pchmsi[0], 0);
}
pic_domain = get_pchpic_irq_domain();
pic_domain = irq_find_matching_fwnode(pch_pic_handle[0], DOMAIN_BUS_ANY);
if (!pic_domain) {
printk("Pic domain error!\n");
return -1;
}
if (pic_domain)
pch_lpc_acpi_init(pic_domain, acpi_pchlpc);
......
......@@ -119,11 +119,6 @@ static int __init acpi_cascade_irqdomain_init(void)
return 0;
}
struct irq_domain *get_cpudomain(void)
{
return irq_domain;
}
int __init cpuintc_acpi_init(union acpi_subtable_headers *header,
const unsigned long end)
{
......
......@@ -52,11 +52,6 @@ static struct pch_pic *pch_pic_priv[MAX_IO_PICS];
struct fwnode_handle *pch_pic_handle[MAX_IO_PICS];
struct irq_domain *get_pchpic_irq_domain(void)
{
return pch_pic_priv[0]->pic_domain;
}
static void pch_pic_bitset(struct pch_pic *priv, int offset, int bit)
{
u32 reg;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册