lkml.org 
[lkml]   [2015]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines
From
On Mon, Mar 16, 2015 at 9:46 AM, Kishon Vijay Abraham I <kishon@ti.com> wrote:
> On Wednesday 14 January 2015 05:28 PM, Linus Walleij wrote:

>> #include <linux/reboot.h>
>>
>> static int foo_reboot_handler(struct notifier_block *this,
>> unsigned long code,
>> void *unused)
>> {
>> pr_crit("do some last minute stuff\n");
>> return NOTIFY_OK;
>> }
>>
>> static struct notifier_block foo_reboot_notifier = {
>> .notifier_call = foo_reboot_handler,
>> };
>>
>> register_reboot_notifier(&foo_reboot_notifier);
>
>
> Added debug prints and found the reboot notifier gets invoked before the
> shutdown handler which means some stuff can be done after this reboot
> notifier:-(

Specify exactly what stuff may happen after the reboot notifier.

Of course stuff happens both before and after the reboot
notifier, the question is exactly what, that may conflict with this.

Yours,
Linus Walleij


\
 
 \ /
  Last update: 2015-03-18 13:41    [W:0.069 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site