Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754585AbbHLNQz (ORCPT ); Wed, 12 Aug 2015 09:16:55 -0400 Received: from mail-qk0-f178.google.com ([209.85.220.178]:36804 "EHLO mail-qk0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754447AbbHLNQx (ORCPT ); Wed, 12 Aug 2015 09:16:53 -0400 Message-ID: <55CB4740.7070703@hurleysoftware.com> Date: Wed, 12 Aug 2015 09:16:48 -0400 From: Peter Hurley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Noam Camus CC: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, gregkh@linuxfoundation.org, jslaby@suse.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, @codeaurora.orggalak@codeaurora.org, fransklaver@gmail.com, Alexey.Brodkin@synopsys.com, vgupta@synopsys.com Illegal-Object: Syntax error in CC: address found on vger.kernel.org: CC: @codeaurora.orggalak@codeaurora.org,fransklaver@gmail.com ^-illegal token in route Subject: Re: [v3 3/3] serial: 8250_dw: Add UPF_SKIP_TEST to flags depend on device tree References: <1437886478-29273-1-git-send-email-noamc@ezchip.com> <1439378312-6463-1-git-send-email-noamc@ezchip.com> <1439378312-6463-2-git-send-email-noamc@ezchip.com> <1439378312-6463-3-git-send-email-noamc@ezchip.com> <1439378312-6463-4-git-send-email-noamc@ezchip.com> In-Reply-To: <1439378312-6463-4-git-send-email-noamc@ezchip.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2194 Lines: 60 Hi Noam, On 08/12/2015 07:18 AM, Noam Camus wrote: > From: Noam Camus > > Add support for OF option "no-loopback-test" > > use case: simulator which does not implements loopback test mode. I think Greg's question about the simulator still applies: why upstream this? The simulator is not even identified so how is someone supposed to know this workaround applies? The fact there are no in-tree DT users of this workaround argues against its acceptance. Regards, Peter Hurley > Signed-off-by: Noam Camus > --- > .../bindings/serial/snps-dw-apb-uart.txt | 2 ++ > drivers/tty/serial/8250/8250_dw.c | 3 +++ > 2 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.txt b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.txt > index 289c40e..5d16047 100644 > --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.txt > +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.txt > @@ -33,6 +33,8 @@ Optional properties: > - ri-override : Override the RI modem status signal. This signal will always be > reported as inactive instead of being obtained from the modem status register. > Define this if your serial port does not use this pin. > +- no-loopback-test: set to indicate that the port does not implements loopback > + test mode > > Example: > > diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c > index 62f766a..0f397ae 100644 > --- a/drivers/tty/serial/8250/8250_dw.c > +++ b/drivers/tty/serial/8250/8250_dw.c > @@ -394,6 +394,9 @@ static int dw8250_probe_of(struct uart_port *p, > up->dma->txconf.dst_maxburst = p->fifosize / 4; > } > > + if (of_find_property(np, "no-loopback-test", NULL)) > + p->flags |= UPF_SKIP_TEST; > + > if (!of_property_read_u32(np, "reg-shift", &val)) > p->regshift = val; > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/