From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tuomas Tynkkynen Date: Fri, 9 Mar 2018 18:04:15 +0200 Subject: [U-Boot] [PATCH v2 1/2] serial_bcm283x_mu: Flush RX queue after setting baud rate In-Reply-To: <20180307210825.50709-2-agraf@suse.de> References: <20180307210825.50709-1-agraf@suse.de> <20180307210825.50709-2-agraf@suse.de> Message-ID: <20180309180415.752cce2a@duuni> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On Wed, 7 Mar 2018 22:08:24 +0100 Alexander Graf wrote: > After the UART was initialized, we may still have bogus data in the > RX queue if it was enabled with incorrect pin muxing before. >=20 > So let's flush the RX queue whenever we initialize baud rates. >=20 > This fixes a regression with the dynamic pinmuxing code when enable_uart= =3D1 > is not set in config.txt. >=20 > Fixes: caf2233b28 ("bcm283x: Add pinctrl driver") > Reported-by: G=C3=B6ran Lundberg > Reported-by: Peter Robinson > Signed-off-by: Alexander Graf > --- > drivers/serial/serial_bcm283x_mu.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) >=20 On a RPi 1, with no enable_uart in config.txt: Tested-by: Tuomas Tynkkynen