projects
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
146c7d6
)
[generic]: fixup mtd refresh and co.
author
kaloz
<kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 Jul 2011 12:55:21 +0000
(12:55 +0000)
committer
kaloz
<kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 Jul 2011 12:55:21 +0000
(12:55 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27491
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
target/linux/generic/patches-2.6.36/065-rootfs_split.patch
patch
|
blob
|
history
target/linux/generic/patches-2.6.37/400-rootfs_split.patch
patch
|
blob
|
history
target/linux/generic/patches-2.6.38/400-rootfs_split.patch
patch
|
blob
|
history
target/linux/generic/patches-2.6.39/400-rootfs_split.patch
patch
|
blob
|
history
target/linux/generic/patches-3.0/400-rootfs_split.patch
patch
|
blob
|
history
diff --git
a/target/linux/generic/patches-2.6.36/065-rootfs_split.patch
b/target/linux/generic/patches-2.6.36/065-rootfs_split.patch
index
3e1120e
..
31eb716
100644
(file)
--- a/
target/linux/generic/patches-2.6.36/065-rootfs_split.patch
+++ b/
target/linux/generic/patches-2.6.36/065-rootfs_split.patch
@@
-621,7
+621,7
@@
#define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64)
#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
#define MEMISLOCKED _IOR('M', 23, struct erase_info_user)
#define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64)
#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
#define MEMISLOCKED _IOR('M', 23, struct erase_info_user)
-+#define MTDREFRESH _IO('M', 2
3
)
++#define MTDREFRESH _IO('M', 2
4
)
/*
* Obsolete legacy interface. Keep it in order not to break userspace
/*
* Obsolete legacy interface. Keep it in order not to break userspace
diff --git
a/target/linux/generic/patches-2.6.37/400-rootfs_split.patch
b/target/linux/generic/patches-2.6.37/400-rootfs_split.patch
index
d7003a9
..
788e1f3
100644
(file)
--- a/
target/linux/generic/patches-2.6.37/400-rootfs_split.patch
+++ b/
target/linux/generic/patches-2.6.37/400-rootfs_split.patch
@@
-259,10
+259,10
@@
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
-@@ -841,6 +841,13 @@ static int mtd_ioctl(struct file *file,
- file->f_pos = 0;
+@@ -956,6 +956,13 @@ static int mtd_ioctl(struct file *file,
break;
}
break;
}
+ #endif
+#ifdef CONFIG_MTD_PARTITIONS
+ case MTDREFRESH:
+ {
+#ifdef CONFIG_MTD_PARTITIONS
+ case MTDREFRESH:
+ {
@@
-271,8
+271,8
@@
+ }
+#endif
+ }
+#endif
-
case OTPGETREGIONCOUNT
:
- case OTPGETREGIONINFO:
+
default
:
+ ret = -ENOTTY;
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -125,6 +125,7 @@ struct nand_ecclayout {
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -125,6 +125,7 @@ struct nand_ecclayout {
@@
-325,7
+325,7
@@
#define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64)
#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
#define MEMISLOCKED _IOR('M', 23, struct erase_info_user)
#define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64)
#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
#define MEMISLOCKED _IOR('M', 23, struct erase_info_user)
-+#define MTDREFRESH _IO('M', 2
3
)
++#define MTDREFRESH _IO('M', 2
4
)
/*
* Obsolete legacy interface. Keep it in order not to break userspace
/*
* Obsolete legacy interface. Keep it in order not to break userspace
diff --git
a/target/linux/generic/patches-2.6.38/400-rootfs_split.patch
b/target/linux/generic/patches-2.6.38/400-rootfs_split.patch
index
cabaab4
..
630cdd9
100644
(file)
--- a/
target/linux/generic/patches-2.6.38/400-rootfs_split.patch
+++ b/
target/linux/generic/patches-2.6.38/400-rootfs_split.patch
@@
-260,10
+260,10
@@
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
-@@ -841,6 +841,13 @@ static int mtd_ioctl(struct file *file,
- file->f_pos = 0;
+@@ -956,6 +956,13 @@ static int mtd_ioctl(struct file *file,
break;
}
break;
}
+ #endif
+#ifdef CONFIG_MTD_PARTITIONS
+ case MTDREFRESH:
+ {
+#ifdef CONFIG_MTD_PARTITIONS
+ case MTDREFRESH:
+ {
@@
-272,8
+272,8
@@
+ }
+#endif
+ }
+#endif
-
case OTPGETREGIONCOUNT
:
- case OTPGETREGIONINFO:
+
default
:
+ ret = -ENOTTY;
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -125,6 +125,7 @@ struct nand_ecclayout {
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -125,6 +125,7 @@ struct nand_ecclayout {
@@
-326,7
+326,7
@@
#define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64)
#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
#define MEMISLOCKED _IOR('M', 23, struct erase_info_user)
#define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64)
#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
#define MEMISLOCKED _IOR('M', 23, struct erase_info_user)
-+#define MTDREFRESH _IO('M', 2
3
)
++#define MTDREFRESH _IO('M', 2
4
)
/*
* Obsolete legacy interface. Keep it in order not to break userspace
/*
* Obsolete legacy interface. Keep it in order not to break userspace
diff --git
a/target/linux/generic/patches-2.6.39/400-rootfs_split.patch
b/target/linux/generic/patches-2.6.39/400-rootfs_split.patch
index
b9f345d
..
5450814
100644
(file)
--- a/
target/linux/generic/patches-2.6.39/400-rootfs_split.patch
+++ b/
target/linux/generic/patches-2.6.39/400-rootfs_split.patch
@@
-260,10
+260,10
@@
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
-@@ -841,6 +841,13 @@ static int mtd_ioctl(struct file *file,
- file->f_pos = 0;
+@@ -956,6 +956,13 @@ static int mtd_ioctl(struct file *file,
break;
}
break;
}
+ #endif
+#ifdef CONFIG_MTD_PARTITIONS
+ case MTDREFRESH:
+ {
+#ifdef CONFIG_MTD_PARTITIONS
+ case MTDREFRESH:
+ {
@@
-272,8
+272,8
@@
+ }
+#endif
+ }
+#endif
-
case OTPGETREGIONCOUNT
:
- case OTPGETREGIONINFO:
+
default
:
+ ret = -ENOTTY;
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -125,6 +125,7 @@ struct nand_ecclayout {
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -125,6 +125,7 @@ struct nand_ecclayout {
@@
-325,7
+325,7
@@
#define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64)
#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
#define MEMISLOCKED _IOR('M', 23, struct erase_info_user)
#define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64)
#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
#define MEMISLOCKED _IOR('M', 23, struct erase_info_user)
-+#define MTDREFRESH _IO('M', 2
3
)
++#define MTDREFRESH _IO('M', 2
4
)
/*
* Obsolete legacy interface. Keep it in order not to break userspace
/*
* Obsolete legacy interface. Keep it in order not to break userspace
diff --git
a/target/linux/generic/patches-3.0/400-rootfs_split.patch
b/target/linux/generic/patches-3.0/400-rootfs_split.patch
index
d623bfd
..
db736c3
100644
(file)
--- a/
target/linux/generic/patches-3.0/400-rootfs_split.patch
+++ b/
target/linux/generic/patches-3.0/400-rootfs_split.patch
@@
-257,18
+257,19
@@
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
-@@ -834,6 +834,11 @@ static int mtd_ioctl(struct file *file,
- file->f_pos = 0;
+@@ -948,6 +948,12 @@ static int mtd_ioctl(struct file *file,
break;
}
break;
}
+
+ case MTDREFRESH:
+ {
+ ret = mtd_device_refresh(mtd);
+ break;
+ }
+ case MTDREFRESH:
+ {
+ ret = mtd_device_refresh(mtd);
+ break;
+ }
-
- case OTPGETREGIONCOUNT:
- case OTPGETREGIONINFO:
++
+ default:
+ ret = -ENOTTY;
+ }
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -125,6 +125,7 @@ struct nand_ecclayout {
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -125,6 +125,7 @@ struct nand_ecclayout {
@@
-314,3
+315,13
@@
};
#define MTDPART_OFS_NXTBLK (-2)
};
#define MTDPART_OFS_NXTBLK (-2)
+--- a/include/mtd/mtd-abi.h
++++ b/include/mtd/mtd-abi.h
+@@ -127,6 +127,7 @@ struct otp_info {
+ #define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64)
+ #define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
+ #define MEMISLOCKED _IOR('M', 23, struct erase_info_user)
++#define MTDREFRESH _IO('M', 24)
+
+ /*
+ * Obsolete legacy interface. Keep it in order not to break userspace
This page took
0.035269 seconds
and
4
git commands to generate.