linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* omap2_gpio_prepare_for_idle not functioning in suspend
@ 2013-02-11  0:39 Russ Dill
  2013-02-11 15:29 ` Kevin Hilman
  0 siblings, 1 reply; 2+ messages in thread
From: Russ Dill @ 2013-02-11  0:39 UTC (permalink / raw)
  To: linux-omap, Tony Lindgren, Tarun Kanti DebBarma, Charulatha V,
	Santosh Shilimkar

After the gpio-omap runtime PM changes, I noticed that the
omap2_gpio_prepare_for_idle/omap2_gpio_resume_after_idle functions are
a NOP in the case of suspend.

void omap2_gpio_prepare_for_idle(int pwr_mode)
{
	struct gpio_bank *bank;

	list_for_each_entry(bank, &omap_gpio_list, node) {
		if (!bank->mod_usage)
			continue;

		bank->power_mode = pwr_mode;

		pm_runtime_put_sync_suspend(bank->dev);
	}
}

void omap2_gpio_resume_after_idle(void)
{
	struct gpio_bank *bank;

	list_for_each_entry(bank, &omap_gpio_list, node) {
		if (!bank->mod_usage)
			continue;

		pm_runtime_get_sync(bank->dev);
	}
}

(called from omap_pm_enter->omap3_pm_suspend->omap_sram_idle)

At the point that platform_suspend_ops.enter is called,
dpm_suspend_end has already been called which disables runtime_pm.
During a suspend/resume where power is lost to certain GPIO banks, the
context will not be restored.

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

end of thread, other threads:[~2013-02-11 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-11  0:39 omap2_gpio_prepare_for_idle not functioning in suspend Russ Dill
2013-02-11 15:29 ` Kevin Hilman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).