projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb685f1
)
bus: ti-sysc: Set ENAWAKEUP if available
author
Tony Lindgren
<tony@atomide.com>
Mon, 27 May 2019 11:51:55 +0000
(
04:51
-0700)
committer
Tony Lindgren
<tony@atomide.com>
Tue, 28 May 2019 12:19:16 +0000
(
05:19
-0700)
Some modules have ENAWAKEUP bit that we need to configure when not
relying on platform data callbacks.
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/bus/ti-sysc.c
b/drivers/bus/ti-sysc.c
index 4a01464249029b1b0b81980a56f29c6eb43550e9..38573f9b4fdc3e4c431ba17c6374d27a0540f13f 100644
(file)
--- a/
drivers/bus/ti-sysc.c
+++ b/
drivers/bus/ti-sysc.c
@@
-895,6
+895,11
@@
static int sysc_enable_module(struct device *dev)
dev_err(dev, "%s: invalid sidlemode\n", __func__);
return -EINVAL;
}
+
+ /* Set WAKEUP */
+ if (regbits->enwkup_shift >= 0 &&
+ ddata->cfg.sysc_val & BIT(regbits->enwkup_shift))
+ reg |= BIT(regbits->enwkup_shift);
}
reg &= ~(SYSC_IDLE_MASK << regbits->sidle_shift);