From patchwork Fri Oct 23 09:46:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 318925 Delivered-To: patch@linaro.org Received: by 2002:a92:d1d1:0:0:0:0:0 with SMTP id u17csp367355ilg; Fri, 23 Oct 2020 05:05:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9wRNAm8BlYlY3mL4szvkvuG5SPEuCbzo1XM8GVlPzpxQD1TjDyvo8E25zIvSrvv8GwlaT X-Received: by 2002:a65:5784:: with SMTP id b4mr1703540pgr.217.1603454711868; Fri, 23 Oct 2020 05:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603454711; cv=none; d=google.com; s=arc-20160816; b=AH1nCbemiVU1Welcn7+uBdvgnEuhtisoDuG1FUQyZG4Ke6QZQxmAN9QxNsK1bk7/9g xRmwnJjC2E8JgaWasFOe0ibwGkNY6dG0ZG4MasymY5ooCxYjjPkeIhB6JcUDwvRfHLMb PiKucTGhdz+ExiIcXYjvqTgPAOBQM3UN0+ESR5O31TZg3Q/Xm7WmRNKUGJswi/XwyZvB UxkEiumRedWcB0prWBvavTKrfMu13b6ORX3Pv/b9V4vcFKcFIbYXqEMXPICScTKXxDG/ O4iYT707H6B/2dtBtafyNqn/JQeNbynWxpmJ2LrHWo66OPRhlQDo9rR+SuH83fi4XKMN utJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=0QLT+/Bj/5L6HI944aZfAmOYlqKsbZYNRXwdTAO0ANs=; b=ot53oIMFPF1zOZC05u+c966P9uGbVwW8yErDEe6hFsNvMSd0cQjvY8EU3yIfhdwJ8a Gjh+JUQoqwA60vm5JwPrTIUUpaDG/KpgxVOZX5oh6wM4AqpZjOLp6taSAsItdsgldIws X3fU1IOE/H6qhcm9RZ4y3uSYCzn73ggYMO3fw0gREzIXGeNJ2lxWfiLDBSt7/aIJYJ8R xOANt4J43hTGOeeD6wUE5zhiu1CcPfFBYtU8xcSmupvng/n3FrCQw8xRHI7ClV9DOefe Kt8vP0BHsKj/FqUadFDYozZ4uR+Q7INTOz7TGg1g1Ydv2smmTiAcfJMB3Np+xRUYODXM 4FcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=c1tHVgdT; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id g4si1127309plt.129.2020.10.23.05.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 05:05:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=c1tHVgdT; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EC8056E50C; Fri, 23 Oct 2020 12:05:09 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 8369 seconds by postgrey-1.36 at gabe; Fri, 23 Oct 2020 12:05:08 UTC Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by gabe.freedesktop.org (Postfix) with ESMTPS id D58F46E50C for ; Fri, 23 Oct 2020 12:05:08 +0000 (UTC) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 09N9jXjC079273; Fri, 23 Oct 2020 04:45:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1603446333; bh=vd/rQ8Z51OitxruTppvHsOzxNO2Z78PVRSBR/5M5zMk=; h=From:To:CC:Subject:Date; b=c1tHVgdTnRhcXT9gX9bvJRksoPbgIC5b1dTUMDWlbmmg/qfB//8HmH6b8NwPPrRpH +x5fA3AEkbGkdmx8dvKTmHPpcFNzmHxeyIsTRxm1yWru6kvwDMGrsgATH+SnWyU/Jp uMZ9pTiBJMoFAJ6xs7dQbZSc2WStqShwA6q4awN8= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 09N9jXcw091988 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 23 Oct 2020 04:45:33 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 23 Oct 2020 04:45:32 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 23 Oct 2020 04:45:32 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 09N9jUfl007401; Fri, 23 Oct 2020 04:45:30 -0500 From: Peter Ujfalusi To: , , , Subject: [PATCH] drm: xlnx: Use dma_request_chan for DMA channel request Date: Fri, 23 Oct 2020 12:46:02 +0300 Message-ID: <20201023094602.5630-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" There is no need to use the of_dma_request_slave_channel() directly as dma_request_chan() is going to try to get the channel via OF as well. Signed-off-by: Peter Ujfalusi --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Sam Ravnborg diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c index 98bd48f13fd1..a4405d081aca 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_disp.c +++ b/drivers/gpu/drm/xlnx/zynqmp_disp.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include @@ -1316,8 +1315,7 @@ static int zynqmp_disp_layer_request_dma(struct zynqmp_disp *disp, snprintf(dma_channel_name, sizeof(dma_channel_name), "%s%u", dma_names[layer->id], i); - dma->chan = of_dma_request_slave_channel(disp->dev->of_node, - dma_channel_name); + dma->chan = dma_request_chan(disp->dev, dma_channel_name); if (IS_ERR(dma->chan)) { dev_err(disp->dev, "failed to request dma channel\n"); ret = PTR_ERR(dma->chan);