serial: omap-serial: Enable the UART wake-up bits always
authorJarkko Nikula <jhnikula@gmail.com>
Mon, 24 Jan 2011 15:51:22 +0000 (17:51 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 Feb 2011 22:10:22 +0000 (14:10 -0800)
commit78841462d72fe7038cb7ea48adecc6fc395f2dc5
tree1722a48da7a6890b6d1c215f5cf6204580d2b459
parent364a6ece62455f669336e50d5b00f14ba650da93
serial: omap-serial: Enable the UART wake-up bits always

OMAP can do also dynamic idling so wake-up enable register should be set
also while system is running. If UART_OMAP_WER is not set, then for instance
the RX activity cannot wake up the UART port that is sleeping.

This RX wake-up feature was working when the 8250 driver was used instead
of omap-serial. Reason for this is that the 8250 doesn't set the
UART_OMAP_WER and then arch/arm/mach-omap2/pm34xx.c ends up saving and
restoring the reset default which is the same than value
OMAP_UART_WER_MOD_WKUP here.

Fix this by moving the conditional UART_OMAP_WER write from serial_omap_pm
into serial_omap_startup where wake-up bits are set unconditionally.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Cc: Govindraj.R <govindraj.raja@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/omap-serial.c