summaryrefslogtreecommitdiff
path: root/target/linux/generic-2.6/patches-2.6.22/065-rootfs_split.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-05-18 20:24:13 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-05-18 20:24:13 +0000
commit7d8b70a1ece7a0f5078688e2ccd4b11e4444d3fe (patch)
tree2c3e3d4268c3d9f5742e872e32686ebfebd970d4 /target/linux/generic-2.6/patches-2.6.22/065-rootfs_split.patch
parent6761ddd557729c97c12d19832c70e279839b4d5d (diff)
downloadmtk-20170518-7d8b70a1ece7a0f5078688e2ccd4b11e4444d3fe.zip
mtk-20170518-7d8b70a1ece7a0f5078688e2ccd4b11e4444d3fe.tar.gz
mtk-20170518-7d8b70a1ece7a0f5078688e2ccd4b11e4444d3fe.tar.bz2
refresh generic 2.6.22 patches
SVN-Revision: 11186
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.22/065-rootfs_split.patch')
-rw-r--r--target/linux/generic-2.6/patches-2.6.22/065-rootfs_split.patch87
1 files changed, 43 insertions, 44 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.22/065-rootfs_split.patch b/target/linux/generic-2.6/patches-2.6.22/065-rootfs_split.patch
index 7d9d4ca..f6e79b2 100644
--- a/target/linux/generic-2.6/patches-2.6.22/065-rootfs_split.patch
+++ b/target/linux/generic-2.6/patches-2.6.22/065-rootfs_split.patch
@@ -1,8 +1,8 @@
-Index: linux-2.6.22.1/drivers/mtd/Kconfig
+Index: linux-2.6.22.19/drivers/mtd/Kconfig
===================================================================
---- linux-2.6.22.1.orig/drivers/mtd/Kconfig 2007-08-19 23:30:07.068115074 +0200
-+++ linux-2.6.22.1/drivers/mtd/Kconfig 2007-08-19 23:31:43.961636725 +0200
-@@ -47,6 +47,16 @@
+--- linux-2.6.22.19.orig/drivers/mtd/Kconfig
++++ linux-2.6.22.19/drivers/mtd/Kconfig
+@@ -47,6 +47,16 @@ config MTD_PARTITIONS
devices. Partitioning on NFTL 'devices' is a different - that's the
'normal' form of partitioning used on a block device.
@@ -19,10 +19,10 @@ Index: linux-2.6.22.1/drivers/mtd/Kconfig
config MTD_REDBOOT_PARTS
tristate "RedBoot partition table parsing"
depends on MTD_PARTITIONS
-Index: linux-2.6.22.1/drivers/mtd/mtdpart.c
+Index: linux-2.6.22.19/drivers/mtd/mtdpart.c
===================================================================
---- linux-2.6.22.1.orig/drivers/mtd/mtdpart.c 2007-08-19 23:30:07.076115531 +0200
-+++ linux-2.6.22.1/drivers/mtd/mtdpart.c 2007-08-19 23:31:44.065642653 +0200
+--- linux-2.6.22.19.orig/drivers/mtd/mtdpart.c
++++ linux-2.6.22.19/drivers/mtd/mtdpart.c
@@ -20,6 +20,8 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
@@ -32,7 +32,7 @@ Index: linux-2.6.22.1/drivers/mtd/mtdpart.c
/* Our partition linked list */
static LIST_HEAD(mtd_partitions);
-@@ -39,7 +41,7 @@
+@@ -39,7 +41,7 @@ struct mtd_part {
* the pointer to that structure with this macro.
*/
#define PART(x) ((struct mtd_part *)(x))
@@ -41,7 +41,7 @@ Index: linux-2.6.22.1/drivers/mtd/mtdpart.c
/*
* MTD methods which simply translate the effective address and pass through
-@@ -308,6 +310,312 @@
+@@ -308,6 +310,312 @@ int del_mtd_partitions(struct mtd_info *
return 0;
}
@@ -354,7 +354,7 @@ Index: linux-2.6.22.1/drivers/mtd/mtdpart.c
/*
* This function, given a master MTD object and a partition table, creates
* and registers slave MTD objects which are bound to the master according to
-@@ -320,168 +628,31 @@
+@@ -320,168 +628,31 @@ int add_mtd_partitions(struct mtd_info *
int nbparts)
{
struct mtd_part *slave;
@@ -544,7 +544,7 @@ Index: linux-2.6.22.1/drivers/mtd/mtdpart.c
}
}
-@@ -557,7 +728,33 @@
+@@ -557,6 +728,32 @@ int parse_mtd_partitions(struct mtd_info
return ret;
}
@@ -577,12 +577,11 @@ Index: linux-2.6.22.1/drivers/mtd/mtdpart.c
+EXPORT_SYMBOL_GPL(refresh_mtd_partitions);
EXPORT_SYMBOL_GPL(register_mtd_parser);
EXPORT_SYMBOL_GPL(deregister_mtd_parser);
-
-Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
+Index: linux-2.6.22.19/drivers/mtd/devices/block2mtd.c
===================================================================
---- linux-2.6.22.1.orig/drivers/mtd/devices/block2mtd.c 2007-08-19 23:30:49.794549917 +0200
-+++ linux-2.6.22.1/drivers/mtd/devices/block2mtd.c 2007-08-19 23:31:44.025640373 +0200
-@@ -34,6 +34,8 @@
+--- linux-2.6.22.19.orig/drivers/mtd/devices/block2mtd.c
++++ linux-2.6.22.19/drivers/mtd/devices/block2mtd.c
+@@ -34,6 +34,8 @@ struct block2mtd_dev {
struct block_device *blkdev;
struct mtd_info mtd;
struct mutex write_mutex;
@@ -591,7 +590,7 @@ Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
};
-@@ -86,6 +88,12 @@
+@@ -86,6 +88,12 @@ static int block2mtd_erase(struct mtd_in
size_t len = instr->len;
int err;
@@ -604,7 +603,7 @@ Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
instr->state = MTD_ERASING;
mutex_lock(&dev->write_mutex);
err = _block2mtd_erase(dev, from, len);
-@@ -98,6 +106,10 @@
+@@ -98,6 +106,10 @@ static int block2mtd_erase(struct mtd_in
instr->state = MTD_ERASE_DONE;
mtd_erase_callback(instr);
@@ -615,7 +614,7 @@ Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
return err;
}
-@@ -109,10 +121,14 @@
+@@ -109,10 +121,14 @@ static int block2mtd_read(struct mtd_inf
struct page *page;
int index = from >> PAGE_SHIFT;
int offset = from & (PAGE_SIZE-1);
@@ -633,7 +632,7 @@ Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
if (from + len > mtd->size)
len = mtd->size - from;
-@@ -127,10 +143,14 @@
+@@ -127,10 +143,14 @@ static int block2mtd_read(struct mtd_inf
len = len - cpylen;
page = page_read(dev->blkdev->bd_inode->i_mapping, index);
@@ -652,7 +651,7 @@ Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
memcpy(buf, page_address(page) + offset, cpylen);
page_cache_release(page);
-@@ -141,7 +161,10 @@
+@@ -141,7 +161,10 @@ static int block2mtd_read(struct mtd_inf
offset = 0;
index++;
}
@@ -664,7 +663,7 @@ Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
}
-@@ -193,12 +216,22 @@
+@@ -193,12 +216,22 @@ static int block2mtd_write(struct mtd_in
size_t *retlen, const u_char *buf)
{
struct block2mtd_dev *dev = mtd->priv;
@@ -691,7 +690,7 @@ Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
if (to + len > mtd->size)
len = mtd->size - to;
-@@ -207,6 +240,9 @@
+@@ -207,6 +240,9 @@ static int block2mtd_write(struct mtd_in
mutex_unlock(&dev->write_mutex);
if (err > 0)
err = 0;
@@ -701,7 +700,7 @@ Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
return err;
}
-@@ -215,51 +251,29 @@
+@@ -215,51 +251,29 @@ static int block2mtd_write(struct mtd_in
static void block2mtd_sync(struct mtd_info *mtd)
{
struct block2mtd_dev *dev = mtd->priv;
@@ -761,7 +760,7 @@ Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
if (devt) {
bdev = open_by_devnum(devt, FMODE_WRITE | FMODE_READ);
}
-@@ -267,17 +281,96 @@
+@@ -267,17 +281,96 @@ static struct block2mtd_dev *add_device(
#endif
if (IS_ERR(bdev)) {
@@ -861,7 +860,7 @@ Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
/* Setup the MTD structure */
/* make the name contain the block device in */
-@@ -304,6 +397,7 @@
+@@ -304,6 +397,7 @@ static struct block2mtd_dev *add_device(
dev->mtd.read = block2mtd_read;
dev->mtd.priv = dev;
dev->mtd.owner = THIS_MODULE;
@@ -869,10 +868,10 @@ Index: linux-2.6.22.1/drivers/mtd/devices/block2mtd.c
part = kzalloc(sizeof(struct mtd_partition), GFP_KERNEL);
part->name = dev->mtd.name;
-Index: linux-2.6.22.1/drivers/mtd/mtdchar.c
+Index: linux-2.6.22.19/drivers/mtd/mtdchar.c
===================================================================
---- linux-2.6.22.1.orig/drivers/mtd/mtdchar.c 2007-08-19 23:30:07.096116671 +0200
-+++ linux-2.6.22.1/drivers/mtd/mtdchar.c 2007-08-19 23:31:44.041641284 +0200
+--- linux-2.6.22.19.orig/drivers/mtd/mtdchar.c
++++ linux-2.6.22.19/drivers/mtd/mtdchar.c
@@ -16,6 +16,7 @@
#include <linux/mtd/mtd.h>
@@ -881,7 +880,7 @@ Index: linux-2.6.22.1/drivers/mtd/mtdchar.c
#include <asm/uaccess.h>
-@@ -752,6 +753,13 @@
+@@ -752,6 +753,13 @@ static int mtd_ioctl(struct inode *inode
file->f_pos = 0;
break;
}
@@ -895,11 +894,11 @@ Index: linux-2.6.22.1/drivers/mtd/mtdchar.c
default:
ret = -ENOTTY;
-Index: linux-2.6.22.1/include/linux/mtd/mtd.h
+Index: linux-2.6.22.19/include/linux/mtd/mtd.h
===================================================================
---- linux-2.6.22.1.orig/include/linux/mtd/mtd.h 2007-08-19 23:30:07.100116893 +0200
-+++ linux-2.6.22.1/include/linux/mtd/mtd.h 2007-08-19 23:31:44.105644933 +0200
-@@ -98,6 +98,7 @@
+--- linux-2.6.22.19.orig/include/linux/mtd/mtd.h
++++ linux-2.6.22.19/include/linux/mtd/mtd.h
+@@ -98,6 +98,7 @@ struct mtd_oob_ops {
uint8_t *oobbuf;
};
@@ -907,7 +906,7 @@ Index: linux-2.6.22.1/include/linux/mtd/mtd.h
struct mtd_info {
u_char type;
u_int32_t flags;
-@@ -195,6 +196,9 @@
+@@ -195,6 +196,9 @@ struct mtd_info {
struct module *owner;
int usecount;
@@ -917,10 +916,10 @@ Index: linux-2.6.22.1/include/linux/mtd/mtd.h
/* If the driver is something smart, like UBI, it may need to maintain
* its own reference counting. The below functions are only for driver.
* The driver may register its callbacks. These callbacks are not
-Index: linux-2.6.22.1/include/linux/mtd/partitions.h
+Index: linux-2.6.22.19/include/linux/mtd/partitions.h
===================================================================
---- linux-2.6.22.1.orig/include/linux/mtd/partitions.h 2007-08-19 23:30:07.112117591 +0200
-+++ linux-2.6.22.1/include/linux/mtd/partitions.h 2007-08-19 23:31:44.133646528 +0200
+--- linux-2.6.22.19.orig/include/linux/mtd/partitions.h
++++ linux-2.6.22.19/include/linux/mtd/partitions.h
@@ -36,6 +36,7 @@
* erasesize aligned (e.g. use MTDPART_OFS_NEXTBLK).
*/
@@ -929,7 +928,7 @@ Index: linux-2.6.22.1/include/linux/mtd/partitions.h
struct mtd_partition {
char *name; /* identifier string */
u_int32_t size; /* partition size */
-@@ -43,6 +44,7 @@
+@@ -43,6 +44,7 @@ struct mtd_partition {
u_int32_t mask_flags; /* master MTD flags to mask out for this partition */
struct nand_ecclayout *ecclayout; /* out of band layout for this partition (NAND only)*/
struct mtd_info **mtdp; /* pointer to store the MTD object */
@@ -937,7 +936,7 @@ Index: linux-2.6.22.1/include/linux/mtd/partitions.h
};
#define MTDPART_OFS_NXTBLK (-2)
-@@ -52,6 +54,7 @@
+@@ -52,6 +54,7 @@ struct mtd_partition {
int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int);
int del_mtd_partitions(struct mtd_info *);
@@ -945,11 +944,11 @@ Index: linux-2.6.22.1/include/linux/mtd/partitions.h
/*
* Functions dealing with the various ways of partitioning the space
-Index: linux-2.6.22.1/include/mtd/mtd-abi.h
+Index: linux-2.6.22.19/include/mtd/mtd-abi.h
===================================================================
---- linux-2.6.22.1.orig/include/mtd/mtd-abi.h 2007-08-19 23:30:07.124118264 +0200
-+++ linux-2.6.22.1/include/mtd/mtd-abi.h 2007-08-19 23:31:44.157647897 +0200
-@@ -95,6 +95,7 @@
+--- linux-2.6.22.19.orig/include/mtd/mtd-abi.h
++++ linux-2.6.22.19/include/mtd/mtd-abi.h
+@@ -95,6 +95,7 @@ struct otp_info {
#define ECCGETLAYOUT _IOR('M', 17, struct nand_ecclayout)
#define ECCGETSTATS _IOR('M', 18, struct mtd_ecc_stats)
#define MTDFILEMODE _IO('M', 19)