aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2006-03-28 02:16:49 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-28 20:02:36 -0500
commit6728a8e2e180b96ac7940dd4d766c52f8e177717 (patch)
treed29f63bb0b6ee3560d12f21dc7431207508704ab /drivers
parent008652b337364ee994a0cd71d88a0fe9f00fc7ca (diff)
[TG3]: Fix bug in 40-bit DMA workaround code
Need to check the TG3_FLAG_40BIT_DMA_BUG flag in the workaround code path instead of device flags. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/tg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index c41dbb0e8f14..0fafc5264627 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -3600,7 +3600,7 @@ static inline int tg3_40bit_overflow_test(struct tg3 *tp, dma_addr_t mapping,
3600 int len) 3600 int len)
3601{ 3601{
3602#if defined(CONFIG_HIGHMEM) && (BITS_PER_LONG == 64) 3602#if defined(CONFIG_HIGHMEM) && (BITS_PER_LONG == 64)
3603 if (tp->tg3_flags2 & TG3_FLG2_5780_CLASS) 3603 if (tp->tg3_flags & TG3_FLAG_40BIT_DMA_BUG)
3604 return (((u64) mapping + len) > DMA_40BIT_MASK); 3604 return (((u64) mapping + len) > DMA_40BIT_MASK);
3605 return 0; 3605 return 0;
3606#else 3606#else