serial: 8250: modify warning log about dma request fail

Change-Id: Ib26ef05bb04542ff8d4527a8e7a79cae4dcaa31d
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
This commit is contained in:
Huibin Hong
2018-05-09 15:14:41 +08:00
committed by Tao Huang
parent 2003c94bc0
commit 0f27d1cbb4

View File

@@ -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;
}
}