summaryrefslogtreecommitdiff
path: root/target/linux/generic-2.6/patches-2.6.27/007-samsung_flash.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-10-29 12:20:45 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-10-29 12:20:45 +0000
commit4b09e185f27192bf0d715649d808d058c2768ff5 (patch)
treea848d2f9d2203d19660dbcd6136d82dd25e40c25 /target/linux/generic-2.6/patches-2.6.27/007-samsung_flash.patch
parent81a3955189c4f8cdb404c161809e710b721afba7 (diff)
downloadmtk-20170518-4b09e185f27192bf0d715649d808d058c2768ff5.zip
mtk-20170518-4b09e185f27192bf0d715649d808d058c2768ff5.tar.gz
mtk-20170518-4b09e185f27192bf0d715649d808d058c2768ff5.tar.bz2
remove support for 2.6.27, no target is using it anymore
SVN-Revision: 18201
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.27/007-samsung_flash.patch')
-rw-r--r--target/linux/generic-2.6/patches-2.6.27/007-samsung_flash.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.27/007-samsung_flash.patch b/target/linux/generic-2.6/patches-2.6.27/007-samsung_flash.patch
deleted file mode 100644
index 1ca45d8..0000000
--- a/target/linux/generic-2.6/patches-2.6.27/007-samsung_flash.patch
+++ /dev/null
@@ -1,36 +0,0 @@
---- a/drivers/mtd/chips/cfi_cmdset_0002.c
-+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
-@@ -48,6 +48,7 @@
- #define SST49LF040B 0x0050
- #define SST49LF008A 0x005a
- #define AT49BV6416 0x00d6
-+#define MANUFACTURER_SAMSUNG 0x00ec
-
- static int cfi_amdstd_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
- static int cfi_amdstd_write_words(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
-@@ -321,12 +322,19 @@ struct mtd_info *cfi_cmdset_0002(struct
-
- if (extp->MajorVersion != '1' ||
- (extp->MinorVersion < '0' || extp->MinorVersion > '4')) {
-- printk(KERN_ERR " Unknown Amd/Fujitsu Extended Query "
-- "version %c.%c.\n", extp->MajorVersion,
-- extp->MinorVersion);
-- kfree(extp);
-- kfree(mtd);
-- return NULL;
-+ if (cfi->mfr == MANUFACTURER_SAMSUNG &&
-+ (extp->MajorVersion == '3' && extp->MinorVersion == '3')) {
-+ printk(KERN_NOTICE " Newer Samsung flash detected, "
-+ "should be compatibile with Amd/Fujitsu.\n");
-+ }
-+ else {
-+ printk(KERN_ERR " Unknown Amd/Fujitsu Extended Query "
-+ "version %c.%c.\n", extp->MajorVersion,
-+ extp->MinorVersion);
-+ kfree(extp);
-+ kfree(mtd);
-+ return NULL;
-+ }
- }
-
- /* Install our own private info structure */