Re: [PATCH v2 4/5] irqchip:create irq domain for each mbigen device

2016-02-16 Thread Marc Zyngier
On Wed, 17 Feb 2016 12:18:52 +0800 "majun (F)" wrote: > > > 在 2016/2/16 16:50, Marc Zyngier 写道: > > On Tue, 16 Feb 2016 14:37:27 +0800 > > MaJun wrote: > > > >> From: Ma Jun > [...] > >> + unsigned int nid; > >> + > >> + nid = get_mbigen_nid(hwirq); > >> + > >> + if (nid < 4) > >> +

Re: [PATCH v2 4/5] irqchip:create irq domain for each mbigen device

2016-02-16 Thread majun (F)
在 2016/2/16 16:50, Marc Zyngier 写道: > On Tue, 16 Feb 2016 14:37:27 +0800 > MaJun wrote: > >> From: Ma Jun [...] >> +unsigned int nid; >> + >> +nid = get_mbigen_nid(hwirq); >> + >> +if (nid < 4) >> +return (nid * 4) + REG_MBIGEN_VEC_OFFSET; >> +else >> +r

Re: [PATCH v2 4/5] irqchip:create irq domain for each mbigen device

2016-02-16 Thread Marc Zyngier
On Tue, 16 Feb 2016 14:37:27 +0800 MaJun wrote: > From: Ma Jun > > For peripheral devices which connect to mbigen,mbigen is a interrupt > controller. So, we create irq domain for each mbigen device and add > mbigen irq domain into irq hierarchy structure. > > Signed-off-by: Ma Jun > --- > dr

[PATCH v2 4/5] irqchip:create irq domain for each mbigen device

2016-02-15 Thread MaJun
From: Ma Jun For peripheral devices which connect to mbigen,mbigen is a interrupt controller. So, we create irq domain for each mbigen device and add mbigen irq domain into irq hierarchy structure. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen-v1.c | 136 +++