Messages in this thread | | | Date | Wed, 2 Sep 2009 00:10:03 +0200 | Subject | Re: [PATCH 1/2] AB3100 regulator support v2 | From | Linus Walleij <> |
| |
2009/9/2 Linus Walleij <linus.ml.walleij@gmail.com>:
[SIGKILL] > In the general sense perhaps this doesn't happen so much, > what we've seen is system shut down, here some code get > interrupted by signals, so atleast the shut down path should be > protected I guess, I will do that in the U300 board setup > pm_poweroff() hook then, which calls down the > regulator/ab3100/i2c chain so all that is secured.
Or rather, I already do (I forgot about adding in that code!)
+ */ +void u300_pm_poweroff(void) +{ + sigset_t old, all; + + sigfillset(&all); + if (!sigprocmask(SIG_BLOCK, &all, &old)) { + /* Disable LDO D to shut down the system */ + if (main_power_15) + regulator_disable(main_power_15); + else + pr_err("regulator not available to shut down system\n"); + (void) sigprocmask(SIG_SETMASK, &old, NULL); + } + return; +}
Linus Walleij
| |