]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: sh-sci: suppress warning for ports without dma channels
authorAndy Lowe <andy_lowe@mentor.com>
Fri, 22 Sep 2017 18:29:30 +0000 (20:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Oct 2017 08:17:27 +0000 (10:17 +0200)
commit7464779fa8551b90d5797d4020b0bdb7e6422eb9
treec6f593c091d16fe1533e8b315776906f122e3750
parentdaf3930cf616792ec62c4b2ab0926525f1b5de4d
serial: sh-sci: suppress warning for ports without dma channels

If a port has no dma channel defined in the device tree, then
don't attempt to allocate a dma channel for the port.
Also suppress the warning message concerning the failure to allocate
a dma channel.  Continue to emit the warning message if a dma
channel is defined but cannot be allocated.

Signed-off-by: Andy Lowe <andy_lowe@mentor.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c