]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: orion: Fix Orion5x GPIO regression from MPP cleanup
authorAndrew Lunn <andrew@lunn.ch>
Wed, 8 Feb 2012 14:52:07 +0000 (15:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 19:31:37 +0000 (12:31 -0700)
commit4386ec707e18eefb8c9d41d14e27fae638f81a5b
tree64a6ad98de62d7bd06db9da72b871540141673ac
parent041b2375a0fa2333c194c13d7615a41af6c40346
ARM: orion: Fix Orion5x GPIO regression from MPP cleanup

commit b06540371063f0f07aafc1d1ac5e974da85c973c upstream.

Patchset "ARM: orion: Refactor the MPP code common in the orion
platform" broke at least Orion5x based platforms. These platforms have
pins configured as GPIO when the selector is not 0x0. However the
common code assumes the selector is always 0x0 for a GPIO lines. It
then ignores the GPIO bits in the MPP definitions, resulting in that
Orion5x machines cannot correctly configure there GPIO lines.

The Fix removes the assumption that the selector is always 0x0.
In order that none GPIO configurations are correctly blocked,
Kirkwood and mv78xx0 MPP definitions are corrected to only set the
GPIO bits for GPIO configurations.

This third version, which does not contain any whitespace changes,
and is rebased on v3.3-rc2.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-kirkwood/mpp.h
arch/arm/mach-mv78xx0/mpp.h
arch/arm/plat-orion/mpp.c