forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/dma/mediatek/mtk-hsdma.c
....@@ -107,10 +107,10 @@
107107 * struct mtk_hsdma_pdesc - This is the struct holding info describing physical
108108 * descriptor (PD) and its placement must be kept at
109109 * 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
114114 */
115115 struct mtk_hsdma_pdesc {
116116 __le32 desc1;
....@@ -325,8 +325,8 @@
325325 * and [MTK_DMA_SIZE ... 2 * MTK_DMA_SIZE - 1] is for RX ring.
326326 */
327327 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);
330330 if (!ring->txd)
331331 return -ENOMEM;
332332