diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-02-04 15:23:04 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-02-04 15:23:04 +0000 |
commit | 591c58781f6324d16bfc4541429d6142d8a80ee0 (patch) | |
tree | 2a64dfa482217b4e313cbb5398a0677646a11210 /target/linux/omap35xx/patches-2.6.36/004-nand_subpage_align.patch | |
parent | 292b4e42b3dced9e54047ee771f72c730dd8ec20 (diff) | |
download | upstream-591c58781f6324d16bfc4541429d6142d8a80ee0.tar.gz upstream-591c58781f6324d16bfc4541429d6142d8a80ee0.tar.bz2 upstream-591c58781f6324d16bfc4541429d6142d8a80ee0.zip |
omap35xx: R.I.P.
It is broken since ~22 months and nobody takes care of that.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35485 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/omap35xx/patches-2.6.36/004-nand_subpage_align.patch')
-rw-r--r-- | target/linux/omap35xx/patches-2.6.36/004-nand_subpage_align.patch | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/target/linux/omap35xx/patches-2.6.36/004-nand_subpage_align.patch b/target/linux/omap35xx/patches-2.6.36/004-nand_subpage_align.patch deleted file mode 100644 index 4bb854db6d..0000000000 --- a/target/linux/omap35xx/patches-2.6.36/004-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) |