OMAP: UART: Add sysfs interface for adjusting UART sleep timeout
authorJouni Hogander <jouni.hogander@nokia.com>
Tue, 9 Dec 2008 11:36:50 +0000 (13:36 +0200)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 28 May 2009 17:59:07 +0000 (10:59 -0700)
commitba87a9beae8b39894f55761f4aff5ae2ca624f81
tree58947da1a5ea2f46212c3460700f0175441b2be0
parent4af4016c53f52b26461b8030211f8427a58fa5ed
OMAP: UART: Add sysfs interface for adjusting UART sleep timeout

This patch makes it possible to change uart sleep timeout. New sysfs
entry is added (/sys/devices/platform/serial8250.<uart>/sleep_timeout)
Writing zero will disable the timeout feature and prevent UART clocks
from being disabled.

Also default timeout is increased to 5 second to make serial console
more usable.

Original patch was written by Tero Kristo.

Cc: Tero Kristo <Tero.Kristo@nokia.com>
Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/serial.c