linux/drivers/net/arm
Mika Westerberg 1f758a4341 net: ep93xx_eth: drop GFP_DMA from call to dma_alloc_coherent()
Commit a197b59ae6 (mm: fail GFP_DMA allocations when ZONE_DMA is not
configured) made page allocator to return NULL if GFP_DMA is set but
CONFIG_ZONE_DMA is disabled.

This causes ep93xx_eth to fail:

 WARNING: at mm/page_alloc.c:2251 __alloc_pages_nodemask+0x11c/0x638()
 Modules linked in:
 [<c0035498>] (unwind_backtrace+0x0/0xf4) from [<c0043da4>] (warn_slowpath_common+0x48/0x60)
 [<c0043da4>] (warn_slowpath_common+0x48/0x60) from [<c0043dd8>] (warn_slowpath_null+0x1c/0x24)
 [<c0043dd8>] (warn_slowpath_null+0x1c/0x24) from [<c0083b6c>] (__alloc_pages_nodemask+0x11c/0x638)
 [<c0083b6c>] (__alloc_pages_nodemask+0x11c/0x638) from [<c00366fc>] (__dma_alloc+0x8c/0x3ec)
 [<c00366fc>] (__dma_alloc+0x8c/0x3ec) from [<c0036adc>] (dma_alloc_coherent+0x54/0x60)
 [<c0036adc>] (dma_alloc_coherent+0x54/0x60) from [<c0227808>] (ep93xx_open+0x20/0x864)
 [<c0227808>] (ep93xx_open+0x20/0x864) from [<c0283144>] (__dev_open+0xb8/0x108)
 [<c0283144>] (__dev_open+0xb8/0x108) from [<c0280528>] (__dev_change_flags+0x70/0x128)
 [<c0280528>] (__dev_change_flags+0x70/0x128) from [<c0283054>] (dev_change_flags+0x10/0x48)
 [<c0283054>] (dev_change_flags+0x10/0x48) from [<c001a720>] (ip_auto_config+0x190/0xf68)
 [<c001a720>] (ip_auto_config+0x190/0xf68) from [<c00233b0>] (do_one_initcall+0x34/0x18c)
 [<c00233b0>] (do_one_initcall+0x34/0x18c) from [<c0008400>] (kernel_init+0x94/0x134)
 [<c0008400>] (kernel_init+0x94/0x134) from [<c0030858>] (kernel_thread_exit+0x0/0x8)

Since there is no restrictions for DMA on ep93xx, we can fix this by just
removing the GFP_DMA flag from the call.

Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Tested-by: Petr Stetiar <ynezz@true.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-06-11 16:25:16 -07:00
..
am79c961a.c NET: am79c961: fix assembler warnings 2011-06-11 15:56:01 -07:00
am79c961a.h am79c961a: Use net_device_stats from struct net_device 2010-08-17 02:32:55 -07:00
at91_ether.c net: trans_start cleanups 2010-05-10 05:01:31 -07:00
at91_ether.h
ep93xx_eth.c net: ep93xx_eth: drop GFP_DMA from call to dma_alloc_coherent() 2011-06-11 16:25:16 -07:00
ether1.c ether1: Use net_device_stats from struct net_device 2010-08-19 00:12:38 -07:00
ether1.h ether1: Use net_device_stats from struct net_device 2010-08-19 00:12:38 -07:00
ether3.c ether3: Use net_device_stats from struct net_device 2010-08-19 00:12:38 -07:00
ether3.h ether3: Use net_device_stats from struct net_device 2010-08-19 00:12:38 -07:00
etherh.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2011-05-20 13:43:21 -07:00
ixp4xx_eth.c ptp: Added a clock driver for the IXP46x. 2011-05-23 13:10:19 -07:00
Kconfig ARM: 5865/1: nuc900 ethernet driver needs mii 2010-01-05 20:53:07 +00:00
ks8695net.c ethtool: cosmetic: Use ethtool ethtool_cmd_speed API 2011-04-29 14:03:01 -07:00
ks8695net.h
Makefile Add mac driver for w90p910 2009-07-20 07:45:05 -07:00
w90p910_ether.c drivers/net: normalize TX_TIMEOUT 2010-11-09 09:17:56 -08:00