ubifs robustness with early power cut warning

Kees Trommel ctrommel at aimvalley.nl
Mon Oct 2 23:57:29 PDT 2017


Richard,

 > Out of curiosity, did you also try to freeze or schedule the calling 
task?

No I did not. When the GPIO gets active the board will die (power off) 
soon, so no need to freeze/block the calling task because it soon will 
die too.

Kees.

On 10/02/17 13:35, Richard Weinberger wrote:
> Kees,
>
> On Mon, Oct 2, 2017 at 10:06 AM, Kees Trommel <ctrommel at aimvalley.nl> wrote:
>> Doug,
>>
>> Attached a patch file with an implementation that I developed for our custom
>> board that has an early powerdown (is dying) signal (GPIO pin).
>>
>> The idea is that when an "I am dying" condition is detected no erase or
>> program is started by the mtd layer. It is assumed that an erase or program
>> started before the board starts to die will be completed successfully.
> Out of curiosity, did you also try to freeze or schedule the calling task?
>
> Maybe we should add something like that to MTD as generic interface.
> I saw such hacks in all variants in vendor/customer kernels.
>




More information about the linux-mtd mailing list