[PATCH] serial: samsung.c: Add FRACVAL support for newer UART

From
Kukjin Kim <hidden>
Date
2010-07-21 09:20:47
Also in
linux-samsung-soc
Reply to
Sergei Shtylyov, 2010-07-21
Sergei Shtylyov wrote:
Hello.
Hi ;-)
Kukjin Kim wrote:
quoted
From: Changhwan Youn <redacted>
quoted
FRACVAL register provides the same function as UDIVSLOT register which
is
quoted
the 1/16ths adjustment to the baud rate but the implementaiton is
easier.
quoted
To support UDIVSLOT register, UDIVSLOT table search is necessary though
supporting FRACVAL only needs the index value of UDIVSLOT table.
quoted
This patch implements the FRACVAL supports for the newer Samsung SoC
UARTs.
quoted
Signed-off-by: Changhwan Youn <redacted>
Signed-off-by: Kukjin Kim <redacted>
[...]
quoted
diff --git a/drivers/serial/samsung.c b/drivers/serial/samsung.c
index a9d6c56..09805c7 100644
--- a/drivers/serial/samsung.c
+++ b/drivers/serial/samsung.c
@@ -530,7 +530,7 @@ static int s3c24xx_serial_calcbaud(struct baud_calc
*calc,
quoted

 	calc->clksrc = clksrc;

-	if (ourport->info->has_divslot) {
+	if ((ourport->info->has_divslot) || (ourport->info->has_fracval)) {
    Parens around variables are not needed.
Yeah.
quoted
@@ -755,7 +758,7 @@ static void s3c24xx_serial_set_termios(struct
uart_port
*port,
quoted
 	wr_regl(port, S3C2410_UBRDIV, quot);
 	wr_regl(port, S3C2410_UMCON, umcon);

-	if (ourport->info->has_divslot)
+	if ((ourport->info->has_divslot) || (ourport->info->has_fracval))
    Here as well...
Yeah.

You're right.
But already re-submitted updated.

Please kindly find following URL.
http://lists.infradead.org/pipermail/linux-arm-kernel/2010-July/020713.html

Thanks.

Best regards,
Kgene.
--
Kukjin Kim [off-list ref], Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
Thread (3 messages) 3 messages, 2 authors, last reply 2010-07-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help