diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-12-05 17:07:57 +0530 |
---|---|---|
committer | Laxman Dewangan <ldewangan@nvidia.com> | 2013-12-09 03:32:48 -0800 |
commit | 74abba9f8ca8b9231577b8e27a9b7ecbaee22ee7 (patch) | |
tree | f8f8b2c44a4cb94b4e5b135af19f772358a939bd /drivers/pinctrl | |
parent | a3a1606ea278d88722b0ca68d244d5cb1aef5ed6 (diff) |
pinctrl: tegra: set pins into suspend state before entering into suspend
Set the pins into suspend state before entering into suspend. The suspend state
of pins are provided through DT.
bug 1419765
Change-Id: I2765fa8f2135e2b72d82ba875b83be06b5f93929
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/338725
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-tegra.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-tegra.c b/drivers/pinctrl/pinctrl-tegra.c index 309d45741291..cd76cf7c68f8 100644 --- a/drivers/pinctrl/pinctrl-tegra.c +++ b/drivers/pinctrl/pinctrl-tegra.c @@ -750,8 +750,14 @@ static int pinctrl_suspend(void) u32 *pg_data = pmx->pg_data; u32 *regs; - if (pmx->soc->suspend) - return pmx->soc->suspend(pg_data); + if (pmx->soc->suspend) { + int ret; + + ret = pmx->soc->suspend(pg_data); + if (!ret) + pinctrl_configure_user_state(pmx->pctl, "suspend"); + return ret; + } for (i = 0; i < pmx->nbanks; i++) { regs = pmx->regs[i]; |