mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
mtd: Add flag to indicate panic_write
Added a flag to indicate a panic_write so that low level drivers can use it to take required action where applicable, to ensure oops data gets written to assigned mtd device. Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
33535b8547
commit
9f897bfdd8
2 changed files with 9 additions and 0 deletions
|
@ -316,6 +316,12 @@ struct mtd_info {
|
|||
int (*_get_device) (struct mtd_info *mtd);
|
||||
void (*_put_device) (struct mtd_info *mtd);
|
||||
|
||||
/*
|
||||
* flag indicates a panic write, low level drivers can take appropriate
|
||||
* action if required to ensure writes go through
|
||||
*/
|
||||
bool oops_panic_write;
|
||||
|
||||
struct notifier_block reboot_notifier; /* default mode before reboot */
|
||||
|
||||
/* ECC status information */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue