[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130807084054.GA18668@lee--X1>
Date: Wed, 7 Aug 2013 09:40:54 +0100
From: Lee Jones <lee.jones@...aro.org>
To: Zubair Lutfullah <zubair.lutfullah@...il.com>
Cc: sameo@...ux.intel.com, linux-kernel@...r.kernel.org,
gregkh@...uxfoundation.org, bigeasy@...utronix.de
Subject: Re: [PATCH] mfd: ti_am335x_tscadc: fix spin lock and reg_cache
On Mon, 05 Aug 2013, Zubair Lutfullah wrote:
> Reg_cache variable is used to lock step enable register
> from being accessed and written by both TSC and ADC
> at the same time.
> However, it isn't updated anywhere in the code at all.
>
> If both TSC and ADC are used, eventually 1FFFF is always
> written enabling all 16 steps uselessly causing a mess.
>
> Patch fixes it by correcting the locks and updates the
> variable by reading the step enable register
>
> Signed-off-by: Zubair Lutfullah <zubair.lutfullah@...il.com>
> ---
> drivers/mfd/ti_am335x_tscadc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Better that it comes from somewhere.
Applied, thanks.
--
Lee Jones
Linaro ST-Ericsson 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists