From: AngeloGioacchino Del Regno Date: Thu, 13 Nov 2025 12:22:27 +0000 (+0100) Subject: dmaengine: mediatek: mtk-uart-apdma: Rename support_33bits to support_ext_addr X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cb173936858f2278d9cf8b2f5d7d52fd000e54e;p=thirdparty%2Flinux.git dmaengine: mediatek: mtk-uart-apdma: Rename support_33bits to support_ext_addr 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 Link: https://patch.msgid.link/20251113122229.23998-7-angelogioacchino.delregno@collabora.com Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/mediatek/mtk-uart-apdma.c b/drivers/dma/mediatek/mtk-uart-apdma.c index 820422cd6942..3829c05a12fd 100644 --- a/drivers/dma/mediatek/mtk-uart-apdma.c +++ b/drivers/dma/mediatek/mtk-uart-apdma.c @@ -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)