aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/msm_serial.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-06-05 19:55:56 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-05 19:55:56 -0400
commita22e48cf317d22a4326dc19e906e6b5f4f92e94e (patch)
treee3573ec1f96c50e52efe8717d9a99f249c4a65cf /drivers/tty/serial/msm_serial.c
parentec064d3c6b40697fd72f4b1eeabbf293b7947a04 (diff)
parent4b4ecd9cb853c14913a3726cfcc60ccda1d2924a (diff)
Merge tag 'tty-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/serial updates from Greg KH: "Here is the big tty/serial driver update for 4.18-rc1. There's nothing major here, just lots of serial driver updates. Full details are in the shortlog, nothing anything specific to call out here. All have been in linux-next for a while with no reported issues" * tag 'tty-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (55 commits) vt: Perform safe console erase only once serial: imx: disable UCR4_OREN on shutdown serial: imx: drop CTS/RTS handling from shutdown tty: fix typo in ASYNCB_FOURPORT comment serial: samsung: check DMA engine capabilities before using DMA mode tty: Fix data race in tty_insert_flip_string_fixed_flag tty: serial: msm_geni_serial: Fix TX infinite loop serial: 8250_dw: Fix runtime PM handling serial: 8250: omap: Fix idling of clocks for unused uarts tty: serial: drop ATH79 specific SoC symbols serial: 8250: Add missing rxtrig_bytes on Altera 16550 UART serial/aspeed-vuart: fix a couple mod_timer() calls serial: sh-sci: Use spin_{try}lock_irqsave instead of open coding version serial: 8250_of: Add IO space support tty/serial: atmel: use port->name as name in request_irq() serial: imx: dma_unmap_sg buffers on shutdown serial: imx: cleanup imx_uart_disable_dma() tty: serial: qcom_geni_serial: Add early console support tty: serial: qcom_geni_serial: Return IRQ_NONE for spurious interrupts tty: serial: qcom_geni_serial: Use iowrite32_rep to write to FIFO ...
Diffstat (limited to 'drivers/tty/serial/msm_serial.c')
-rw-r--r--drivers/tty/serial/msm_serial.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c
index ee96cf0d0057..736b74fd6623 100644
--- a/drivers/tty/serial/msm_serial.c
+++ b/drivers/tty/serial/msm_serial.c
@@ -1812,11 +1812,34 @@ static const struct of_device_id msm_match_table[] = {
1812}; 1812};
1813MODULE_DEVICE_TABLE(of, msm_match_table); 1813MODULE_DEVICE_TABLE(of, msm_match_table);
1814 1814
1815static int __maybe_unused msm_serial_suspend(struct device *dev)
1816{
1817 struct msm_port *port = dev_get_drvdata(dev);
1818
1819 uart_suspend_port(&msm_uart_driver, &port->uart);
1820
1821 return 0;
1822}
1823
1824static int __maybe_unused msm_serial_resume(struct device *dev)
1825{
1826 struct msm_port *port = dev_get_drvdata(dev);
1827
1828 uart_resume_port(&msm_uart_driver, &port->uart);
1829
1830 return 0;
1831}
1832
1833static const struct dev_pm_ops msm_serial_dev_pm_ops = {
1834 SET_SYSTEM_SLEEP_PM_OPS(msm_serial_suspend, msm_serial_resume)
1835};
1836
1815static struct platform_driver msm_platform_driver = { 1837static struct platform_driver msm_platform_driver = {
1816 .remove = msm_serial_remove, 1838 .remove = msm_serial_remove,
1817 .probe = msm_serial_probe, 1839 .probe = msm_serial_probe,
1818 .driver = { 1840 .driver = {
1819 .name = "msm_serial", 1841 .name = "msm_serial",
1842 .pm = &msm_serial_dev_pm_ops,
1820 .of_match_table = msm_match_table, 1843 .of_match_table = msm_match_table,
1821 }, 1844 },
1822}; 1845};