mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
misc: cec: cancel workqueue in suspend
cancel the workqueue in suspend method before turning off the clock Bug 1360341 Change-Id: I126da686a6ba0c5eec55b67df1e9f962ce16fc48 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/280159 (cherry picked from commit 7cc6da6e41c7889f7ed8da7833d293b3b884bc0e) Signed-off-by: Xia Yang <xiay@nvidia.com> Reviewed-on: http://git-master/r/346041 Reviewed-on: http://git-master/r/1164140 (cherry picked from commit e57647e7daacd5a3c22016cbe3f01ddb800d702c)
This commit is contained in:
committed by
Prafull Suryawanshi
parent
353c499996
commit
b38ef51b1a
@@ -376,6 +376,9 @@ static int tegra_cec_suspend(struct platform_device *pdev, pm_message_t state)
|
||||
{
|
||||
struct tegra_cec *cec = platform_get_drvdata(pdev);
|
||||
|
||||
/* cancel the work queue */
|
||||
cancel_work_sync(&cec->work);
|
||||
|
||||
clk_disable(cec->clk);
|
||||
|
||||
dev_notice(&pdev->dev, "suspended\n");
|
||||
|
||||
Reference in New Issue
Block a user