From: Aubrey Li Date: Mon, 21 May 2007 10:09:11 +0000 (+0800) Subject: Blackfin arch: ISP1761 doesn't work for USB flash disk X-Git-Tag: v2.6.22-rc3~154 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3defffe915961cf9c6e1f16486ae83fb7212f29;p=linux-2.6 Blackfin arch: ISP1761 doesn't work for USB flash disk ZONE_DMA is required for some drivers subsystem, such as USB/SCSI. Signed-off-by: Aubrey Li Signed-off-by: Bryan Wu Signed-off-by: Linus Torvalds --- diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index d80e5b1d68..35b33a4467 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig @@ -25,6 +25,10 @@ config BLACKFIN bool default y +config ZONE_DMA + bool + default y + config BFIN bool default y diff --git a/arch/blackfin/mm/init.c b/arch/blackfin/mm/init.c index 73f72abed4..d6cf105956 100644 --- a/arch/blackfin/mm/init.c +++ b/arch/blackfin/mm/init.c @@ -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