Re: [PATCH v3 2/6] irqchip: sifive-plic: Add struct plic_hw for global PLIC HW details

2018-12-18 Thread Anup Patel
On Mon, Dec 17, 2018 at 11:54 PM Christoph Hellwig wrote: > > > +struct plic_hw { > > + u32 nr_irqs; > > + u32 nr_handlers; > > + u32 nr_mapped; > > + void __iomem*regs; > > + struct irq_domain

Re: [PATCH v3 2/6] irqchip: sifive-plic: Add struct plic_hw for global PLIC HW details

2018-12-17 Thread Christoph Hellwig
> +struct plic_hw { > + u32 nr_irqs; > + u32 nr_handlers; > + u32 nr_mapped; > + void __iomem*regs; > + struct irq_domain *irqdomain; > +}; > + > +static struct plic_hw plic; Please use local

[PATCH v3 2/6] irqchip: sifive-plic: Add struct plic_hw for global PLIC HW details

2018-11-30 Thread Anup Patel
This patch adds Add struct plic_hw to represent global PLIC HW details. Currently, these details are only used in plic_init() but in-future these will be useful in implementing PM suspend and resume callbacks. Further, these global details are good debug info about HW so let's not throw them

[PATCH v3 2/6] irqchip: sifive-plic: Add struct plic_hw for global PLIC HW details

2018-11-30 Thread Anup Patel
This patch adds Add struct plic_hw to represent global PLIC HW details. Currently, these details are only used in plic_init() but in-future these will be useful in implementing PM suspend and resume callbacks. Further, these global details are good debug info about HW so let's not throw them