From 0f27d1cbb4e44c01fc40ef9f0ac6bc916e153d70 Mon Sep 17 00:00:00 2001 From: Huibin Hong Date: Wed, 9 May 2018 15:14:41 +0800 Subject: [PATCH] serial: 8250: modify warning log about dma request fail Change-Id: Ib26ef05bb04542ff8d4527a8e7a79cae4dcaa31d Signed-off-by: Huibin Hong --- drivers/tty/serial/8250/8250_port.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index c4f491c41542..6b6909d9c005 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -2370,8 +2370,13 @@ dont_test_tx_en: if (up->dma) { retval = serial8250_request_dma(up); if (retval) { +#ifdef CONFIG_ARCH_ROCKCHIP + pr_warn_ratelimited("%s - failed to request DMA, use interrupt mode\n", + port->name); +#else pr_warn_ratelimited("%s - failed to request DMA\n", port->name); +#endif up->dma = NULL; } }