From: Andi Shyti <andi.shyti@kernel.org>
To: Frank.Li@oss.nxp.com
Cc: Dong Aisheng <aisheng.dong@nxp.com>, Frank Li <Frank.Li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
"open list:FREESCALE IMX LPI2C DRIVER"
<linux-i2c@vger.kernel.org>,
"open list:FREESCALE IMX LPI2C DRIVER" <imx@lists.linux.dev>,
"moderated list:ARM/FREESCALE IMX / MXC / LAYERSCAPE ARM
ARCHIT..." <linux-arm-kernel@lists.infradead.org>,
open list <linux-kernel@vger.kernel.org>,
vkoul@kernel.org
Subject: Re: [PATCH 1/1] i2c: imx-lpi2c: remove dmaengine_desc_free()
Date: Tue, 13 Oct 2026 16:33:54 +0200 [thread overview]
Message-ID: <as5BOk8aLCx_s6_T@zenone.zhora.eu> (raw)
In-Reply-To: <20260929190605.3516147-1-Frank.Li@oss.nxp.com>
Hi Frank,
On Tue, Sep 29, 2026 at 03:06:05PM -0400, Frank.Li@oss.nxp.com wrote:
> From: Frank Li <Frank.Li@nxp.com>
>
> dmaengine_desc_free() is designed for DMA_CTRL_REUSE. If DMA_CTRL_REUSE
> is not set, dmaengine_desc_free() will return -EPERM.
>
> if (!dmaengine_desc_test_reuse(desc))
> return -EPERM;
>
> So calling dmaengine_desc_free() does nothing. dmaengine_terminate_(a)sync()
> will free all already allocated descriptors.
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
pushed to i2c/i2c.
Thanks,
Andi
prev parent reply other threads:[~2026-10-13 14:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 19:06 [PATCH 1/1] i2c: imx-lpi2c: remove dmaengine_desc_free() Frank.Li
2026-10-08 8:09 ` Carlos Song
2026-10-13 14:33 ` Andi Shyti [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=as5BOk8aLCx_s6_T@zenone.zhora.eu \
--to=andi.shyti@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=Frank.Li@oss.nxp.com \
--cc=aisheng.dong@nxp.com \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox