lkml.org 
[lkml]   [2021]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/4] mtd: core: protect access to mtd devices while in suspend
Date
Follow-up on discussion in:
https://lkml.org/lkml/2021/10/4/41
https://lkml.org/lkml/2021/10/11/435

Changes since v1:
- removed __mtd_suspend/__mtd_resume functions as they are not used by
mtdconcat anymore.
- only master mtd_info is used for mtd_{start,end}_access(). Warn if we
got mtd's.
- added Boris patch for using uninitialized _suspend/_resume hooks when
bbt scanning
- mtdconcat uses device _suspend/_resume hooks
- I don't really like the macro proposal from Boris
mtd_no_suspend_void_call()/mtd_no_suspend_ret_call() I think they
make the code complex to read and the macro's doesn't fit every
where anyway...

Changes since from rfc v1/v2:
- added access protection for all device access hooks in mtd_info.
- added Suggested-by to [1/3] patch.
- removed refereces to commit ef347c0cfd61 ("mtd: rawnand: gpmi: Implement exec_op")
from commit msg as commit 013e6292aaf5 ("mtd: rawnand: Simplify the locking") is
to be blamed.
- tested on a kernel with LOCKDEP enabled.

Sean Nyekjaer (4):
mtd: rawnand: nand_bbt: hide suspend/resume hooks while scanning bbt
mtd: core: protect access to MTD devices while in suspend
mtd: rawnand: remove suspended check
mtd: mtdconcat: add suspend lock handling

drivers/mtd/mtdconcat.c | 7 +-
drivers/mtd/mtdcore.c | 131 +++++++++++++++++++++++++++----
drivers/mtd/nand/raw/nand_base.c | 52 +++---------
drivers/mtd/nand/raw/nand_bbt.c | 28 ++++++-
include/linux/mtd/mtd.h | 81 +++++++++++++++----
include/linux/mtd/rawnand.h | 5 +-
6 files changed, 227 insertions(+), 77 deletions(-)

--
2.33.0

\
 
 \ /
  Last update: 2021-10-20 10:46    [W:0.058 / U:1.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site