From: Daniel Krueger Date: Mon, 7 Apr 2014 12:20:32 +0000 (+0200) Subject: gpio-sch: set output level after configuration of direction X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~53^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e0d9823178f8793dec7d1e9cd08f9bee5123871;p=pandora-kernel.git gpio-sch: set output level after configuration of direction According to the datasheet, writing to the level register has no effect when GPIO is programmed as input. Actually the the level register is read-only when configured as input. Thus presetting the output level before switching to output is _NOT_ possible. Any writes are lost! Hence we set the level after configuring the GPIO as output. But we cannot prevent a short low pulse if direction is set to high and an external pull-up is connected. Signed-off-by: Daniel Krueger Signed-off-by: Alexander Stein Signed-off-by: Linus Walleij --- Reading git-diff-tree failed