Skip to content

RPi: Drain RX queue on setbrg

Alexander Graf u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2serial_bcm283x_mu: Flush RX queue after setting baud ratedrivers/serial/serial_bcm283x_mu.c+7 -11 reply
2/2bcm283x_pl011: Flush RX queue after setting baud ratedrivers/serial/serial_bcm283x_pl011.c drivers/serial/serial_pl01x.c drivers/serial/serial_pl01x_internal.h+35 -71 reply
2/2bcm283x_pl011: Flush RX queue after setting baud rate+0 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchPeter Robinson
1/2T-b
2/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/2] [for 2018.03] RPi: Drain RX queue on setbrg

We had a few reports coming in from people that had their autoboot chain aborted after pinmuxing support was added for the RPi.

The culprit is easy: The UARTs may have been enabled before, but muxed to an incorrect pin. That pin may have pulled the RX line down which again lead to lots of zero bytes gathered in the RX buffer.

The easy fix for that is to drain the RX queue every time we set the baud rate.

This patch set is the minimally intrusive fix for the RPi. We may want to do that generically for all serial devices later.

Alexander Graf (2):
serial_bcm283x_mu: Flush RX queue after setting baud rate
bcm283x_pl011: Flush RX queue after setting baud rate

 drivers/serial/serial_bcm283x_mu.c     |  8 +++++++-
 drivers/serial/serial_bcm283x_pl011.c  | 25 ++++++++++++++++++++++++-
 drivers/serial/serial_pl01x.c          | 10 +++++-----
 drivers/serial/serial_pl01x_internal.h |  7 ++++++-
 4 files changed, 42 insertions(+), 8 deletions(-)
Signature · 1 line
2.12.3