.. | .. |
---|
107 | 107 | * struct mtk_hsdma_pdesc - This is the struct holding info describing physical |
---|
108 | 108 | * descriptor (PD) and its placement must be kept at |
---|
109 | 109 | * 4-bytes alignment in little endian order. |
---|
110 | | - * @desc[1-4]: The control pad used to indicate hardware how to |
---|
111 | | - * deal with the descriptor such as source and |
---|
112 | | - * destination address and data length. The maximum |
---|
113 | | - * data length each pdesc can handle is 0x3f80 bytes |
---|
| 110 | + * @desc1: | The control pad used to indicate hardware how to |
---|
| 111 | + * @desc2: | deal with the descriptor such as source and |
---|
| 112 | + * @desc3: | destination address and data length. The maximum |
---|
| 113 | + * @desc4: | data length each pdesc can handle is 0x3f80 bytes |
---|
114 | 114 | */ |
---|
115 | 115 | struct mtk_hsdma_pdesc { |
---|
116 | 116 | __le32 desc1; |
---|
.. | .. |
---|
325 | 325 | * and [MTK_DMA_SIZE ... 2 * MTK_DMA_SIZE - 1] is for RX ring. |
---|
326 | 326 | */ |
---|
327 | 327 | pc->sz_ring = 2 * MTK_DMA_SIZE * sizeof(*ring->txd); |
---|
328 | | - ring->txd = dma_zalloc_coherent(hsdma2dev(hsdma), pc->sz_ring, |
---|
329 | | - &ring->tphys, GFP_NOWAIT); |
---|
| 328 | + ring->txd = dma_alloc_coherent(hsdma2dev(hsdma), pc->sz_ring, |
---|
| 329 | + &ring->tphys, GFP_NOWAIT); |
---|
330 | 330 | if (!ring->txd) |
---|
331 | 331 | return -ENOMEM; |
---|
332 | 332 | |
---|