Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1413138
| From | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 11/11] serial: sh-sci: Add DT support for dedicated RTS/CTS |
| Date | 2016-06-03 13:30 +0200 |
| Message-ID | <rFVsC-2ur-1@gated-at.bofh.it> (permalink) |
| References | <rFUdb-1OZ-3@gated-at.bofh.it> <rFUdc-1OZ-43@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello.
On 6/3/2016 1:00 PM, Geert Uytterhoeven wrote:
> Add support for indicating the availability of dedicated lines for
> RTS/CTS hardware flow control, using the standard "uart-has-rtscts" DT
> property.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> v3:
> - No changes,
>
> v2:
> - New.
> ---
> drivers/tty/serial/sh-sci.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
> index 02b240a02dc6a593..d9cb0d70fceef07d 100644
> --- a/drivers/tty/serial/sh-sci.c
> +++ b/drivers/tty/serial/sh-sci.c
> @@ -2999,6 +2999,9 @@ sci_parse_dt(struct platform_device *pdev, unsigned int *dev_id)
> p->regtype = SCI_OF_REGTYPE(match->data);
> p->scscr = SCSCR_RE | SCSCR_TE;
>
> + if (of_find_property(np, "uart-has-rtscts", NULL))
of_property_read_bool() maybe?
> + p->capabilities |= SCIx_HAVE_RTSCTS;
> +
> return p;
> }
>
MBR, Sergei
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 00/11] serial: sh-sci: Hardware Flow Control Updates Geert Uytterhoeven <geert+renesas@glider.be> - 2016-06-03 12:10 +0200
[PATCH v3 04/11] serial: sh-sci: Add support for GPIO-controlled modem lines Geert Uytterhoeven <geert+renesas@glider.be> - 2016-06-03 12:10 +0200
[PATCH v3 10/11] serial: sh-sci: Fix support for hardware-assisted RTS/CTS Geert Uytterhoeven <geert+renesas@glider.be> - 2016-06-03 12:10 +0200
[PATCH v3 05/11] serial: sh-sci: Do not open-code sci_getreg() Geert Uytterhoeven <geert+renesas@glider.be> - 2016-06-03 12:10 +0200
[PATCH v3 08/11] serial: sh-sci: Correct pin initialization on (H)SCIF Geert Uytterhoeven <geert+renesas@glider.be> - 2016-06-03 12:10 +0200
[PATCH v3 02/11] serial: sh-sci: Update DT binding documentation for dedicated RTS/CTS Geert Uytterhoeven <geert+renesas@glider.be> - 2016-06-03 12:10 +0200
[PATCH v3 01/11] serial: sh-sci: Update DT binding documentation for GPIO modem lines Geert Uytterhoeven <geert+renesas@glider.be> - 2016-06-03 12:10 +0200
[PATCH v3 11/11] serial: sh-sci: Add DT support for dedicated RTS/CTS Geert Uytterhoeven <geert+renesas@glider.be> - 2016-06-03 12:10 +0200
Re: [PATCH v3 11/11] serial: sh-sci: Add DT support for dedicated RTS/CTS Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-06-03 13:30 +0200
[PATCH v3 09/11] serial: sh-sci: Add pin initialization for SCIFA/SCIFB Geert Uytterhoeven <geert+renesas@glider.be> - 2016-06-03 12:10 +0200
[PATCH v3 07/11] serial: sh-sci: Add more Serial Port Control/Data Register documentation Geert Uytterhoeven <geert+renesas@glider.be> - 2016-06-03 12:10 +0200
csiph-web