提交 c58a14a9 编写于 作者: C Cédric Le Goater 提交者: Michael Ellerman

powerpc/xive: add the HW IRQ number under xive_irq_data

It will be required later by the H_INT_ESB hcall.
Signed-off-by: NCédric Le Goater <clg@kaod.org>
Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 99f12257
...@@ -45,6 +45,7 @@ struct xive_irq_data { ...@@ -45,6 +45,7 @@ struct xive_irq_data {
void __iomem *trig_mmio; void __iomem *trig_mmio;
u32 esb_shift; u32 esb_shift;
int src_chip; int src_chip;
u32 hw_irq;
/* Setup/used by frontend */ /* Setup/used by frontend */
int target; int target;
......
...@@ -82,6 +82,8 @@ int xive_native_populate_irq_data(u32 hw_irq, struct xive_irq_data *data) ...@@ -82,6 +82,8 @@ int xive_native_populate_irq_data(u32 hw_irq, struct xive_irq_data *data)
return -ENOMEM; return -ENOMEM;
} }
data->hw_irq = hw_irq;
if (!data->trig_page) if (!data->trig_page)
return 0; return 0;
if (data->trig_page == data->eoi_page) { if (data->trig_page == data->eoi_page) {
......
...@@ -264,6 +264,8 @@ static int xive_spapr_populate_irq_data(u32 hw_irq, struct xive_irq_data *data) ...@@ -264,6 +264,8 @@ static int xive_spapr_populate_irq_data(u32 hw_irq, struct xive_irq_data *data)
return -ENOMEM; return -ENOMEM;
} }
data->hw_irq = hw_irq;
/* Full function page supports trigger */ /* Full function page supports trigger */
if (flags & XIVE_SRC_TRIGGER) { if (flags & XIVE_SRC_TRIGGER) {
data->trig_mmio = data->eoi_mmio; data->trig_mmio = data->eoi_mmio;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册