]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
serial: 8250: omap: Set wakeup capable, do not enable
authorMarkus Schneider-Pargmann <msp@baylibre.com>
Wed, 7 Aug 2024 14:12:26 +0000 (16:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 06:22:49 +0000 (08:22 +0200)
The driver sets wakeup enable by default. But not all UARTs are meant to
be wakeup enabled. Change the default to be wakeup capable but not
enabled. The user can enable wakeup when needed.

Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20240807141227.1093006-5-msp@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_omap.c

index 01d430de9c64585f8e67687c53149f08c9c12457..7a6dfd40af9ef626ce767829720b931d11b25c19 100644 (file)
@@ -1529,7 +1529,7 @@ static int omap8250_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, priv);
 
-       device_init_wakeup(&pdev->dev, true);
+       device_set_wakeup_capable(&pdev->dev, true);
        pm_runtime_enable(&pdev->dev);
        pm_runtime_use_autosuspend(&pdev->dev);
 
@@ -1628,7 +1628,7 @@ static void omap8250_remove(struct platform_device *pdev)
        flush_work(&priv->qos_work);
        pm_runtime_disable(&pdev->dev);
        cpu_latency_qos_remove_request(&priv->pm_qos_request);
-       device_init_wakeup(&pdev->dev, false);
+       device_set_wakeup_capable(&pdev->dev, false);
 }
 
 static int omap8250_prepare(struct device *dev)