ARM: OMAP2+: UART: Get context loss count to context restore
authorGovindraj.R <govindraj.raja@ti.com>
Tue, 11 Oct 2011 13:41:27 +0000 (19:11 +0530)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Dec 2011 00:05:22 +0000 (16:05 -0800)
commitec3bebc6ec64aac23500e6b8ef5c0aaaeda735cf
tree8d47117285aecdb37e65f1fc72b3070f45444433
parent32212897eeb8c2b2b3c74dbd44d842963084d808
ARM: OMAP2+: UART: Get context loss count to context restore

Avoid unconditional context restore every time we gate uart
clocks. Check whether context loss happened based on which
we can context restore uart regs from uart_port structure.

Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de> (for drivers/tty changes)
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/serial.c
arch/arm/plat-omap/include/plat/omap-serial.h
drivers/tty/serial/omap-serial.c