From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161016AbcFCLZX (ORCPT ); Fri, 3 Jun 2016 07:25:23 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:33975 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752059AbcFCLZT (ORCPT ); Fri, 3 Jun 2016 07:25:19 -0400 Subject: Re: [PATCH v3 11/11] serial: sh-sci: Add DT support for dedicated RTS/CTS To: Geert Uytterhoeven , Greg Kroah-Hartman , Jiri Slaby , Peter Hurley References: <1464948011-377-1-git-send-email-geert+renesas@glider.be> <1464948011-377-12-git-send-email-geert+renesas@glider.be> Cc: Magnus Damm , Laurent Pinchart , Yoshinori Sato , linux-serial@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org From: Sergei Shtylyov Message-ID: Date: Fri, 3 Jun 2016 14:25:15 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <1464948011-377-12-git-send-email-geert+renesas@glider.be> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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