diff options
author | Koen Kooi <koen@openembedded.org> | 2008-12-16 12:13:32 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-12-16 12:13:32 +0100 |
commit | 19fb84f81c15a3e78e5fd1b8fe8fc869a07ff996 (patch) | |
tree | 14b0868ac6353b253cf2bfb9df8926a2c4f0a6c3 /packages/linux/linux-omap/0012-DSS-OMAPFB-PAGE_ALIGN-sizes-in-mem-alloc.patch | |
parent | fde85c6fedd02f0dab19e58afecd2f8133061d9d (diff) |
linux-omap git: move to 2.6.28rc8, this makes usb OTG work properly (even cable detection works!)
Diffstat (limited to 'packages/linux/linux-omap/0012-DSS-OMAPFB-PAGE_ALIGN-sizes-in-mem-alloc.patch')
-rw-r--r-- | packages/linux/linux-omap/0012-DSS-OMAPFB-PAGE_ALIGN-sizes-in-mem-alloc.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/linux/linux-omap/0012-DSS-OMAPFB-PAGE_ALIGN-sizes-in-mem-alloc.patch b/packages/linux/linux-omap/0012-DSS-OMAPFB-PAGE_ALIGN-sizes-in-mem-alloc.patch new file mode 100644 index 0000000000..47976563cd --- /dev/null +++ b/packages/linux/linux-omap/0012-DSS-OMAPFB-PAGE_ALIGN-sizes-in-mem-alloc.patch @@ -0,0 +1,36 @@ +From aebae68fd82a47e5d7c83176cf14720559300e2b Mon Sep 17 00:00:00 2001 +From: Tomi Valkeinen <tomi.valkeinen@nokia.com> +Date: Mon, 15 Dec 2008 14:33:11 +0200 +Subject: [PATCH] DSS: OMAPFB: PAGE_ALIGN sizes in mem alloc + +Sizes in omapfb region struct were not page aligned, and that caused +mmap to fail. +--- + drivers/video/omap2/omapfb-main.c | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/drivers/video/omap2/omapfb-main.c b/drivers/video/omap2/omapfb-main.c +index 89ad631..bca0e28 100644 +--- a/drivers/video/omap2/omapfb-main.c ++++ b/drivers/video/omap2/omapfb-main.c +@@ -874,6 +874,8 @@ static int omapfb_alloc_fbmem(struct omapfb2_device *fbdev, int fbnum, + unsigned long paddr; + void *vaddr; + ++ size = PAGE_ALIGN(size); ++ + ofbi = FB2OFB(fbdev->fbs[fbnum]); + rg = &ofbi->region; + memset(rg, 0, sizeof(*rg)); +@@ -906,6 +908,8 @@ int omapfb_realloc_fbmem(struct omapfb2_device *fbdev, int fbnum, + unsigned old_size = rg->size; + int r; + ++ size = PAGE_ALIGN(size); ++ + omapfb_free_fbmem(fbdev, fbnum); + + if (size == 0) +-- +1.5.6.3 + |