From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 9 Mar 2018 13:29:16 -0500 Subject: [U-Boot] [U-Boot, v2, 2/2] bcm283x_pl011: Flush RX queue after setting baud rate In-Reply-To: <20180307210825.50709-3-agraf@suse.de> References: <20180307210825.50709-3-agraf@suse.de> Message-ID: <20180309182916.GS1770@bill-the-cat.ec.rr.com> 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, Mar 07, 2018 at 10:08:25PM +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 on Raspberry Pis that use pl011 for serial. >=20 > Fixes: caf2233b28 ("bcm283x: Add pinctrl driver") > Reported-by: G=C3=B6ran Lundberg > Reported-by: Peter Robinson > Signed-off-by: Alexander Graf > Tested-by: Peter Robinson > Tested-by: Tuomas Tynkkynen Applied to u-boot/master, thanks! --=20 Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: