mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
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 <nkumbhar@nvidia.com> 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 <nkumbhar@nvidia.com> Reviewed-on: http://git-master/r/766594
This commit is contained in:
committed by
Sameer Pujar
parent
953c677578
commit
e493cee37f
@@ -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(
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user