[PATCH v2 1/3] EDAC: mv64x60: calculate memory size correctly

2017-06-06 Thread Chris Packham
The #address-cells and #size-cells properties need to be accounted for when dealing with the "memory" device tree node. Use of_address_to_resource() and resource_size() to retrieve the size of the memory node which will automatically take the #cells into account. Signed-off-by: Chr

[PATCH v3 3/3] EDAC: mv64x60: replace in_le32/out_le32 with readl/writel

2017-05-29 Thread Chris Packham
To allow this driver to be used on non-powerpc platforms it needs to use io accessors suitable for all platforms. Signed-off-by: Chris Packham --- Changes in v2: - use readl/writel as suggested. Changes in v3: - None drivers/edac/mv64x60_edac.c | 84

[PATCH v3 1/3] EDAC: mv64x60: check driver registration success

2017-05-29 Thread Chris Packham
Check the return status of platform_driver_register() in mv64x60_edac_init(). Only output messages and initialise the edac_op_state if the registration is successful. Signed-off-by: Chris Packham --- Changes in v3: - catch the retval of platform_register_drivers and return early on failure

[PATCH v3 2/3] EDAC: mv64x60: Fix pdata->name

2017-05-29 Thread Chris Packham
Change this from mpc85xx_pci_err to mv64x60_pci_err. The former is likely a hangover from when this driver was created. Signed-off-by: Chris Packham --- Changes in v3: - None drivers/edac/mv64x60_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac

[PATCH v3 0/3] EDAC: mv64x60: updates

2017-05-29 Thread Chris Packham
econd set of changes for this driver but this first set is just a series of cleanups. Chris Packham (3): EDAC: mv64x60: check driver registration success EDAC: mv64x60: Fix pdata->name EDAC: mv64x60: replace in_le32/out_le32 with readl/writel drivers/edac/mv64x60_eda

[PATCH v2 3/3] EDAC: mv64x60: replace in_le32/out_le32 with readl/writel

2017-05-18 Thread Chris Packham
To allow this driver to be used on non-powerpc platforms it needs to use io accessors suitable for all platforms. Signed-off-by: Chris Packham --- Notes: Changes in v2: - use readl/writel as suggested. drivers/edac/mv64x60_edac.c | 84 ++--- 1

[PATCH v2 0/3] EDAC: mv64x60: updates

2017-05-18 Thread Chris Packham
econd set of changes for this driver but this first set is just a series of cleanups. Chris Packham (3): EDAC: mv64x60: remove unused variable EDAC: mv64x60: Fix pdata->name EDAC: mv64x60: replace in_le32/out_le32 with readl/writel drivers/edac/mv64x60_eda

[PATCH v2 1/3] EDAC: mv64x60: remove unused variable

2017-05-18 Thread Chris Packham
Signed-off-by: Chris Packham --- drivers/edac/mv64x60_edac.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/edac/mv64x60_edac.c b/drivers/edac/mv64x60_edac.c index 14b7e7b71eaa..454e1e26ee7c 100644 --- a/drivers/edac/mv64x60_edac.c +++ b/drivers/edac/mv64x60_edac.c @@ -853,8 +853,6

[PATCH v2 2/3] EDAC: mv64x60: Fix pdata->name

2017-05-18 Thread Chris Packham
Change this from mpc85xx_pci_err to mv64x60_pci_err. The former is likely a hangover from when this driver was created. Signed-off-by: Chris Packham --- drivers/edac/mv64x60_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac/mv64x60_edac.c b/drivers/edac

Re: [PATCH 3/3] EDAC: mv64x60: replace in_le32/out_le32 with ioread32/iowrite32

2017-05-17 Thread Chris Packham
aintain. > Maybe someone has some insights... > > On Fri, May 12, 2017 at 04:20:02PM +1200, Chris Packham wrote: >> To allow this driver to be used on non-powerpc platforms it needs to use >> io accessors suitable for all platforms. >> >> Signed-off-by: Chris P

Re: syscall statx not implemented on powerpc

2017-03-14 Thread Chris Packham
On 15/03/17 00:57, Michael Ellerman wrote: > Chris Packham writes: > >> On 13/03/17 21:52, Chandan Rajendra wrote: >>> On Monday, March 13, 2017 03:33:07 AM Chris Packham wrote: >>>> Hi, >>>> >>>> I've just attempted to build a powerpc

Re: syscall statx not implemented on powerpc

2017-03-13 Thread Chris Packham
On 13/03/17 21:52, Chandan Rajendra wrote: > On Monday, March 13, 2017 03:33:07 AM Chris Packham wrote: >> Hi, >> >> I've just attempted to build a powerpc kernel from 4.11-rc2 using a >> custom defconfig (available on request) and I'm hitting the foll

syscall statx not implemented on powerpc

2017-03-12 Thread Chris Packham
Hi, I've just attempted to build a powerpc kernel from 4.11-rc2 using a custom defconfig (available on request) and I'm hitting the following error in the early stages of compilation. :1325:2: error: #warning syscall statx not implemented [-Werror=cpp] Same thing seems to happen with mpc85xx_b

[PATCH] Documentation: powerpc/fsl: Update compatible for l2cache binding

2017-02-02 Thread Chris Packham
List all the current valid compatible strings for the l2cache binding. This should stop checkpatch.pl from complaining and will hopefully save someone from having to debug a typo in their dts. Signed-off-by: Chris Packham --- .../devicetree/bindings/powerpc/fsl/l2cache.txt| 42

Re: [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support

2017-02-02 Thread Chris Packham
On 03/02/17 12:55, Michael Ellerman wrote: > Chris if you want to send a patch to add the compatible string to the > l2cache.txt I would merge that, but honestly it doesn't achieve much > other than possibly catching a typo in the compatible name. I think catching a typo might be worthwhile. It's

Re: [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support

2017-02-01 Thread Chris Packham
On 02/02/17 12:28, Borislav Petkov wrote: > On Thu, Feb 02, 2017 at 12:16:24PM +1300, Chris Packham wrote: >> The l2-cache controller on the T2080 SoC has similar capabilities to the >> others already supported by the mpc85xx_edac driver. Add it to the list >> of compatible

[PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support

2017-02-01 Thread Chris Packham
The l2-cache controller on the T2080 SoC has similar capabilities to the others already supported by the mpc85xx_edac driver. Add it to the list of compatible devices. Signed-off-by: Chris Packham Acked-by: Johannes Thumshirn --- This is a resend of a patch that got an ack[1] but didn't se

[PATCH] EDAC: mpc85xx: Add T2080 l2-cache support

2016-11-28 Thread Chris Packham
The l2-cache controller on the T2080 SoC has similar capabilities to the others already supported by the mpc85xx_edac driver. Add it to the list of compatible devices. Signed-off-by: Chris Packham --- arch/powerpc/boot/dts/fsl/t2081si-post.dtsi | 1 + drivers/edac/mpc85xx_edac.c

<    1   2