diff options
author | Dustin Marquess <jailbird@alcatraz.fdf.net> | 2007-08-10 17:05:15 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-08-14 01:27:10 -0400 |
commit | b47157f00414f368f2847697ce48b76f1a5e5110 (patch) | |
tree | 6c3d65b1ccf1f8cdce32ebb205e9cb3d1ebbb55a /drivers/net/via-rhine.c | |
parent | 39d3520c92cf7a28c07229ca00cc35a1e8026c77 (diff) |
via-rhine: disable rx_copybreak on archs that don't allow unaligned DMA access
Patch to disable the rx_copybreak feature on hardware architectures that
don't allow unaligned DMA access.
#ifdef code taken from tulip_core.c. Problem pointed out by Ivan
Kokshaysky.
Signed-off-by: Dustin Marquess <jailbird@alcatraz.fdf.net>
Cc: Francois Romieu <romieu@fr.zoreil.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/via-rhine.c')
-rw-r--r-- | drivers/net/via-rhine.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c index c3fe230695a0..b56dff26772d 100644 --- a/drivers/net/via-rhine.c +++ b/drivers/net/via-rhine.c | |||
@@ -42,7 +42,13 @@ static int max_interrupt_work = 20; | |||
42 | 42 | ||
43 | /* Set the copy breakpoint for the copy-only-tiny-frames scheme. | 43 | /* Set the copy breakpoint for the copy-only-tiny-frames scheme. |
44 | Setting to > 1518 effectively disables this feature. */ | 44 | Setting to > 1518 effectively disables this feature. */ |
45 | #if defined(__alpha__) || defined(__arm__) || defined(__hppa__) \ | ||
46 | || defined(CONFIG_SPARC) || defined(__ia64__) \ | ||
47 | || defined(__sh__) || defined(__mips__) | ||
48 | static int rx_copybreak = 1518; | ||
49 | #else | ||
45 | static int rx_copybreak; | 50 | static int rx_copybreak; |
51 | #endif | ||
46 | 52 | ||
47 | /* Work-around for broken BIOSes: they are unable to get the chip back out of | 53 | /* Work-around for broken BIOSes: they are unable to get the chip back out of |
48 | power state D3 so PXE booting fails. bootparam(7): via-rhine.avoid_D3=1 */ | 54 | power state D3 so PXE booting fails. bootparam(7): via-rhine.avoid_D3=1 */ |