omap: Disable serial port autoidle by default
authorTony Lindgren <tony@atomide.com>
Mon, 1 Feb 2010 20:34:31 +0000 (12:34 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 3 Feb 2010 16:48:06 +0000 (08:48 -0800)
commit301fe8eeee02c570c5bd30537aff9456f7f7955c
tree61f64993b3234f3532a003f6bf8835f2263377c8
parent0825cc8a6ffa54c87ad7ad914a16d6c035627935
omap: Disable serial port autoidle by default

Currently the omap serial clocks are autoidled after 5 seconds.
However, this causes lost characters on the serial ports. As this
is considered non-standard behaviour for Linux, disable the timeout.

Note that this will also cause blocking of any deeper omap sleep
states.

To enable the autoidling of the serial ports, do something like
this for each serial port:

# echo 5 > /sys/devices/platform/serial8250.0/sleep_timeout
# echo 5 > /sys/devices/platform/serial8250.1/sleep_timeout
...

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/serial.c