Re: [PATCH] mfd: ti_am335x_tscadc: avoid possible deadlock ofreg_lock

From: Lee Jones
Date: Tue Oct 22 2013 - 13:14:10 EST


On Tue, 22 Oct 2013, Sebastian Andrzej Siewior wrote:

> Since the addition of continuous sampling mode and shared irq support,
> the reg_lock lock can be taken with and without interrupts. This patch
> uses the *_irq* variant which should be used in order to avaoid a deadlock.
>
> Cc: Zubair Lutfullah <zubair.lutfullah@xxxxxxxxx>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
> ---
> drivers/mfd/ti_am335x_tscadc.c | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)

Good catch. Applied, thanks.

--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/