serial: 8250_dw: provide a filter for DMA channel detection
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 5 Sep 2013 14:34:54 +0000 (17:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 21:27:24 +0000 (14:27 -0700)
commit7fb8c56c7fa0fa11168d3788d4591951bec27f4b
tree6b73c3dd1acabadaf5fd5245a9ed6ae9946ef9a9
parentfe95855539fd0a0e54412efc596adfe802a5c605
serial: 8250_dw: provide a filter for DMA channel detection

The channel IDs are set to -1 by default. It will prevent
dmaengine from trying to provide the first free channel if
it fails to allocate exclusive channel. This will fix an
issue with ACPI enumerated UARTs that do not support DMA
but still end up getting a DMA channel incorrectly.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c