Re: [RFC PATCH 1/4] EDAC: mvebu: Add driver for Marvell Armada SoCs

2017-06-22 Thread Chris Packham
On 23/06/17 02:37, Jan Lübbe wrote: > Hi Chris, > > On Fr, 2017-06-09 at 15:14 +0200, Jan Lübbe wrote: >>> +static void mvebu_init_csrows(struct mem_ctl_info *mci, >>> + struct mvebu_mc_pdata *pdata) >> [...] >>> + devtype = (ctl >> 20) & 0x3; >>> + switch

Re: [RFC PATCH 1/4] EDAC: mvebu: Add driver for Marvell Armada SoCs

2017-06-22 Thread Chris Packham
On 23/06/17 02:37, Jan Lübbe wrote: > Hi Chris, > > On Fr, 2017-06-09 at 15:14 +0200, Jan Lübbe wrote: >>> +static void mvebu_init_csrows(struct mem_ctl_info *mci, >>> + struct mvebu_mc_pdata *pdata) >> [...] >>> + devtype = (ctl >> 20) & 0x3; >>> + switch

Re: [RFC PATCH 1/4] EDAC: mvebu: Add driver for Marvell Armada SoCs

2017-06-22 Thread Jan Lübbe
Hi Chris, On Fr, 2017-06-09 at 15:14 +0200, Jan Lübbe wrote: > > +static void mvebu_init_csrows(struct mem_ctl_info *mci, > > + struct mvebu_mc_pdata *pdata) > [...] > > + devtype = (ctl >> 20) & 0x3; > > + switch (devtype) { > > + case 0x0: > > +

Re: [RFC PATCH 1/4] EDAC: mvebu: Add driver for Marvell Armada SoCs

2017-06-22 Thread Jan Lübbe
Hi Chris, On Fr, 2017-06-09 at 15:14 +0200, Jan Lübbe wrote: > > +static void mvebu_init_csrows(struct mem_ctl_info *mci, > > + struct mvebu_mc_pdata *pdata) > [...] > > + devtype = (ctl >> 20) & 0x3; > > + switch (devtype) { > > + case 0x0: > > +

Re: [RFC PATCH 1/4] EDAC: mvebu: Add driver for Marvell Armada SoCs

2017-06-11 Thread Chris Packham
On 10/06/17 01:19, Jan Lübbe wrote: >> + >> +if (edac_op_state == EDAC_OPSTATE_INT) { >> +/* acquire interrupt that reports errors */ >> +pdata->irq = platform_get_irq(pdev, 0); >> +res = devm_request_irq(>dev, >> +

Re: [RFC PATCH 1/4] EDAC: mvebu: Add driver for Marvell Armada SoCs

2017-06-11 Thread Chris Packham
On 10/06/17 01:19, Jan Lübbe wrote: >> + >> +if (edac_op_state == EDAC_OPSTATE_INT) { >> +/* acquire interrupt that reports errors */ >> +pdata->irq = platform_get_irq(pdev, 0); >> +res = devm_request_irq(>dev, >> +

Re: [RFC PATCH 1/4] EDAC: mvebu: Add driver for Marvell Armada SoCs

2017-06-09 Thread Jan Lübbe
Hi Chris! On Do, 2017-06-08 at 16:11 +1200, Chris Packham wrote: > This adds an EDAC driver for the memory controller and L2 cache used on > a number of Marvell Armada SoCs. Why have two separate drivers in the same file and enabled with the same Kconfig option? [...] > +static void

Re: [RFC PATCH 1/4] EDAC: mvebu: Add driver for Marvell Armada SoCs

2017-06-09 Thread Jan Lübbe
Hi Chris! On Do, 2017-06-08 at 16:11 +1200, Chris Packham wrote: > This adds an EDAC driver for the memory controller and L2 cache used on > a number of Marvell Armada SoCs. Why have two separate drivers in the same file and enabled with the same Kconfig option? [...] > +static void

Re: [RFC PATCH 1/4] EDAC: mvebu: Add driver for Marvell Armada SoCs

2017-06-09 Thread Borislav Petkov
On Thu, Jun 08, 2017 at 04:11:21PM +1200, Chris Packham wrote: > This adds an EDAC driver for the memory controller and L2 cache used on > a number of Marvell Armada SoCs. > > Signed-off-by: Chris Packham > Cc: linux-arm-ker...@lists.infradead.org > --- >

Re: [RFC PATCH 1/4] EDAC: mvebu: Add driver for Marvell Armada SoCs

2017-06-09 Thread Borislav Petkov
On Thu, Jun 08, 2017 at 04:11:21PM +1200, Chris Packham wrote: > This adds an EDAC driver for the memory controller and L2 cache used on > a number of Marvell Armada SoCs. > > Signed-off-by: Chris Packham > Cc: linux-arm-ker...@lists.infradead.org > --- > drivers/edac/Kconfig | 7 + >