* [PATCH v2] serial: prevent armada-xp-98DX SOC uart buffer loss
@ 2019-06-24 23:49 Joshua Scott
2019-06-25 8:27 ` Gregory CLEMENT
2019-06-25 12:40 ` Andrew Lunn
0 siblings, 2 replies; 3+ messages in thread
From: Joshua Scott @ 2019-06-24 23:49 UTC (permalink / raw)
To: linux-arm-kernel, Jason Cooper, Andrew Lunn, Gregory Clement,
Sebastian Hesselbarth
Cc: Joshua Scott
Switch to the "marvell,armada-38x-uart" driver variant to empty
the UART buffer before writing to the UART_LCR register.
Signed-off-by: Joshua Scott <joshua.scott@alliedtelesis.co.nz>
---
Changes in v2:
Andrew Lunn was able to test on a Marvell 370RD reference design, and
the character loss issue did not occur.
The fix has now been changed to only affect the following SOCs:
* 98DX323x
* 98DX3333
* 98DX4251
Cheers,
Joshua Scott
---
arch/arm/boot/dts/armada-xp-98dx3236.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/armada-xp-98dx3236.dtsi b/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
index 59753470cd34..267d0c178e55 100644
--- a/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
+++ b/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
@@ -336,3 +336,11 @@
status = "disabled";
};
+&uart0 {
+ compatible = "marvell,armada-38x-uart";
+};
+
+&uart1 {
+ compatible = "marvell,armada-38x-uart";
+};
+
--
2.21.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] serial: prevent armada-xp-98DX SOC uart buffer loss
2019-06-24 23:49 [PATCH v2] serial: prevent armada-xp-98DX SOC uart buffer loss Joshua Scott
@ 2019-06-25 8:27 ` Gregory CLEMENT
2019-06-25 12:40 ` Andrew Lunn
1 sibling, 0 replies; 3+ messages in thread
From: Gregory CLEMENT @ 2019-06-25 8:27 UTC (permalink / raw)
To: Joshua Scott, linux-arm-kernel, Jason Cooper, Andrew Lunn,
Sebastian Hesselbarth
Cc: Joshua Scott
Hi Joshua,
> Switch to the "marvell,armada-38x-uart" driver variant to empty
> the UART buffer before writing to the UART_LCR register.
>
> Signed-off-by: Joshua Scott <joshua.scott@alliedtelesis.co.nz>
I agree with the content of this patch, so you can add my
Acked-by: Gregory CLEMENT <gregory.clement@bootlin.com>.
However, could you change the title to something like: "ARM: dts:
armada-xp-98dx3236: Switch to armada-38x-uart for serial node"
Indeed for thearm device tree patch we expect that the title start by
"ARM: dts: ". Also could you add back some part of the explanation you
providee in comment with your first patch. I find it very usefull to se
waht happen and who to reproduce the bug.
Finally, as it is a fix, could you add a "Fixes: " tag as well as the
"Cc: stable@kernel.org" tag.
Thanks,
Gregory
> ---
> Changes in v2:
>
> Andrew Lunn was able to test on a Marvell 370RD reference design, and
> the character loss issue did not occur.
>
> The fix has now been changed to only affect the following SOCs:
> * 98DX323x
> * 98DX3333
> * 98DX4251
>
> Cheers,
> Joshua Scott
> ---
> arch/arm/boot/dts/armada-xp-98dx3236.dtsi | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm/boot/dts/armada-xp-98dx3236.dtsi b/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
> index 59753470cd34..267d0c178e55 100644
> --- a/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
> +++ b/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
> @@ -336,3 +336,11 @@
> status = "disabled";
> };
>
> +&uart0 {
> + compatible = "marvell,armada-38x-uart";
> +};
> +
> +&uart1 {
> + compatible = "marvell,armada-38x-uart";
> +};
> +
> --
> 2.21.0
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] serial: prevent armada-xp-98DX SOC uart buffer loss
2019-06-24 23:49 [PATCH v2] serial: prevent armada-xp-98DX SOC uart buffer loss Joshua Scott
2019-06-25 8:27 ` Gregory CLEMENT
@ 2019-06-25 12:40 ` Andrew Lunn
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2019-06-25 12:40 UTC (permalink / raw)
To: Joshua Scott
Cc: Gregory Clement, Jason Cooper, linux-arm-kernel,
Sebastian Hesselbarth
On Tue, Jun 25, 2019 at 11:49:00AM +1200, Joshua Scott wrote:
> Switch to the "marvell,armada-38x-uart" driver variant to empty
> the UART buffer before writing to the UART_LCR register.
>
> Signed-off-by: Joshua Scott <joshua.scott@alliedtelesis.co.nz>
Hi Joshua
You can add my
Tested-by: Andrew Lunn <andrew@lunn.ch>
if you want. Not for the usual sense, but i did do some testing :-)
Andrew
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-25 12:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-24 23:49 [PATCH v2] serial: prevent armada-xp-98DX SOC uart buffer loss Joshua Scott
2019-06-25 8:27 ` Gregory CLEMENT
2019-06-25 12:40 ` Andrew Lunn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).