projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
008652b
)
[TG3]: Fix bug in 40-bit DMA workaround code
author
Michael Chan
<mchan@broadcom.com>
Tue, 28 Mar 2006 07:16:49 +0000
(23:16 -0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 29 Mar 2006 01:02:36 +0000
(17:02 -0800)
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>
drivers/net/tg3.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tg3.c
b/drivers/net/tg3.c
index c41dbb0e8f140f2e47ca1031ec58653f845d85d5..0fafc5264627a607a5b453dc82939a50e027051f 100644
(file)
--- 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,
int len)
{
#if defined(CONFIG_HIGHMEM) && (BITS_PER_LONG == 64)
- if (tp->tg3_flags
2 & TG3_FLG2_5780_CLASS
)
+ if (tp->tg3_flags
& TG3_FLAG_40BIT_DMA_BUG
)
return (((u64) mapping + len) > DMA_40BIT_MASK);
return 0;
#else