diff options
author | Michael Buesch <mb@bu3sch.de> | 2009-04-06 05:52:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-06 20:51:29 -0400 |
commit | 37efa239901493694a48f1d6f59f8de17c2c4509 (patch) | |
tree | 92e673b2459eef6b35218e306248a4b6e949715c /drivers/net/b44.c | |
parent | 35a7433c789ba6df6d96b70fa745ae9e6cac0038 (diff) |
b44: Use kernel DMA addresses for the kernel DMA API
We must not use the device DMA addresses for the kernel DMA API, because
device DMA addresses have an additional offset added for the SSB translation.
Use the original dma_addr_t for the sync operation.
Cc: stable@kernel.org
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/b44.c')
-rw-r--r-- | drivers/net/b44.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 95698c6db50f..17b2750d21de 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -750,7 +750,7 @@ static void b44_recycle_rx(struct b44 *bp, int src_idx, u32 dest_idx_unmasked) | |||
750 | dest_idx * sizeof(*dest_desc), | 750 | dest_idx * sizeof(*dest_desc), |
751 | DMA_BIDIRECTIONAL); | 751 | DMA_BIDIRECTIONAL); |
752 | 752 | ||
753 | ssb_dma_sync_single_for_device(bp->sdev, le32_to_cpu(src_desc->addr), | 753 | ssb_dma_sync_single_for_device(bp->sdev, dest_map->mapping, |
754 | RX_PKT_BUF_SZ, | 754 | RX_PKT_BUF_SZ, |
755 | DMA_FROM_DEVICE); | 755 | DMA_FROM_DEVICE); |
756 | } | 756 | } |