diff options
author | Kamal Dasu <kdasu.kdev@gmail.com> | 2019-05-16 12:41:46 -0400 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-06-27 20:06:40 +0200 |
commit | 9f897bfdd89f5f08a12fa263a7f57fbf8ad9292f (patch) | |
tree | f8301f91b88e4ef576de73b8fa936ecb47b3fb4a /include/linux/mtd | |
parent | 33535b85478d253a234a2779f28992a4d1766629 (diff) | |
download | linux-9f897bfdd89f5f08a12fa263a7f57fbf8ad9292f.tar.gz linux-9f897bfdd89f5f08a12fa263a7f57fbf8ad9292f.tar.bz2 linux-9f897bfdd89f5f08a12fa263a7f57fbf8ad9292f.zip |
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>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/mtd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 936a3fdb48b5..4ca8c1c845fb 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -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 */ |