ath9k_hw: Move code which populates ds_data to ath9k_hw
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
162c3be378
commit
3f3a1c8031
@@ -220,10 +220,13 @@ EXPORT_SYMBOL(ath9k_hw_stoptxdma);
|
||||
|
||||
void ath9k_hw_filltxdesc(struct ath_hw *ah, struct ath_desc *ds,
|
||||
u32 segLen, bool firstSeg,
|
||||
bool lastSeg, const struct ath_desc *ds0)
|
||||
bool lastSeg, const struct ath_desc *ds0,
|
||||
dma_addr_t buf_addr)
|
||||
{
|
||||
struct ar5416_desc *ads = AR5416DESC(ds);
|
||||
|
||||
ads->ds_data = buf_addr;
|
||||
|
||||
if (firstSeg) {
|
||||
ads->ds_ctl1 |= segLen | (lastSeg ? 0 : AR_TxMore);
|
||||
} else if (lastSeg) {
|
||||
|
Reference in New Issue
Block a user