From d6445484fed00496ccea4f34786ca7751a69721a Mon Sep 17 00:00:00 2001 From: TakuyaMiyasita Date: Mon, 3 Jun 2024 15:38:03 +0900 Subject: [PATCH] drivers/serial/uart_pl011.c : add the bitmask according to PL011 spec. (Although almost no problem.) --- drivers/serial/uart_pl011.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/serial/uart_pl011.c b/drivers/serial/uart_pl011.c index 113f519168..64e4258907 100644 --- a/drivers/serial/uart_pl011.c +++ b/drivers/serial/uart_pl011.c @@ -762,9 +762,9 @@ static int pl011_receive(FAR struct uart_dev_s *dev, rx = config->uart->dr; - *status = 0; + *status = rx & 0xf00; - return rx; + return rx & 0xff; } /***************************************************************************