[ARM] 4784/1: S3C24XX: Fix GPIO restore glitches
authorBen Dooks <ben-linux@fluff.org>
Mon, 28 Jan 2008 12:01:24 +0000 (13:01 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 28 Jan 2008 13:20:51 +0000 (13:20 +0000)
commit62feee648ca0ad6e1b54e44e6c8ddb69f225f812
treed7fb702d7816380c91c19d3a465073ea37eb5506
parentbb6d9b56c1d5c1cbff39b7c337c900e2b3d8387a
[ARM] 4784/1: S3C24XX: Fix GPIO restore glitches

The core resume code may have caused glitches in the GPIO when
restoring the GPIO state due to the order in which the GPIO registers
were being written.

Change the restore process take into account the state of the
GPIOs on resume and the state the system wants to restore them to.

See the code comments in the patch for more details of the process.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-s3c24xx/pm.c