From e493cee37f949bef2af608bab88930e46d2b7460 Mon Sep 17 00:00:00 2001 From: Nitin Kumbhar Date: Fri, 24 Apr 2015 17:39:08 +0530 Subject: [PATCH] platform: ape: add tegra_pd_ops for power domains Add tegra_pd_ops for ape and adsp power domains so that driver's *runtime_suspend() and *runtime_resume() routines are called as part of stop_dev() and start_dev() and not at the last when power domain is being powered off. Remove power down delay for APE power domain. Bug 200090996 Change-Id: Ie7d69964d647b0392728b9f5b147818f4a525928 Signed-off-by: Nitin Kumbhar Reviewed-on: http://git-master/r/735632 (cherry picked from commit 37ca24d340ddf0b70b406d04bf98ee686ad280a7) Reviewed-on: http://git-master/r/752259 (cherry picked from commit 0ca955773e6cbd942c2de6f8ed28673ef34b5bbf) Signed-off-by: Nitin Kumbhar Reviewed-on: http://git-master/r/766594 --- sound/soc/tegra-alt/tegra210_adsp_alt.c | 2 -- sound/soc/tegra-alt/tegra210_xbar_alt.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/sound/soc/tegra-alt/tegra210_adsp_alt.c b/sound/soc/tegra-alt/tegra210_adsp_alt.c index 0854e088..009d1c3d 100644 --- a/sound/soc/tegra-alt/tegra210_adsp_alt.c +++ b/sound/soc/tegra-alt/tegra210_adsp_alt.c @@ -2562,8 +2562,6 @@ static int tegra210_adsp_audio_platform_probe(struct platform_device *pdev) /* HACK : Should be handled through dma-engine */ tegra_adsp_pd_add_device(&pdev->dev); - pm_genpd_dev_need_save(&pdev->dev, true); - pm_genpd_dev_need_restore(&pdev->dev, true); pm_runtime_get_sync(&pdev->dev); for (i = 0; i < TEGRA210_ADSP_ADMA_CHANNEL_COUNT; i++) { ret = tegra_agic_route_interrupt( diff --git a/sound/soc/tegra-alt/tegra210_xbar_alt.c b/sound/soc/tegra-alt/tegra210_xbar_alt.c index 05350a4d..826b89f2 100644 --- a/sound/soc/tegra-alt/tegra210_xbar_alt.c +++ b/sound/soc/tegra-alt/tegra210_xbar_alt.c @@ -962,8 +962,6 @@ static int tegra210_xbar_probe(struct platform_device *pdev) regcache_cache_only(xbar->regmap, true); tegra_ape_pd_add_device(&pdev->dev); - pm_genpd_dev_need_save(&pdev->dev, true); - pm_genpd_dev_need_restore(&pdev->dev, true); pm_runtime_enable(&pdev->dev); if (!pm_runtime_enabled(&pdev->dev)) {