Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163272
b: refs/heads/master
c: 75a7456
h: refs/heads/master
v: v3
  • Loading branch information
Amit Kucheria authored and Samuel Ortiz committed Sep 17, 2009
1 parent c6023c3 commit 7a487e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebf0bd366ed8161e6fbc919705d878ccbfd51624
refs/heads/master: 75a7456539224c5c5c254130afdb18bd7eb2286f
6 changes: 6 additions & 0 deletions trunk/drivers/mfd/twl4030-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ static int __init load_twl4030_script(struct twl4030_script *tscript,
u8 address)
{
int err;
static int order;

/* Make sure the script isn't going beyond last valid address (0x3f) */
if ((address + tscript->size) > END_OF_SCRIPT) {
Expand All @@ -399,13 +400,18 @@ static int __init load_twl4030_script(struct twl4030_script *tscript,
err = twl4030_config_wakeup12_sequence(address);
if (err)
goto out;
order = 1;
}
if (tscript->flags & TWL4030_WAKEUP3_SCRIPT) {
err = twl4030_config_wakeup3_sequence(address);
if (err)
goto out;
}
if (tscript->flags & TWL4030_SLEEP_SCRIPT)
if (order)
pr_warning("TWL4030: Bad order of scripts (sleep "\
"script before wakeup) Leads to boot"\
"failure on some boards\n");
err = twl4030_config_sleep_sequence(address);
out:
return err;
Expand Down

0 comments on commit 7a487e6

Please sign in to comment.