All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/2] [for 2018.03] RPi: Drain RX queue on setbrg
@ 2018-03-07 21:08 Alexander Graf
  2018-03-07 21:08 ` [U-Boot] [PATCH v2 1/2] serial_bcm283x_mu: Flush RX queue after setting baud rate Alexander Graf
  2018-03-07 21:08 ` [U-Boot] [PATCH v2 2/2] bcm283x_pl011: " Alexander Graf
  0 siblings, 2 replies; 9+ messages in thread
From: Alexander Graf @ 2018-03-07 21:08 UTC (permalink / raw)
  To: u-boot

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.

v1 -> v2:

  - fix pl011 draining

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(-)

-- 
2.12.3

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-03-09 18:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-07 21:08 [U-Boot] [PATCH v2 0/2] [for 2018.03] RPi: Drain RX queue on setbrg Alexander Graf
2018-03-07 21:08 ` [U-Boot] [PATCH v2 1/2] serial_bcm283x_mu: Flush RX queue after setting baud rate Alexander Graf
2018-03-08 10:05   ` Peter Robinson
2018-03-09 16:04   ` Tuomas Tynkkynen
2018-03-09 18:29   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-03-07 21:08 ` [U-Boot] [PATCH v2 2/2] bcm283x_pl011: " Alexander Graf
2018-03-08 10:06   ` Peter Robinson
2018-03-09 16:04   ` Tuomas Tynkkynen
2018-03-09 18:29   ` [U-Boot] [U-Boot, v2, " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.