aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-5.15/400-mtd-mtdsplit-support.patch
diff options
context:
space:
mode:
authorMichał Kępień <openwrt@kempniu.pl>2023-03-31 12:40:31 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-04-18 13:53:03 +0200
commitfa4dc86e980851f01e243f94ffe7e0a928f6c16d (patch)
tree128407f050363a1640636a512329de2d56416a7a /target/linux/generic/pending-5.15/400-mtd-mtdsplit-support.patch
parent3d110053f80be9d118cdc499e25076c202f79945 (diff)
downloadupstream-fa4dc86e980851f01e243f94ffe7e0a928f6c16d.tar.gz
upstream-fa4dc86e980851f01e243f94ffe7e0a928f6c16d.tar.bz2
upstream-fa4dc86e980851f01e243f94ffe7e0a928f6c16d.zip
kernel: backport MEMREAD ioctl
MEMREAD is a new ioctl for MTD character devices that was first included in Linux 6.1. It allows userspace applications to use the Linux kernel's OOB autoplacement mechanism while reading data from NAND devices. The Yafut tool needs this ioctl to do its job. Signed-off-by: Michał Kępień <openwrt@kempniu.pl>
Diffstat (limited to 'target/linux/generic/pending-5.15/400-mtd-mtdsplit-support.patch')
-rw-r--r--target/linux/generic/pending-5.15/400-mtd-mtdsplit-support.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/pending-5.15/400-mtd-mtdsplit-support.patch b/target/linux/generic/pending-5.15/400-mtd-mtdsplit-support.patch
index bf82bb3950..46ef15d127 100644
--- a/target/linux/generic/pending-5.15/400-mtd-mtdsplit-support.patch
+++ b/target/linux/generic/pending-5.15/400-mtd-mtdsplit-support.patch
@@ -264,7 +264,7 @@ Subject: [PATCH] mtd: mtdsplit support
* one chunk. Do that by default.
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
-@@ -613,6 +613,24 @@ static inline void mtd_align_erase_req(s
+@@ -620,6 +620,24 @@ static inline void mtd_align_erase_req(s
req->len += mtd->erasesize - mod;
}
@@ -289,7 +289,7 @@ Subject: [PATCH] mtd: mtdsplit support
static inline uint32_t mtd_div_by_ws(uint64_t sz, struct mtd_info *mtd)
{
if (mtd->writesize_shift)
-@@ -686,6 +704,13 @@ extern struct mtd_info *of_get_mtd_devic
+@@ -693,6 +711,13 @@ extern struct mtd_info *of_get_mtd_devic
extern struct mtd_info *get_mtd_device_nm(const char *name);
extern void put_mtd_device(struct mtd_info *mtd);