projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f6ce44
)
mtd: set master partition panic write flag
author
Kamal Dasu
<kdasu.kdev@gmail.com>
Mon, 15 Jun 2020 15:51:34 +0000
(11:51 -0400)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Mon, 15 Jun 2020 17:39:24 +0000
(19:39 +0200)
Check and set master panic write flag so that low level drivers
can use it to take required action to ensure oops data gets written
to assigned mtdoops device partition.
Fixes:
9f897bfdd89f
("mtd: Add flag to indicate panic_write")
Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link:
https://lore.kernel.org/linux-mtd/20200615155134.32007-1-kdasu.kdev@gmail.com
drivers/mtd/mtdcore.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtdcore.c
b/drivers/mtd/mtdcore.c
index
76d832a
..
7d93056
100644
(file)
--- a/
drivers/mtd/mtdcore.c
+++ b/
drivers/mtd/mtdcore.c
@@
-1273,8
+1273,8
@@
int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen,
return -EROFS;
if (!len)
return 0;
- if (!m
td
->oops_panic_write)
- m
td
->oops_panic_write = true;
+ if (!m
aster
->oops_panic_write)
+ m
aster
->oops_panic_write = true;
return master->_panic_write(master, mtd_get_master_ofs(mtd, to), len,
retlen, buf);