> -----Original Message----- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Saturday, August 04, 2012 12:43 AM > To: Wood Scott-B07421 > Cc: Sethi Varun-B16395; Hamciuc Bogdan-BHAMCIU1; linuxppc- > d...@lists.ozlabs.org > Subject: Re: [PATCH 3/3 v3] powerpc/mpic: FSL MPIC error interrupt > support. > > > On Aug 3, 2012, at 11:44 AM, Scott Wood wrote: > > > On 08/03/2012 08:19 AM, Kumar Gala wrote: > >> > >> On Jul 31, 2012, at 9:42 AM, Varun Sethi wrote: > >>> + /* ioremap'ed base for error interrupt registers */ > >>> + u32 __iomem *err_regs; > >>> + /* error interrupt config */ > >>> + u32 err_int_config_done; > >>> + > >> > >> Is this really needed ? > > > > Probably a left over from when it was done on demand. > > > >> > >>> /* Protected sources */ > >>> unsigned long *protected; > >>> > >>> @@ -370,6 +381,8 @@ struct mpic > >>> #define MPIC_NO_RESET 0x00004000 > >>> /* Freescale MPIC (compatible includes "fsl,mpic") */ > >>> #define MPIC_FSL 0x00008000 > >>> +/* Freescale MPIC supports EIMR (error interrupt mask register)*/ > >>> +#define MPIC_FSL_HAS_EIMR 0x00010000 > >> > >> Can't we use BRR for this? > > > > BRR is used, and this is set as a result. Better than opencoding a > > BRR check a bunch of places... > > I'm fine w/that, but didn't see where MPIC_FSL_HAS_EMIR was being set.. > Just want to avoid the caller of mpic_alloc() having to pass it in. It's being set in mpic_setup_error_int (called from mpic_alloc)
-Varun _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev