Re: [PATCH v2 03/46] mtd: Don't unconditionally unregister reboot notifier

2016-10-08 Thread Brian Norris
I realize I didn't comment on the latest copy of this patch, so copying my questions here: On Wed, Sep 21, 2016 at 11:45:12AM +0200, Daniel Walter wrote: > From: Richard Weinberger > > del_mtd_device() is allowed to fail. > i.e. when the MTD is busy. > Unregister the reboot notifier only when we

Re: [PATCH v2 03/46] mtd: Don't unconditionally unregister reboot notifier

2016-09-21 Thread Daniel Walter
On 09/21/2016 04:31 PM, Boris Brezillon wrote: > On Wed, 21 Sep 2016 11:45:12 +0200 > Daniel Walter wrote: > >> From: Richard Weinberger >> >> del_mtd_device() is allowed to fail. >> i.e. when the MTD is busy. >> Unregister the reboot notifier only when we're really >> about to delete the MTD. >

Re: [PATCH v2 03/46] mtd: Don't unconditionally unregister reboot notifier

2016-09-21 Thread Boris Brezillon
On Wed, 21 Sep 2016 11:45:12 +0200 Daniel Walter wrote: > From: Richard Weinberger > > del_mtd_device() is allowed to fail. > i.e. when the MTD is busy. > Unregister the reboot notifier only when we're really > about to delete the MTD. > > Signed-off-by: Richard Weinberger > --- > drivers/mt

[PATCH v2 03/46] mtd: Don't unconditionally unregister reboot notifier

2016-09-21 Thread Daniel Walter
From: Richard Weinberger del_mtd_device() is allowed to fail. i.e. when the MTD is busy. Unregister the reboot notifier only when we're really about to delete the MTD. Signed-off-by: Richard Weinberger --- drivers/mtd/mtdcore.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletion