From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Kukjin Kim <kgene.kim@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org,
Changhwan Youn <chaos.youn@samsung.com>,
ben-linux@fluff.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] serial: samsung.c: Add FRACVAL support for newer UART
Date: Wed, 21 Jul 2010 13:11:52 +0400 [thread overview]
Message-ID: <4C46B9D8.7020504@ru.mvista.com> (raw)
In-Reply-To: <1277474119-6897-1-git-send-email-kgene.kim@samsung.com>
Hello.
Kukjin Kim wrote:
> From: Changhwan Youn <chaos.youn@samsung.com>
> FRACVAL register provides the same function as UDIVSLOT register which is
> the 1/16ths adjustment to the baud rate but the implementaiton is easier.
> To support UDIVSLOT register, UDIVSLOT table search is necessary though
> supporting FRACVAL only needs the index value of UDIVSLOT table.
> This patch implements the FRACVAL supports for the newer Samsung SoC UARTs.
> Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
[...]
> 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,
>
> calc->clksrc = clksrc;
>
> - if (ourport->info->has_divslot) {
> + if ((ourport->info->has_divslot) || (ourport->info->has_fracval)) {
Parens around variables are not needed.
> @@ -755,7 +758,7 @@ static void s3c24xx_serial_set_termios(struct uart_port *port,
> 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...
WBR, Sergei
WARNING: multiple messages have this Message-ID (diff)
From: sshtylyov@mvista.com (Sergei Shtylyov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] serial: samsung.c: Add FRACVAL support for newer UART
Date: Wed, 21 Jul 2010 13:11:52 +0400 [thread overview]
Message-ID: <4C46B9D8.7020504@ru.mvista.com> (raw)
In-Reply-To: <1277474119-6897-1-git-send-email-kgene.kim@samsung.com>
Hello.
Kukjin Kim wrote:
> From: Changhwan Youn <chaos.youn@samsung.com>
> FRACVAL register provides the same function as UDIVSLOT register which is
> the 1/16ths adjustment to the baud rate but the implementaiton is easier.
> To support UDIVSLOT register, UDIVSLOT table search is necessary though
> supporting FRACVAL only needs the index value of UDIVSLOT table.
> This patch implements the FRACVAL supports for the newer Samsung SoC UARTs.
> Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
[...]
> 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,
>
> calc->clksrc = clksrc;
>
> - if (ourport->info->has_divslot) {
> + if ((ourport->info->has_divslot) || (ourport->info->has_fracval)) {
Parens around variables are not needed.
> @@ -755,7 +758,7 @@ static void s3c24xx_serial_set_termios(struct uart_port *port,
> 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...
WBR, Sergei
next prev parent reply other threads:[~2010-07-21 9:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-25 13:55 [PATCH] serial: samsung.c: Add FRACVAL support for newer UART Kukjin Kim
2010-06-25 13:55 ` Kukjin Kim
2010-07-21 9:11 ` Sergei Shtylyov [this message]
2010-07-21 9:11 ` Sergei Shtylyov
2010-07-21 9:20 ` Kukjin Kim
2010-07-21 9:20 ` Kukjin Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C46B9D8.7020504@ru.mvista.com \
--to=sshtylyov@mvista.com \
--cc=ben-linux@fluff.org \
--cc=chaos.youn@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.