summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2022-11-14 07:29:51 -0500
committerTom Rini <[email protected]>2022-11-14 09:33:36 -0500
commitc4ee4fe92e9be120be6d12718273dec6b63cc7d9 (patch)
tree31d45f462b8b4b85f525308a22e0bebb9f80f27c /drivers/serial
parentfac432652f38724994a99c2613183fc04534a2cd (diff)
parentfc1c1760de38823edbdc2cdd9606dff938a07f6e (diff)
Merge tag 'u-boot-imx-20221114' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
For 2022.01 ----------- CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/14083 - Fix UART - moved to binman (MX8 boards) - Toradex: sync DTS with Linux - Gateworks: fixes - New boards : MSC SM2S iMX8MP
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_mxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c
index 4cf79c1ca24..82c0d84628d 100644
--- a/drivers/serial/serial_mxc.c
+++ b/drivers/serial/serial_mxc.c
@@ -311,7 +311,7 @@ static int mxc_serial_putc(struct udevice *dev, const char ch)
struct mxc_serial_plat *plat = dev_get_plat(dev);
struct mxc_uart *const uart = plat->reg;
- if (readl(&uart->ts) & UTS_TXFULL)
+ if (!(readl(&uart->ts) & UTS_TXEMPTY))
return -EAGAIN;
writel(ch, &uart->txd);