All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] suspend/resume support for OMAP nand driver
@ 2013-06-12 11:00 ` Pekon Gupta
  0 siblings, 0 replies; 13+ messages in thread
From: Pekon Gupta @ 2013-06-12 11:00 UTC (permalink / raw)
  To: linux-mtd, linux-omap, tony; +Cc: Pekon Gupta

This patch series adds low power transition support for OMAP NAND driver.
[Patch 1/3]: Adds pm_runtime calls to handle GPMC module probe and remove
[Patch 2/3]: Adds GPMC suspend/resume support.
[Patch 3/3]: Adds ELM suspend/resume support.

Tested on am335x-evm with NAND flash support, using following:
	echo devices 	> /sys/power/pm_test
	echo mem	> /sys/power/state

	echo core	> /sys/power/pm_test
	echo mem	> /sys/power/state

Changes Since v3:
- CONFIG_PM -> CONFIG_PM_SLEEP
- using struct dev_pm_ops via driver->pm, instead of struct platform_driver
- rebased to 3.10-rc5

Changes Since v2:
- Remove calll back of nand_suspend from omap2 nand driver, as the same call
  already done from suspend activity mtd class driver.

[1] http://comments.gmane.org/gmane.linux.ports.arm.omap/91405


avinash philip (3):
  arm: gpmc: Converts GPMC driver to pm_runtime capable
  arm: gpmc: Low power transition support
  mtd: devices: elm: Low power transition support

 arch/arm/mach-omap2/gpmc.c | 27 +++++++++++++++++++++++++--
 drivers/mtd/devices/elm.c  | 19 +++++++++++++++++++
 2 files changed, 44 insertions(+), 2 deletions(-)

-- 
1.8.1

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH v4 1/3] arm: gpmc: Converts GPMC driver to pm_runtime capable
@ 2013-06-12 10:50 Pekon Gupta
  2013-06-12 10:50 ` [PATCH v4 2/3] arm: gpmc: Low power transition support Pekon Gupta
  0 siblings, 1 reply; 13+ messages in thread
From: Pekon Gupta @ 2013-06-12 10:50 UTC (permalink / raw)
  To: linux-mtd; +Cc: Pekon Gupta

From: avinash philip <avinashphilip@ti.com>

Support for pm_runtime add to GPMC driver.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
Signed-off-by: Pekon Gupta <pekon@ti.com> 
---
 arch/arm/mach-omap2/gpmc.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index fb6f241..1380cee 100644
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -30,6 +30,7 @@
 #include <linux/of_mtd.h>
 #include <linux/of_device.h>
 #include <linux/mtd/nand.h>
+#include <linux/pm_runtime.h>
 
 #include <linux/platform_data/mtd-nand-omap2.h>
 
@@ -1594,7 +1595,8 @@ static int gpmc_probe(struct platform_device *pdev)
 		return PTR_ERR(gpmc_l3_clk);
 	}
 
-	clk_prepare_enable(gpmc_l3_clk);
+	pm_runtime_enable(&pdev->dev);
+	pm_runtime_get_sync(&pdev->dev);
 
 	gpmc_dev = &pdev->dev;
 
@@ -1634,7 +1636,7 @@ static int gpmc_probe(struct platform_device *pdev)
 
 	rc = gpmc_probe_dt(pdev);
 	if (rc < 0) {
-		clk_disable_unprepare(gpmc_l3_clk);
+		pm_runtime_put_sync(&pdev->dev);
 		clk_put(gpmc_l3_clk);
 		dev_err(gpmc_dev, "failed to probe DT parameters\n");
 		return rc;
@@ -1647,6 +1649,8 @@ static int gpmc_remove(struct platform_device *pdev)
 {
 	gpmc_free_irq();
 	gpmc_mem_exit();
+	pm_runtime_put_sync(&pdev->dev);
+	pm_runtime_disable(&pdev->dev);
 	gpmc_dev = NULL;
 	return 0;
 }
-- 
1.8.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-06-12 17:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-12 11:00 [PATCH v4 0/3] suspend/resume support for OMAP nand driver Pekon Gupta
2013-06-12 11:00 ` Pekon Gupta
2013-06-12 11:00 ` [PATCH v4 1/3] arm: gpmc: Converts GPMC driver to pm_runtime capable Pekon Gupta
2013-06-12 11:00   ` Pekon Gupta
2013-06-12 11:00 ` [PATCH v4 2/3] arm: gpmc: Low power transition support Pekon Gupta
2013-06-12 11:00   ` Pekon Gupta
2013-06-12 17:01   ` Tony Lindgren
2013-06-12 17:01     ` Tony Lindgren
2013-06-12 17:38     ` Tony Lindgren
2013-06-12 17:38       ` Tony Lindgren
2013-06-12 11:00 ` [PATCH v4 3/3] mtd: devices: elm: " Pekon Gupta
2013-06-12 11:00   ` Pekon Gupta
  -- strict thread matches above, loose matches on Subject: below --
2013-06-12 10:50 [PATCH v4 1/3] arm: gpmc: Converts GPMC driver to pm_runtime capable Pekon Gupta
2013-06-12 10:50 ` [PATCH v4 2/3] arm: gpmc: Low power transition support Pekon Gupta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.