From patchwork Tue Dec 8 09:04:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 339722 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp3619134ejs; Tue, 8 Dec 2020 01:07:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJySEDUG+9mBdcuMqFQZ4tl6Jr4PJJ83JrQwHSPQ/YZ9bTH7NdPWqoBokkjjbzxNVdyWIQ+4 X-Received: by 2002:aa7:d3d4:: with SMTP id o20mr18593811edr.190.1607418464101; Tue, 08 Dec 2020 01:07:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607418464; cv=none; d=google.com; s=arc-20160816; b=DUQ4JdZLRd/w6OATnTKiROHsdSMv98HY27uiXbzmvB5+ZKbWK1Jy92I3K2h6N+74Cx hB0wl38OSBYvH3PVuaqC0aC6Nfnb2yixj/uTPLoyHxFPRJnkYOjdyoEya32Wdtnc5vTT ec3JfUnvj7waSFxLzmTuOfhI+Xkeh6CLne5AgA3bwiXN2Utl4PEiDDmufrKPLtB1Wpxh Mw0jPCueEtzY9OSjNv1QBcHBxmQSr24z9Ig9IU7vbV7gk3x5Efnl+aSTs9uWvnsq5Pnt 6bgP7POh2cXYqfX6r5BeywZgWJH05HqMX+4PjVGqCB8Mj7zd+tv1kx6p29j3vzZksKD/ MUeA== 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=wUnyKxozvKnJqcjhaLQXxpBvm+zQXYfpV+owoNntsh6ZWv8vYbekMTcCW/XzLrzo3M MML3LX1BVQiUFPHdLpepSVeBKSZUxw/MpcB79YUMHEATonWI58JuEOhysj42QowPkk1E o42NaPmV8fTG5trHQXe6EnyP82/SjjH8yibeh7nybW+b6lvehd9rFCOm8OIzCnj+fGnG hCLTIJWb4bGde4uBxolnGLz5olx8wVrgDjrDjC+SRS70xPZXzzvZkDOAgizHuI96IaoD oPG1cSF6LhfO8x8JwvgbXckwiUv//8F91AIwkAkJ1cHBUdoKjDwosOM+sa4EiG2LxCu4 rv7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NYd9ScEK; 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 o18si9973884edz.265.2020.12.08.01.07.43; Tue, 08 Dec 2020 01:07:44 -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=NYd9ScEK; 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 S1728820AbgLHJGA (ORCPT + 6 others); Tue, 8 Dec 2020 04:06:00 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:51800 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728794AbgLHJF7 (ORCPT ); Tue, 8 Dec 2020 04:05:59 -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 0B894JcZ130400; Tue, 8 Dec 2020 03:04:19 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1607418259; bh=9ls1rrDJzgkFi+HLj+7Y+2Kxc/KjoBYF/oSuS633YiQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NYd9ScEKCnvXEjDt7/t4AOoD7r9DtvliYFb0d+g3bpLbES+YDaHEa7JM2EecCHOaT 3rAYOxwbPCpeMmADB5DPukPk+vzjiy4dd5lMIa+16DD1pUuB3Rs/JCuOingZRiD3M6 7wlG5mYeOFSzXy81b6v3nf9bVYH0jflvvz3PIV4k= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0B894JIX044251 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Dec 2020 03:04:19 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 8 Dec 2020 03:04:18 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE112.ent.ti.com (157.170.170.23) 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, 8 Dec 2020 03:04:18 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0B893dcE120112; Tue, 8 Dec 2020 03:04:15 -0600 From: Peter Ujfalusi To: , , , CC: , , , , , , , Subject: [PATCH v3 09/20] dmaengine: doc: client: Update for dmaengine_get_dma_device() usage Date: Tue, 8 Dec 2020 11:04:29 +0200 Message-ID: <20201208090440.31792-10-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201208090440.31792-1-peter.ujfalusi@ti.com> References: <20201208090440.31792-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 */