File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
drivers/net/ethernet/mediatek Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1585,15 +1585,14 @@ static int airoha_qdma_init_rx_queue(struct airoha_eth *eth,
1585
1585
1586
1586
static void airoha_qdma_cleanup_rx_queue (struct airoha_queue * q )
1587
1587
{
1588
- enum dma_data_direction dir = page_pool_get_dma_dir (q -> page_pool );
1589
1588
struct airoha_eth * eth = q -> eth ;
1590
1589
1591
1590
while (q -> queued ) {
1592
1591
struct airoha_queue_entry * e = & q -> entry [q -> tail ];
1593
1592
struct page * page = virt_to_head_page (e -> buf );
1594
1593
1595
1594
dma_sync_single_for_cpu (eth -> dev , e -> dma_addr , e -> dma_len ,
1596
- dir );
1595
+ page_pool_get_dma_dir ( q -> page_pool ) );
1597
1596
page_pool_put_full_page (q -> page_pool , page , false);
1598
1597
q -> tail = (q -> tail + 1 ) % q -> ndesc ;
1599
1598
q -> queued -- ;
You can’t perform that action at this time.
0 commit comments