diff options
author | Hamish Guthrie <hcg@openwrt.org> | 2011-08-25 11:49:55 +0000 |
---|---|---|
committer | Hamish Guthrie <hcg@openwrt.org> | 2011-08-25 11:49:55 +0000 |
commit | cc037a5e27bd9b9f298eb830c93d61927a8f671e (patch) | |
tree | 3411dbbaa1605e7d0154edff0930e0da49edffa6 /target | |
parent | 0ec7f94548abb8a22a6e1559e930a3df14a45043 (diff) | |
download | mtk-20170518-cc037a5e27bd9b9f298eb830c93d61927a8f671e.zip mtk-20170518-cc037a5e27bd9b9f298eb830c93d61927a8f671e.tar.gz mtk-20170518-cc037a5e27bd9b9f298eb830c93d61927a8f671e.tar.bz2 |
Remove subpage align patch
SVN-Revision: 28086
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/omap35xx/patches-3.0/003-nand_subpage_align.patch | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/target/linux/omap35xx/patches-3.0/003-nand_subpage_align.patch b/target/linux/omap35xx/patches-3.0/003-nand_subpage_align.patch deleted file mode 100644 index 4bb854d..0000000 --- a/target/linux/omap35xx/patches-3.0/003-nand_subpage_align.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -urN linux-2.6.38.old/drivers/mtd/nand/omap2.c linux-2.6.38/drivers/mtd/nand/omap2.c ---- linux-2.6.38.old/drivers/mtd/nand/omap2.c 2011-03-15 02:20:32.000000000 +0100 -+++ linux-2.6.38/drivers/mtd/nand/omap2.c 2011-03-21 15:05:21.000000000 +0100 -@@ -245,6 +245,18 @@ - int ret = 0; - u32 *p = (u32 *)buf; - -+ /* u32 align the buffer and read */ -+ /* NB: This assumes the buf ptr can be aligned *down* which is a valid. -+ * Assumption when dealing with ecc buffers etc. -+ */ -+ u32 addr = (u32)p; -+ -+ int diff = addr & 3; -+ addr -= diff; -+ len += diff; -+ len = (len + 3) & ~3; -+ p = (u32 *)addr; -+ - /* take care of subpage reads */ - if (len % 4) { - if (info->nand.options & NAND_BUSWIDTH_16) |