]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dmaengine: mediatek: mtk-uart-apdma: Rename support_33bits to support_ext_addr
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 13 Nov 2025 12:22:27 +0000 (13:22 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 23 Dec 2025 11:01:24 +0000 (16:31 +0530)
In preparation for adding support for SoCs with APDMA IP versions
supporting more than 33 bits addressing, rename the support_33bits
variable to support_ext_addr to signal support for extended, above
4GB, addressing.

This change is cosmetic only, and brings no functional differences.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20251113122229.23998-7-angelogioacchino.delregno@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/mediatek/mtk-uart-apdma.c

index 820422cd6942c86b897642cebba81ec6ac469143..3829c05a12fd0707c48d31751096be32712f7fa3 100644 (file)
@@ -77,7 +77,7 @@
 struct mtk_uart_apdmadev {
        struct dma_device ddev;
        struct clk *clk;
-       bool support_33bits;
+       bool support_ext_addr;
        unsigned int dma_requests;
 };
 
@@ -148,7 +148,7 @@ static void mtk_uart_apdma_start_tx(struct mtk_chan *c)
                mtk_uart_apdma_write(c, VFF_WPT, 0);
                mtk_uart_apdma_write(c, VFF_INT_FLAG, VFF_TX_INT_CLR_B);
 
-               if (mtkd->support_33bits)
+               if (mtkd->support_ext_addr)
                        mtk_uart_apdma_write(c, VFF_ADDR2, upper_32_bits(d->addr));
        }
 
@@ -191,7 +191,7 @@ static void mtk_uart_apdma_start_rx(struct mtk_chan *c)
                mtk_uart_apdma_write(c, VFF_RPT, 0);
                mtk_uart_apdma_write(c, VFF_INT_FLAG, VFF_RX_INT_CLR_B);
 
-               if (mtkd->support_33bits)
+               if (mtkd->support_ext_addr)
                        mtk_uart_apdma_write(c, VFF_ADDR2, upper_32_bits(d->addr));
        }
 
@@ -297,7 +297,7 @@ static int mtk_uart_apdma_alloc_chan_resources(struct dma_chan *chan)
                goto err_pm;
        }
 
-       if (mtkd->support_33bits)
+       if (mtkd->support_ext_addr)
                mtk_uart_apdma_write(c, VFF_ADDR2, VFF_ADDR2_CLR_B);
 
 err_pm:
@@ -495,7 +495,7 @@ static int mtk_uart_apdma_probe(struct platform_device *pdev)
 
        bit_mask = (unsigned int)(uintptr_t)of_device_get_match_data(&pdev->dev);
        if (bit_mask > 32)
-               mtkd->support_33bits = true;
+               mtkd->support_ext_addr = true;
 
        rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(bit_mask));
        if (rc)