Re: [PATCH] media / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
Em Wed, 03 Dec 2014 03:13:55 +0100 Rafael J. Wysocki r...@rjwysocki.net escreveu: From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. The alternative of CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME may be replaced with CONFIG_PM too. Make these changes everywhere under drivers/media/. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com Acked-by: Mauro Carvalho Chehab mche...@osg.samsung.com Feel free to apply it via your tree. PS.: I won't doubt that you would find some extra checks for PM_RUNTIME on other places at media, as I remember I merged some things like that recently - I think they are there for 3.19, but it needs to be double-checked. Regards, Mauro --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. --- drivers/media/platform/coda/coda-common.c |4 ++-- drivers/media/platform/exynos4-is/fimc-core.c |6 +++--- drivers/media/platform/exynos4-is/fimc-is-i2c.c |2 +- drivers/media/platform/exynos4-is/fimc-lite.c |2 +- drivers/media/platform/exynos4-is/mipi-csis.c |2 +- drivers/media/platform/s5p-jpeg/jpeg-core.c |4 ++-- drivers/media/platform/s5p-mfc/s5p_mfc.c|2 +- drivers/media/platform/s5p-mfc/s5p_mfc_pm.c | 10 -- 8 files changed, 15 insertions(+), 17 deletions(-) Index: linux-pm/drivers/media/platform/s5p-jpeg/jpeg-core.c === --- linux-pm.orig/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ linux-pm/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -2632,7 +2632,7 @@ static int s5p_jpeg_remove(struct platfo return 0; } -#if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP) +#ifdef CONFIG_PM static int s5p_jpeg_runtime_suspend(struct device *dev) { struct s5p_jpeg *jpeg = dev_get_drvdata(dev); @@ -2682,7 +2682,7 @@ static int s5p_jpeg_runtime_resume(struc return 0; } -#endif /* CONFIG_PM_RUNTIME || CONFIG_PM_SLEEP */ +#endif /* CONFIG_PM */ #ifdef CONFIG_PM_SLEEP static int s5p_jpeg_suspend(struct device *dev) Index: linux-pm/drivers/media/platform/s5p-mfc/s5p_mfc.c === --- linux-pm.orig/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ linux-pm/drivers/media/platform/s5p-mfc/s5p_mfc.c @@ -1302,7 +1302,7 @@ static int s5p_mfc_resume(struct device } #endif -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int s5p_mfc_runtime_suspend(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); Index: linux-pm/drivers/media/platform/s5p-mfc/s5p_mfc_pm.c === --- linux-pm.orig/drivers/media/platform/s5p-mfc/s5p_mfc_pm.c +++ linux-pm/drivers/media/platform/s5p-mfc/s5p_mfc_pm.c @@ -13,9 +13,7 @@ #include linux/clk.h #include linux/err.h #include linux/platform_device.h -#ifdef CONFIG_PM_RUNTIME #include linux/pm_runtime.h -#endif #include s5p_mfc_common.h #include s5p_mfc_debug.h #include s5p_mfc_pm.h @@ -67,7 +65,7 @@ int s5p_mfc_init_pm(struct s5p_mfc_dev * } atomic_set(pm-power, 0); -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM pm-device = dev-plat_dev-dev; pm_runtime_enable(pm-device); #endif @@ -93,7 +91,7 @@ void s5p_mfc_final_pm(struct s5p_mfc_dev } clk_unprepare(pm-clock_gate); clk_put(pm-clock_gate); -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM pm_runtime_disable(pm-device); #endif } @@ -120,7 +118,7 @@ void s5p_mfc_clock_off(void) int s5p_mfc_power_on(void) { -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM return pm_runtime_get_sync(pm-device); #else atomic_set(pm-power, 1); @@ -130,7 +128,7 @@ int s5p_mfc_power_on(void) int s5p_mfc_power_off(void) { -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM return pm_runtime_put_sync(pm-device); #else atomic_set(pm-power, 0); Index: linux-pm/drivers/media/platform/exynos4-is/fimc-is-i2c.c === --- linux-pm.orig/drivers/media/platform/exynos4-is/fimc-is-i2c.c +++ linux-pm/drivers/media/platform/exynos4-is/fimc-is-i2c.c @@ -81,7 +81,7 @@ static int fimc_is_i2c_remove(struct pla return 0; } -#if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP) +#ifdef CONFIG_PM static int fimc_is_i2c_runtime_suspend(struct device *dev) { struct fimc_is_i2c *isp_i2c = dev_get_drvdata(dev); Index: linux-pm/drivers/media/platform/exynos4-is/fimc-lite.c
Re: [PATCH] media / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
On Thursday, December 04, 2014 04:08:40 PM Mauro Carvalho Chehab wrote: Em Wed, 03 Dec 2014 03:13:55 +0100 Rafael J. Wysocki r...@rjwysocki.net escreveu: From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. The alternative of CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME may be replaced with CONFIG_PM too. Make these changes everywhere under drivers/media/. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com Acked-by: Mauro Carvalho Chehab mche...@osg.samsung.com Feel free to apply it via your tree. Thanks! PS.: I won't doubt that you would find some extra checks for PM_RUNTIME on other places at media, as I remember I merged some things like that recently - I think they are there for 3.19, but it needs to be double-checked. That's fine. There is at least one case when I need to wait for other trees to get merged due to files being moved around, so I'll do a second round during the merge window anyway. Kind regards, Rafael -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] media / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
On 03/12/14 03:13, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. The alternative of CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME may be replaced with CONFIG_PM too. Make these changes everywhere under drivers/media/. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com Acked-by: Sylwester Nawrocki s.nawro...@samsung.com --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. I'm fine with this being merged through linux-pm as far as the exynos/s5p drivers are concerned. --- drivers/media/platform/coda/coda-common.c |4 ++-- drivers/media/platform/exynos4-is/fimc-core.c |6 +++--- drivers/media/platform/exynos4-is/fimc-is-i2c.c |2 +- drivers/media/platform/exynos4-is/fimc-lite.c |2 +- drivers/media/platform/exynos4-is/mipi-csis.c |2 +- drivers/media/platform/s5p-jpeg/jpeg-core.c |4 ++-- drivers/media/platform/s5p-mfc/s5p_mfc.c|2 +- drivers/media/platform/s5p-mfc/s5p_mfc_pm.c | 10 -- 8 files changed, 15 insertions(+), 17 deletions(-) -- Regards, Sylwester -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] media / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
Am Mittwoch, den 03.12.2014, 03:13 +0100 schrieb Rafael J. Wysocki: From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. The alternative of CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME may be replaced with CONFIG_PM too. Make these changes everywhere under drivers/media/. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. For the coda part, Acked-by: Philipp Zabel p.za...@pengutronix.de regards Philipp -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
RE: [PATCH] media / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
Hi, From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] Sent: Wednesday, December 03, 2014 3:14 AM To: linux-me...@vger.kernel.org Cc: Kyungmin Park; Sylwester Nawrocki; Mauro Carvalho Chehab; Kukjin Kim; linux-samsung-soc@vger.kernel.org; Kamil Debski; Philipp Zabel; Linux PM list; Linux Kernel Mailing List Subject: [PATCH] media / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. The alternative of CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME may be replaced with CONFIG_PM too. Make these changes everywhere under drivers/media/. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. Looks good, for the s5p_mfc part, Acked-by: Kamil Debski k.deb...@samsung.com Best wishes, -- Kamil Debski Samsung RD Institute Poland -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] media / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. The alternative of CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME may be replaced with CONFIG_PM too. Make these changes everywhere under drivers/media/. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. --- drivers/media/platform/coda/coda-common.c |4 ++-- drivers/media/platform/exynos4-is/fimc-core.c |6 +++--- drivers/media/platform/exynos4-is/fimc-is-i2c.c |2 +- drivers/media/platform/exynos4-is/fimc-lite.c |2 +- drivers/media/platform/exynos4-is/mipi-csis.c |2 +- drivers/media/platform/s5p-jpeg/jpeg-core.c |4 ++-- drivers/media/platform/s5p-mfc/s5p_mfc.c|2 +- drivers/media/platform/s5p-mfc/s5p_mfc_pm.c | 10 -- 8 files changed, 15 insertions(+), 17 deletions(-) Index: linux-pm/drivers/media/platform/s5p-jpeg/jpeg-core.c === --- linux-pm.orig/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ linux-pm/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -2632,7 +2632,7 @@ static int s5p_jpeg_remove(struct platfo return 0; } -#if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP) +#ifdef CONFIG_PM static int s5p_jpeg_runtime_suspend(struct device *dev) { struct s5p_jpeg *jpeg = dev_get_drvdata(dev); @@ -2682,7 +2682,7 @@ static int s5p_jpeg_runtime_resume(struc return 0; } -#endif /* CONFIG_PM_RUNTIME || CONFIG_PM_SLEEP */ +#endif /* CONFIG_PM */ #ifdef CONFIG_PM_SLEEP static int s5p_jpeg_suspend(struct device *dev) Index: linux-pm/drivers/media/platform/s5p-mfc/s5p_mfc.c === --- linux-pm.orig/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ linux-pm/drivers/media/platform/s5p-mfc/s5p_mfc.c @@ -1302,7 +1302,7 @@ static int s5p_mfc_resume(struct device } #endif -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int s5p_mfc_runtime_suspend(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); Index: linux-pm/drivers/media/platform/s5p-mfc/s5p_mfc_pm.c === --- linux-pm.orig/drivers/media/platform/s5p-mfc/s5p_mfc_pm.c +++ linux-pm/drivers/media/platform/s5p-mfc/s5p_mfc_pm.c @@ -13,9 +13,7 @@ #include linux/clk.h #include linux/err.h #include linux/platform_device.h -#ifdef CONFIG_PM_RUNTIME #include linux/pm_runtime.h -#endif #include s5p_mfc_common.h #include s5p_mfc_debug.h #include s5p_mfc_pm.h @@ -67,7 +65,7 @@ int s5p_mfc_init_pm(struct s5p_mfc_dev * } atomic_set(pm-power, 0); -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM pm-device = dev-plat_dev-dev; pm_runtime_enable(pm-device); #endif @@ -93,7 +91,7 @@ void s5p_mfc_final_pm(struct s5p_mfc_dev } clk_unprepare(pm-clock_gate); clk_put(pm-clock_gate); -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM pm_runtime_disable(pm-device); #endif } @@ -120,7 +118,7 @@ void s5p_mfc_clock_off(void) int s5p_mfc_power_on(void) { -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM return pm_runtime_get_sync(pm-device); #else atomic_set(pm-power, 1); @@ -130,7 +128,7 @@ int s5p_mfc_power_on(void) int s5p_mfc_power_off(void) { -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM return pm_runtime_put_sync(pm-device); #else atomic_set(pm-power, 0); Index: linux-pm/drivers/media/platform/exynos4-is/fimc-is-i2c.c === --- linux-pm.orig/drivers/media/platform/exynos4-is/fimc-is-i2c.c +++ linux-pm/drivers/media/platform/exynos4-is/fimc-is-i2c.c @@ -81,7 +81,7 @@ static int fimc_is_i2c_remove(struct pla return 0; } -#if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP) +#ifdef CONFIG_PM static int fimc_is_i2c_runtime_suspend(struct device *dev) { struct fimc_is_i2c *isp_i2c = dev_get_drvdata(dev); Index: linux-pm/drivers/media/platform/exynos4-is/fimc-lite.c === --- linux-pm.orig/drivers/media/platform/exynos4-is/fimc-lite.c +++ linux-pm/drivers/media/platform/exynos4-is/fimc-lite.c @@ -1588,7 +1588,7 @@ err_clk_put: return ret; } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int fimc_lite_runtime_resume(struct device *dev) { struct fimc_lite *fimc = dev_get_drvdata(dev); Index: linux-pm/drivers/media/platform/exynos4-is/mipi-csis.c