serial: 8250_dma: power off device after TX is done
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 14 Nov 2016 10:26:52 +0000 (12:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Nov 2016 09:57:26 +0000 (10:57 +0100)
commit5fe86674840c6773d09943a78a5f7f3bf2420ffd
treef0c2894bde0779a6eedd30802bb2aed8652a3a13
parent7d4e00c6253bc57b1ac0764ca76d4a8642354b54
serial: 8250_dma: power off device after TX is done

When any 8250 based driver sets up DMA and has UART_CAP_RPM capability enabled
the device is left powered on after transfer is done. We need to schedule a
device suspend operation when DMA completes the transfer.

The patch is based on the work done by the reporter.

Reported-by: Huiquan Zhong <huiquan.zhong@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dma.c