]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: SAMSUNG: serial: Fix on handling of one clock source for UART
authorBoojin Kim <boojin.kim@samsung.com>
Sat, 28 May 2011 02:04:03 +0000 (19:04 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:15:06 +0000 (23:15 -0700)
commitb03b2a0ccce0a97f3697b61ae3fb784a11262289
treea4a20dad2255d5aef62ee5dcae3f190e33c9bc15
parent7ef2f804a814c763cfbaacca35aaec38a4641f90
ARM: SAMSUNG: serial: Fix on handling of one clock source for UART

commit 470f22975448a65a1084a6f0721fa5df15323f02 upstream.

This patch fixes the way of comparison for handling of two or more
clock sources for UART.

For example, if just only one clock source is defined even though
there are two clock sources for UART, the serial driver does not
set proper clock up. Of course, it is problem.

So this patch changes the condition of comparison to avoid useless
setup clock and adds a flag 'NO_NEED_CHECK_CLKSRC' which means
selection of source clock is not required.

In addition, since the Exynos4210 has only one clock source for UART
this patch adds the flag into its common_init_uarts().

Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/mach-exynos4/init.c
arch/arm/plat-samsung/include/plat/regs-serial.h
drivers/tty/serial/s5pv210.c