aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/patches-5.15/121-hack-spi-nand-1b-bbm.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/mediatek/patches-5.15/121-hack-spi-nand-1b-bbm.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/mediatek/patches-5.15/121-hack-spi-nand-1b-bbm.patch')
-rw-r--r--target/linux/mediatek/patches-5.15/121-hack-spi-nand-1b-bbm.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/mediatek/patches-5.15/121-hack-spi-nand-1b-bbm.patch b/target/linux/mediatek/patches-5.15/121-hack-spi-nand-1b-bbm.patch
index 770a7ff9bd..ff5521c44e 100644
--- a/target/linux/mediatek/patches-5.15/121-hack-spi-nand-1b-bbm.patch
+++ b/target/linux/mediatek/patches-5.15/121-hack-spi-nand-1b-bbm.patch
@@ -1,6 +1,6 @@
--- a/drivers/mtd/nand/spi/core.c
+++ b/drivers/mtd/nand/spi/core.c
-@@ -714,7 +714,7 @@ static int spinand_mtd_write(struct mtd_
+@@ -724,7 +724,7 @@ static int spinand_mtd_write(struct mtd_
static bool spinand_isbad(struct nand_device *nand, const struct nand_pos *pos)
{
struct spinand_device *spinand = nand_to_spinand(nand);
@@ -9,7 +9,7 @@
struct nand_page_io_req req = {
.pos = *pos,
.ooblen = sizeof(marker),
-@@ -725,7 +725,7 @@ static bool spinand_isbad(struct nand_de
+@@ -735,7 +735,7 @@ static bool spinand_isbad(struct nand_de
spinand_select_target(spinand, pos->target);
spinand_read_page(spinand, &req);