[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20111206113741.6f375673@lxorguk.ukuu.org.uk>
Date: Tue, 6 Dec 2011 11:37:41 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Sonic Zhang <sonic.adi@...il.com>
Cc: Greg Kroah-Hartman <gregkh@...e.de>,
<linux-serial@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
<uclinux-dist-devel@...ckfin.uclinux.org>,
Sonic Zhang <sonic.zhang@...log.com>
Subject: Re: [PATCH] serial: bfin-sport-uart: Add tty ASYNC_CTS_FLOW flag to
do CTS flow control.
On Tue, 6 Dec 2011 16:22:34 +0800
Sonic Zhang <sonic.adi@...il.com> wrote:
> From: Sonic Zhang <sonic.zhang@...log.com>
>
> Signed-off-by: Sonic Zhang <sonic.zhang@...log.com>
> ---
> drivers/tty/serial/bfin_sport_uart.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/tty/serial/bfin_sport_uart.c b/drivers/tty/serial/bfin_sport_uart.c
> index f650526..7fbc3a0 100644
> --- a/drivers/tty/serial/bfin_sport_uart.c
> +++ b/drivers/tty/serial/bfin_sport_uart.c
> @@ -810,8 +810,10 @@ static int __devinit sport_uart_probe(struct platform_device *pdev)
> res = platform_get_resource(pdev, IORESOURCE_IO, 0);
> if (res == NULL)
> sport->cts_pin = -1;
> - else
> + else {
> sport->cts_pin = res->start;
> + sport->port.flags |= ASYNC_CTS_FLOW;
> + }
>
> res = platform_get_resource(pdev, IORESOURCE_IO, 1);
> if (res == NULLA
Acked-by: Alan Cox <alan@...ux.intel.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists