Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 856e35bf authored by Ruchika Kharwar's avatar Ruchika Kharwar Committed by Greg Kroah-Hartman
Browse files

serial: omap: fix sequence of pm_runtime_* calls.



pm_runtime_enable() needs to be invoked before
pm_runtime_use_autosuspend(), and
pm_runtime_set_autosuspend_delay() functions.

Tested-by: default avatarShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarRuchika Kharwar <ruchika@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6c3a30c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1333,12 +1333,12 @@ static int serial_omap_probe(struct platform_device *pdev)
	INIT_WORK(&up->qos_work, serial_omap_uart_qos_work);

	platform_set_drvdata(pdev, up);
	pm_runtime_enable(&pdev->dev);
	pm_runtime_use_autosuspend(&pdev->dev);
	pm_runtime_set_autosuspend_delay(&pdev->dev,
			omap_up_info->autosuspend_timeout);

	pm_runtime_irq_safe(&pdev->dev);
	pm_runtime_enable(&pdev->dev);
	pm_runtime_get_sync(&pdev->dev);

	omap_serial_fill_features_erratas(up);