Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1206079 > unrolled thread

Re: [v3 3/3] serial: 8250_dw: Add UPF_SKIP_TEST to flags depend on device tree

Started byPeter Hurley <peter@hurleysoftware.com>
First post2015-08-12 15:20 +0200
Last post2015-08-13 16:30 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [v3 3/3] serial: 8250_dw: Add UPF_SKIP_TEST to flags depend on  device tree Peter Hurley <peter@hurleysoftware.com> - 2015-08-12 15:20 +0200
    RE: [v3 3/3] serial: 8250_dw: Add UPF_SKIP_TEST to flags depend on  device tree Noam Camus <noamc@ezchip.com> - 2015-08-12 18:00 +0200
      Re: [v3 3/3] serial: 8250_dw: Add UPF_SKIP_TEST to flags depend on  device tree Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2015-08-13 16:30 +0200

#1206079 — Re: [v3 3/3] serial: 8250_dw: Add UPF_SKIP_TEST to flags depend on device tree

FromPeter Hurley <peter@hurleysoftware.com>
Date2015-08-12 15:20 +0200
SubjectRe: [v3 3/3] serial: 8250_dw: Add UPF_SKIP_TEST to flags depend on device tree
Message-ID<pWE6L-5sr-39@gated-at.bofh.it>
Hi Noam,

On 08/12/2015 07:18 AM, Noam Camus wrote:
> From: Noam Camus <noamc@ezchip.com>
> 
> 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 <noamc@ezchip.com>
> ---
>  .../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/

[toc] | [next] | [standalone]


#1206223

FromNoam Camus <noamc@ezchip.com>
Date2015-08-12 18:00 +0200
Message-ID<pWGBC-tf-65@gated-at.bofh.it>
In reply to#1206079
PiBGcm9tOiBQZXRlciBIdXJsZXkgW21haWx0bzpwZXRlckBodXJsZXlzb2Z0d2FyZS5jb21dIA0K
PiBTZW50OiBXZWRuZXNkYXksIEF1Z3VzdCAxMiwgMjAxNSA0OjE3IFBNDQoNCj4gSSB0aGluayBH
cmVnJ3MgcXVlc3Rpb24gYWJvdXQgdGhlIHNpbXVsYXRvciBzdGlsbCBhcHBsaWVzOiB3aHkgdXBz
dHJlYW0gdGhpcz8NCj4gVGhlIH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3V0IHRoaXMgc3BlY2lmaWMgcGF0Y2g/DQoNClJlZ2FyZHMsDQpOb2FtIENhbXVzDQo=
--
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/

[toc] | [prev] | [next] | [standalone]


#1206851

FromVineet Gupta <Vineet.Gupta1@synopsys.com>
Date2015-08-13 16:30 +0200
Message-ID<pX1G1-5TR-3@gated-at.bofh.it>
In reply to#1206223
Hi Peter, Greg

On Wednesday 12 August 2015 09:21 PM, Noam Camus wrote:
>> From: Peter Hurley [mailto:peter@hurleysoftware.com] 
>> Sent: Wednesday, August 12, 2015 4:17 PM
>> 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.
> I am using UART peripheral for Synopsys simulator same as one used by arch/arc/plat-sim

The osci virtual platform uses nSIM with SystemC based peripheral models. The
issue is in that model and not in nsim per-se.

> I know this platform do not use CONFIG_SERIAL_8250_DW due to some problem I suspect it is relate to the loop test.

Indeed. If you look at git log of osci platform, there was a commit which switched
DT from dw uart driver to stock 8250. Unfortunately the changelog doesn't describe
in detail what the root cause was.

2013-05-16 6eda477b3c54 ARC: [nsimosci] Change .dts to use generic 8250 UART 


> Maybe Vineet Gupta or Alexey Brodkin from Synopsys which are CC here can comment.
>
> So It just happen for me to be a pioneer with this.
>
> More than that "no-loopback-test" is an option already exist for core 8250, and since DW is only an extension for this driver it should also benefit from this option.

It seems Noam has made some changes to model today and we might need this patch
after all. Noam ?

> If all this is yet not enough, should I re-send this "patch set" again without this specific patch?
>
> Regards,
> Noam Camus
>

--
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/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web