[PATCH] OMAP: GPIO: fix _set_gpio_triggering() for OMAP2+

Kevin Hilman khilman at ti.com
Wed Jan 5 11:54:48 EST 2011


Hi Charu,

"Varadarajan, Charulatha" <charu at ti.com> writes:

> On Wed, Jan 5, 2011 at 04:47, Tony Lindgren <tony at atomide.com> wrote:
>> * Kevin Hilman <khilman at ti.com> [110104 14:45]:
>>> On Tue, 2011-01-04 at 09:52 -0800, Kevin Hilman wrote:
>>> > Mika Westerberg <ext-mika.1.westerberg at nokia.com> writes:
>>> >
>>> > > In case on OMAP2+ we call set_24xx_gpio_triggering() instead of
>>> > > updating reg and l values. However, at the end of the function we
>>> > > perform a write:
>>> > >
>>> > >   __raw_writel(l, reg);
>>> > >
>>> > > So on OMAP2+ we end up writing 0 to the bank->base which is not
>>> > > correct (typically this points to GPIO_REVISION register).
>>> > >
>>> > > Fix this by returning immediately after call to
>>> > > set_24xx_gpio_triggering().
>>> > >
>>> > > Signed-off-by: Mika Westerberg <ext-mika.1.westerberg at nokia.com>
>>> >
>>> > Acked-by: Kevin Hilman <khilman at ti.com>
>>> >
>>> > Tony, this should be added to omap-for-linus as it fixes a problem in
>>> > the recently merged GPIO omap_device/hwmod conversion.
>
> One clarification - This problem should be existing since the following commit
> 92105bb70634abacc08bbe12bf6f888fbd7dad38
> which was introduced on Sep 7, 2005
>
> FYI, this part of the code remained untouched during GPIO omap_device/hwmod
> conversion.
>

OK, thanks for the clarification.

I had assumed it was recent changes since the patch didn't apply
cleanly, but am glad to be wrong. :)

Kevin




More information about the linux-arm-kernel mailing list