]> err.no Git - linux-2.6/commitdiff
Blackfin arch: ISP1761 doesn't work for USB flash disk
authorAubrey Li <aubrey.li@analog.com>
Mon, 21 May 2007 10:09:11 +0000 (18:09 +0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 21 May 2007 16:50:21 +0000 (09:50 -0700)
ZONE_DMA is required for some drivers subsystem, such as USB/SCSI.

Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/blackfin/Kconfig
arch/blackfin/mm/init.c

index d80e5b1d686e2319178b4dd94cf9801938ca1777..35b33a44677b7239742bda41c99ce8874a674750 100644 (file)
@@ -25,6 +25,10 @@ config BLACKFIN
        bool
        default y
 
+config ZONE_DMA
+       bool
+       default y
+
 config BFIN
        bool
        default y
index 73f72abed432a86aee0bd4e7308dd71c8467c9e3..d6cf1059560dc5caf39e1128b25e3b7a3b6b4564 100644 (file)
@@ -116,7 +116,8 @@ void paging_init(void)
        {
                unsigned long zones_size[MAX_NR_ZONES] = { 0, };
 
-               zones_size[ZONE_NORMAL] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT;
+               zones_size[ZONE_DMA] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT;
+               zones_size[ZONE_NORMAL] = 0;
 #ifdef CONFIG_HIGHMEM
                zones_size[ZONE_HIGHMEM] = 0;
 #endif