]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - drivers/tty/serial/xilinx_uartps.c
serial: uartps: Add the device_init_wakeup
[zynq/linux.git] / drivers / tty / serial / xilinx_uartps.c
index 01024ae5da77c32701d450841bde847bd8e8207c..24aa736fef37d68de65214f3ea5c02cc8a4f71bb 100644 (file)
@@ -1613,6 +1613,7 @@ static int cdns_uart_probe(struct platform_device *pdev)
        pm_runtime_set_autosuspend_delay(&pdev->dev, UART_AUTOSUSPEND_TIMEOUT);
        pm_runtime_set_active(&pdev->dev);
        pm_runtime_enable(&pdev->dev);
+       device_init_wakeup(port->dev, true);
 
 #ifdef CONFIG_SERIAL_XILINX_PS_UART_CONSOLE
        /*
@@ -1689,6 +1690,7 @@ static int cdns_uart_remove(struct platform_device *pdev)
        pm_runtime_disable(&pdev->dev);
        pm_runtime_set_suspended(&pdev->dev);
        pm_runtime_dont_use_autosuspend(&pdev->dev);
+       device_init_wakeup(&pdev->dev, false);
 
 #ifdef CONFIG_SERIAL_XILINX_PS_UART_CONSOLE
        if (console_port == port)