]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dmaengine: tegra: Make reset control optional
authorAkhil R <akhilrajeev@nvidia.com>
Tue, 31 Mar 2026 10:22:57 +0000 (15:52 +0530)
committerVinod Koul <vkoul@kernel.org>
Thu, 4 Jun 2026 06:51:19 +0000 (12:21 +0530)
On Tegra264, reset is not available for the driver to control as
this is handled by the boot firmware. Hence make the reset control
optional and update the error message to reflect the correct error.

Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20260331102303.33181-5-akhilrajeev@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra186-gpc-dma.c

index 5948fbf32c21e602676b9b4f10c41da5f3a85c0c..a0522a992ebc988597d49bbe320c57d2c5a713e4 100644 (file)
@@ -1381,10 +1381,10 @@ static int tegra_dma_probe(struct platform_device *pdev)
        if (IS_ERR(tdma->base_addr))
                return PTR_ERR(tdma->base_addr);
 
-       tdma->rst = devm_reset_control_get_exclusive(&pdev->dev, "gpcdma");
+       tdma->rst = devm_reset_control_get_optional_exclusive(&pdev->dev, "gpcdma");
        if (IS_ERR(tdma->rst)) {
                return dev_err_probe(&pdev->dev, PTR_ERR(tdma->rst),
-                             "Missing controller reset\n");
+                             "Failed to get controller reset\n");
        }
        reset_control_reset(tdma->rst);