Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2493181imj; Mon, 11 Feb 2019 03:55:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ39tojii7AJmVlKKUqklLJjw67ZDYZZr48MbpfXF3/K+WacJFqP/j1X5KW+4ujf0WIagiE X-Received: by 2002:aa7:84c7:: with SMTP id x7mr27579519pfn.180.1549886133110; Mon, 11 Feb 2019 03:55:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549886133; cv=none; d=google.com; s=arc-20160816; b=LMgeG6h3w18YCfDeFFM9Ktefwg+e+D6O0S3R8ySQq4BVu3Wbat+lNFh2sG8TtAtvLC ceHaeKdVesZH1V08nT3rhUClQnq16jT8aINR7JH8Z73DSSZq36jq8nDcDXhPhq1+ikql mSbUfdAGcFE3YDU1LrKF3dqHwrKZqWWcKOchkZyZwPhwEjucpeYs2dNtn11yF7O23/Fh vaMXLiDT3yjUXBeT1pnLU7GaOvU/wOuyAdsxhzhHomdZP3KUNozdhHXudq/KY9GB5pTK 3v4XEWttZm2hGKEN8ovevd1N05ajb0hv8FHHRJGuDW9hUsexdTfWkGoSr6Uzo/1jSTuq 7yZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+kiV9FqbdDY5enOpX43+BEtRukfk7CXaqjZ90Db6fj8=; b=nXRHUL/+Uu921Ox/LGarMWhz5DGH+isrLNBEiTPp/g/gOR++WVZKbieIyWj5kUD4Fs /xKT1bt+egdCgfynR6D84BrmLwK3kZKyMpVdNpGmBnQ9jf1L6rnsYTbVGJzmmJmuJFZY 1FS42wYAq5U7Zo4pwM+M09UkV5CzBqsEBnHDCW/2Qh5CzM640IrcSEbffAotDOGqxh4s zy+MD9esV/7/ewsFXl8Tx9m2ccXfw68fv02UAA2if8iS3qCWD2nvKeY41VNnqk/LOlaH BksmV8Cs5jXxh5Ti+79sxPmeJv30s+jO//LdknL8XfEL+ZixlXtdWpxNtPLyftn2lONw H22g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rrTffWYt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d30si9455681pla.74.2019.02.11.03.55.16; Mon, 11 Feb 2019 03:55:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rrTffWYt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727013AbfBKLyV (ORCPT + 99 others); Mon, 11 Feb 2019 06:54:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:59696 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfBKLyV (ORCPT ); Mon, 11 Feb 2019 06:54:21 -0500 Received: from localhost (unknown [117.99.91.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AF555218D8; Mon, 11 Feb 2019 11:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549886060; bh=dY8kG7M54C9GaRFVgyghhQqHS148kHOPnRoTMzI1WjU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rrTffWYt1X3OzHT+ofZq5QjdvKnRBKNkNTy8DHzcyIWjWKMdtJ92z+RFaiJ+H3h1K gDvvbpbeHAQWpEdSrYtM20huA7LnJp0lewi50AyE+LMOtw6Tx6JnDVh0BAjjomZOwR ba25UINhKH/Yvg1ZK1VntrUd+vpYceVVijRCufTU= Date: Mon, 11 Feb 2019 17:24:11 +0530 From: Vinod Koul To: Federico Vaga Cc: Jonathan Corbet , dmaengine@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] doc:dmaengine: clarify DMA desc. pointer after submission Message-ID: <20190211115411.GR4296@vkoul-mobl> References: <20190208153038.23272-1-federico.vaga@cern.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190208153038.23272-1-federico.vaga@cern.ch> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08-02-19, 16:30, Federico Vaga wrote: > It clarifies that the DMA description pointer returned by > `dmaengine_prep_*` function should not be used after submission. > > Signed-off-by: Federico Vaga > --- > Documentation/driver-api/dmaengine/client.rst | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/driver-api/dmaengine/client.rst b/Documentation/driver-api/dmaengine/client.rst > index fbbb2831f29f..d728e50105eb 100644 > --- a/Documentation/driver-api/dmaengine/client.rst > +++ b/Documentation/driver-api/dmaengine/client.rst > @@ -168,6 +168,13 @@ The details of these operations are: > dmaengine_submit() will not start the DMA operation, it merely adds > it to the pending queue. For this, see step 5, dma_async_issue_pending. > > + .. note:: > + > + After calling ``dmaengine_submit()`` the submitted transfer descriptor > + (``struct dma_async_tx_descriptor``) belongs to the DMA engine. > + Consequentially, the client must consider invalid the pointer to that Consequently > + descriptor. > + Applied after fixing the typo and added tag as Documentation: dmaengine... > 5. Issue pending DMA requests and wait for callback notification > > The transactions in the pending queue can be activated by calling the > -- > 2.15.0 -- ~Vinod