]> git.baikalelectronics.ru Git - kernel.git/commit
serial: fix serial_txx9 console initialization
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Mon, 29 Oct 2007 21:37:23 +0000 (14:37 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 30 Oct 2007 15:06:55 +0000 (08:06 -0700)
commit1b25f60f55e23f327671083bff59d13ca1f6aaff
treeda39ae248360520d1d430c936682a4834da7a262
parent3930c87f964fcd86541e4ec8e760dce6b03307ac
serial: fix serial_txx9 console initialization

Since commit 271b9862462e8021e42974c2303d6fb702c2a444 ("[SERIAL] Fix
console initialisation ordering"), serial_core calls ->pm() on
initialization even if the port was used for console.

This behaviour breaks serial_txx9 console since The serial_txx9 driver
initialize its port entirely on its ->pm() method if new state was 0.
This patch adds checking for oldstate value to fix this probelm.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/serial_txx9.c