[PATCH] powerpc/book3s: Fix mc_recoverable_range buffer overrun issue.

2014-03-29 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Currently we wrongly allocate mc_recoverable_range buffer (to hold recoverable ranges) based on size of the property "mcheck-recoverable-ranges". This results in allocating less memory to hold available recoverable range entries from /proc/device-tree/ibm,opal/mcheck-recov

[PATCH] gpio: ge: Convert to platform driver

2014-03-29 Thread Alexander Shiyan
This patch converts GE I/O FPGA GPIO driver to platform driver. Signed-off-by: Alexander Shiyan --- Only compile tested. --- drivers/gpio/gpio-ge.c | 176 - 1 file changed, 58 insertions(+), 118 deletions(-) diff --git a/drivers/gpio/gpio-ge.c b/d

Re: [PATCH v2] phy/at8031: enable at8031 to work on interrupt mode

2014-03-29 Thread David Miller
From: Zhao Qiang Date: Fri, 28 Mar 2014 15:39:41 +0800 > The at8031 can work on polling mode and interrupt mode. > Add ack_interrupt and config intr funcs to enable > interrupt mode for it. > > Signed-off-by: Zhao Qiang > --- > changes for v2: > - when interrupt is not enabled, write 0 to

Re: [PATCH 6/7] DMA: Freescale: use spin_lock_bh instead of spin_lock_irqsave

2014-03-29 Thread Vinod Koul
On Fri, Mar 28, 2014 at 02:33:37PM +0800, Hongbo Zhang wrote: > > On 03/26/2014 03:01 PM, Vinod Koul wrote: > >On Thu, 2014-01-16 at 13:47 +0800, hongbo.zh...@freescale.com wrote: > >>From: Hongbo Zhang > >> > >>The usage of spin_lock_irqsave() is a stronger locking mechanism than is > >>required

Re: [PATCH v2] powerpc/book3s: Recover from MC in opal on SCOM read via MMIO.

2014-03-29 Thread Benjamin Herrenschmidt
On Sat, 2014-03-29 at 10:27 +0530, Mahesh J Salgaonkar wrote: > From: Mahesh Salgaonkar > > Detect and recover from machine check when inside opal on a special > scom load instructions. On specific SCOM read via MMIO we may get a machine > check exception with SRR0 pointing inside opal. To recove