From patchwork Wed Sep 30 09:13:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 313856 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:1081:0:0:0:0 with SMTP id r1csp21136ilj; Wed, 30 Sep 2020 02:14:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyocAPdGm9ZEQE+VvY4zr4DbdAtwA7iIwLmMAx8/j4WU3CgypIkFMfc5NlMpuC3QU79CHO6 X-Received: by 2002:a17:906:6855:: with SMTP id a21mr1238082ejs.289.1601457257155; Wed, 30 Sep 2020 02:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601457257; cv=none; d=google.com; s=arc-20160816; b=da2A9Bb3pHbQhfgyazLM/OH0S9d1BsloHvpg56aH3p3UL/LGT+bjVDDXDS9drD6wo+ CgrjUIASesQqpqSaqvMFKTQn1EQcJLgomQom8ETwyN1PlcTnN/CSSv1zJjkeg2FvE9dW 2N8DW3fzmmfiLs7rRheIgRo1DDoKUWHdgNvfmHcIjr5qRPkiWCLAWx3gDccrM6rGLtx+ nQ/w135ONQQaD+oqW0meJ5ivuxgWKLQG2IfTJcY16JJgO6C3VApvsauhsFAxk25p9zV+ 31BEZ3T3zcMfnornFvbXcv68nF5Denu7P8nUuo/giDkYzfwuQzbFeZmSS4Q/wv3FyXXa BjXA== 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=Z6hCh6g8XrFst+SA6v4z6LT8e6GS3MraEBiKzCWryIyJlziWnVNC22aLec7sS7hmnI /JbXn1tEtUderC39NhNEDgVG+MuZ4F5HVJSz8/ic9udvaHIuCsMUQdLEsJx5qyC/UUX6 qHVtWmUxjY7pm6OK904cneL7I7/QjHAdoF/lKqJ5wGQgvSm36G1TQCs9STFLmjRx9yf1 3n+NUAJaJJSaKZgX/f3LhxSyDzoiAhmmFulA+HbHPeqG9AtG57F6SJVLg20ZYnIx1UGS lAIzNOWrwvV83DgKkt2HcjkBElUiF/icao6xTXiERdt7GXaf8qdq9zAncCun3SU7NkF8 CMsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=h4YVWUGn; 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 m17si572171edj.540.2020.09.30.02.14.16; Wed, 30 Sep 2020 02:14:17 -0700 (PDT) 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=h4YVWUGn; 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 S1728897AbgI3JOP (ORCPT + 6 others); Wed, 30 Sep 2020 05:14:15 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:35044 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728851AbgI3JOO (ORCPT ); Wed, 30 Sep 2020 05:14:14 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 08U9E8Lt034919; Wed, 30 Sep 2020 04:14:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1601457248; bh=9ls1rrDJzgkFi+HLj+7Y+2Kxc/KjoBYF/oSuS633YiQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=h4YVWUGnaERUkgr9ax/6yF+JlLziWtlqgMuccKJde2vzkzSVeo+w5rbLzvSQ3yqTY p/u/ILnwxWWJkpxfjRUodFWJ732d1NMqqMqHXLkjAYI9/3kEDg/bliUC/q48cuB5rT dwntlTwH9ly70cB4KZOdB5G4zan6AUwMcUoI9uQk= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 08U9E88M049189 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 30 Sep 2020 04:14:08 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 30 Sep 2020 04:14:08 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE102.ent.ti.com (157.170.170.32) 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; Wed, 30 Sep 2020 04:14:08 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 08U9DuJa116385; Wed, 30 Sep 2020 04:14:05 -0500 From: Peter Ujfalusi To: , , , , CC: , , , , , , Subject: [PATCH 03/18] dmaengine: doc: client: Update for dmaengine_get_dma_device() usage Date: Wed, 30 Sep 2020 12:13:57 +0300 Message-ID: <20200930091412.8020-4-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200930091412.8020-1-peter.ujfalusi@ti.com> References: <20200930091412.8020-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 */