Skip to contentSkip to conversation

serial: amba-pl011: Do not complain when DMA is absent

PATCH New Fabio Estevam 1 participant 1 message Sep 28, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: amba-pl011: Do not complain when DMA is absent

From: Fabio Estevam <[email protected]>

Many SoCs do not integrate DMA for the amba pl011 UART, causing the following message on boot:

uart-pl011 80074000.serial: no DMA platform data

The UART still works in PIO, so better not to print such message that may confuse people by causing them to think that there is something wrong with the UART.

Change the message to debug level.

---
 drivers/tty/serial/amba-pl011.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/amba-pl011.c +1 -1
index 41eabad4c94b..61cc24cd90e4 100644
@@ -421,7 +421,7 @@ static void pl011_dma_probe(struct uart_amba_port *uap)
 
 		/* We need platform data */
 		if (!plat || !plat->dma_filter) {
-			dev_info(uap->port.dev, "no DMA platform data\n");
+			dev_dbg(uap->port.dev, "no DMA platform data\n");
 			return;
 		}
 
Signature · 1 line
2.34.1