From patchwork Tue Nov 17 10:56:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 324567 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp4066615ils; Tue, 17 Nov 2020 02:57:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQaj1Rk9MQ+wDbqpdXhHxYndOZo4/e0v5Fklfb77q9Wo2YTjqofUU2qJvwxQQnaoLZsK6k X-Received: by 2002:aa7:d94c:: with SMTP id l12mr20491809eds.355.1605610639637; Tue, 17 Nov 2020 02:57:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605610639; cv=none; d=google.com; s=arc-20160816; b=uU/sMBaRNBe9SITrbDXyepcglJCroI+Q33Rz176Y738iSNphicZU3EPHfro+kKQAAr RIs7QadUnbS0OkEyY5EwRVDaoadOnxJdbWrG/uKtZhezzqQcu4nwfGNegsE442Ygmspr MGRRhBaA8B5uZqGnF3O8uNuIic5zVUENrRtycN6Kb6cos+G+6Y8lYRAH2f6CE4ZSM7uR jvz5DWzS0JXFITzPzxvFrC55c26JgjZY9ybpCYcBsdl8QXTP87MZ2IVBPIqj4MkFAxwb I1VgZ/AEiytdkkZovolaqyJzOLk0t0Jy77AXiW9S6kGuqmhxeXaojLkx1gbNf/H9YFMw EW2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9ls1rrDJzgkFi+HLj+7Y+2Kxc/KjoBYF/oSuS633YiQ=; b=a3vyAzLLyQXqn86egG+YZH7+AmWKMUNWJqrMEiE84jzI3JoOjcinMl1AbXHecHvKz3 W7jnBTAeK2hECp49EYtO08bj4fsoB322hGG42lWFDyGUvHMebAHd5hcG8rQRNK9ZpJWv P1g7vsUe6x0gnej0LqvXUC7hyVTCCMIgdlEvgt1PZY9U3WQQKMCKW6r1BjeduaULlRMJ iG2foRKrRiv4anxvbEb3luyCQ32NiN6d3MDarkoZqjRjGtPkvoI7n/zYRl+pWSHYlx4q lAsvhP+dGggdwvCyBCzkBZASwckkmhVSksE3P2eyU5YY6tDsdrjeXBlocqqmwncJIYg+ l61g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yOR2La60; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm25si12962825edb.238.2020.11.17.02.57.19; Tue, 17 Nov 2020 02:57:19 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yOR2La60; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728120AbgKQK4j (ORCPT + 6 others); Tue, 17 Nov 2020 05:56:39 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:34112 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727347AbgKQK4i (ORCPT ); Tue, 17 Nov 2020 05:56:38 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0AHAuYvh117275; Tue, 17 Nov 2020 04:56:34 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1605610594; bh=9ls1rrDJzgkFi+HLj+7Y+2Kxc/KjoBYF/oSuS633YiQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=yOR2La60kAYc+yjxy6XHNbdb7yOsXZ5xcxeXxrTPcalxLOT9HIKaLwRLpaXExZeoc 9PQtg2hJ7uC6Ug7NGVrP3OMXt7COD0qo9JnjhDWWXbhAYgr7kNGKkHB+qftDlOV6Ol UnCDXqYTtUbLECv+N65uoo8cilvRrWCAkqKSJAIA= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0AHAuYBh010214 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 17 Nov 2020 04:56:34 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 17 Nov 2020 04:56:33 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE106.ent.ti.com (10.64.6.27) 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; Tue, 17 Nov 2020 04:56:33 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0AHAu6ts087311; Tue, 17 Nov 2020 04:56:31 -0600 From: Peter Ujfalusi To: , , , CC: , , , , , , , Subject: [PATCH v2 08/19] dmaengine: doc: client: Update for dmaengine_get_dma_device() usage Date: Tue, 17 Nov 2020 12:56:45 +0200 Message-ID: <20201117105656.5236-9-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117105656.5236-1-peter.ujfalusi@ti.com> References: <20201117105656.5236-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Client drivers should use the dmaengine_get_dma_device(chan) to get the device pointer which should be used for DMA API for allocations and mapping. Signed-off-by: Peter Ujfalusi --- Documentation/driver-api/dmaengine/client.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/Documentation/driver-api/dmaengine/client.rst b/Documentation/driver-api/dmaengine/client.rst index 09a3f66dcd26..bfd057b21a00 100644 --- a/Documentation/driver-api/dmaengine/client.rst +++ b/Documentation/driver-api/dmaengine/client.rst @@ -120,7 +120,9 @@ The details of these operations are: .. code-block:: c - nr_sg = dma_map_sg(chan->device->dev, sgl, sg_len); + struct device *dma_dev = dmaengine_get_dma_device(chan); + + nr_sg = dma_map_sg(dma_dev, sgl, sg_len); if (nr_sg == 0) /* error */