]> Pileus Git - ~andy/linux/commit
gpio/omap: restore OE only after setting the output level
authorNishanth Menon <nm@ti.com>
Mon, 29 Aug 2011 13:24:50 +0000 (18:54 +0530)
committerTarun Kanti DebBarma <tarun.kanti@ti.com>
Mon, 6 Feb 2012 11:27:29 +0000 (16:57 +0530)
commit6d13eaaf33436e20d1a41122f28434bcc37999dc
tree32c190d212f1456a38e977a6c7325c124d223e5c
parentba805be53cb9112917631d368f859af5e20d695f
gpio/omap: restore OE only after setting the output level

Setup the dataout register before restoring OE. This is to make
sure that we have valid data in dataout register which would be
made available in output pins as soon as OE is enabled. Else,
there is risk of unknown data getting out into gpio pins.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/gpio/gpio-omap.c