DMA Engine development
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@oss.nxp.com>
To: Tian Xuechen <202300460064@mail.sdu.edu.cn>
Cc: vkoul@kernel.org, Frank.Li@kernel.org, dmaengine@vger.kernel.org,
	amelie.delaunay@foss.st.com, mcoquelin.stm32@gmail.com,
	alexandre.torgue@foss.st.com, cedric.madianga@gmail.com,
	pierre-yves.mordret@st.com,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3 5/7] dmaengine: stm32: Disable manual bind and unbind
Date: Fri, 4 Dec 2026 11:56:37 -0600	[thread overview]
Message-ID: <axL-1Vi6ze3ZM5K1@SMW015318> (raw)
In-Reply-To: <20261204121630.1720746-6-202300460064@mail.sdu.edu.cn>

On Fri, Dec 04, 2026 at 08:16:28PM +0800, Tian Xuechen wrote:
> STM32 DMAMUX routes peripheral requests to the STM32 DMA controller,
> and STM32 DMA and MDMA channels can be chained. The three built-in
> drivers are not designed to be unbound while those paths are in use.
>
> Set suppress_bind_attrs on all three platform drivers to disable
> manual bind and unbind through sysfs.
>
> Suggested-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
> Link: https://lore.kernel.org/r/f2a156ee-55d4-4a00-ac75-bb51f1785a9d@foss.st.com
> Signed-off-by: Tian Xuechen <202300460064@mail.sdu.edu.cn>
> ---

This difference purpose patch. You'd better send seperately.

Reviewed-by: Frank Li <Frank.Li@nxp.com>

>  drivers/dma/stm32/stm32-dma.c    | 1 +
>  drivers/dma/stm32/stm32-dmamux.c | 1 +
>  drivers/dma/stm32/stm32-mdma.c   | 1 +
>  3 files changed, 3 insertions(+)
>
> diff --git a/drivers/dma/stm32/stm32-dma.c b/drivers/dma/stm32/stm32-dma.c
> index 4688cebaf..f34e5e36f 100644
> --- a/drivers/dma/stm32/stm32-dma.c
> +++ b/drivers/dma/stm32/stm32-dma.c
> @@ -1764,6 +1764,7 @@ static const struct dev_pm_ops stm32_dma_pm_ops = {
>  static struct platform_driver stm32_dma_driver = {
>  	.driver = {
>  		.name = "stm32-dma",
> +		.suppress_bind_attrs = true,
>  		.of_match_table = stm32_dma_of_match,
>  		.pm = &stm32_dma_pm_ops,
>  	},
> diff --git a/drivers/dma/stm32/stm32-dmamux.c b/drivers/dma/stm32/stm32-dmamux.c
> index 57318715d..b3cacd57b 100644
> --- a/drivers/dma/stm32/stm32-dmamux.c
> +++ b/drivers/dma/stm32/stm32-dmamux.c
> @@ -393,6 +393,7 @@ static struct platform_driver stm32_dmamux_driver = {
>  	.probe	= stm32_dmamux_probe,
>  	.driver = {
>  		.name = "stm32-dmamux",
> +		.suppress_bind_attrs = true,
>  		.of_match_table = stm32_dmamux_match,
>  		.pm = &stm32_dmamux_pm_ops,
>  	},
> diff --git a/drivers/dma/stm32/stm32-mdma.c b/drivers/dma/stm32/stm32-mdma.c
> index 04639e4b5..e2e638a1f 100644
> --- a/drivers/dma/stm32/stm32-mdma.c
> +++ b/drivers/dma/stm32/stm32-mdma.c
> @@ -1806,6 +1806,7 @@ static struct platform_driver stm32_mdma_driver = {
>  	.probe = stm32_mdma_probe,
>  	.driver = {
>  		.name = "stm32-mdma",
> +		.suppress_bind_attrs = true,
>  		.of_match_table = stm32_mdma_of_match,
>  		.pm = &stm32_mdma_pm_ops,
>  	},

  reply	other threads:[~2026-12-04 17:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 12:16 [PATCH v3 0/7] dmaengine: Manage OF DMA routers and disable STM32 unbind Tian Xuechen
2026-12-04 12:16 ` [PATCH v3 1/7] dmaengine: of: Add managed DMA router registration Tian Xuechen
2026-12-04 17:54   ` Frank Li
2026-12-04 12:16 ` [PATCH v3 2/7] dmaengine: lpc18xx-dmamux: Use " Tian Xuechen
2026-12-04 12:16 ` [PATCH v3 3/7] dmaengine: lpc32xx-dmamux: " Tian Xuechen
2026-12-04 12:16 ` [PATCH v3 4/7] dmaengine: dw: dmamux: " Tian Xuechen
2026-12-04 17:55   ` Frank Li
2026-12-04 12:16 ` [PATCH v3 5/7] dmaengine: stm32: Disable manual bind and unbind Tian Xuechen
2026-12-04 17:56   ` Frank Li [this message]
2026-12-04 12:16 ` [PATCH v3 6/7] dmaengine: stm32-dmamux: Use managed DMA router registration Tian Xuechen
2026-12-04 17:57   ` Frank Li
2026-12-04 12:16 ` [PATCH v3 7/7] dmaengine: ti-dma-crossbar: " Tian Xuechen
2026-12-04 17:57   ` Frank Li

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=axL-1Vi6ze3ZM5K1@SMW015318 \
    --to=frank.li@oss.nxp.com \
    --cc=202300460064@mail.sdu.edu.cn \
    --cc=Frank.Li@kernel.org \
    --cc=alexandre.torgue@foss.st.com \
    --cc=amelie.delaunay@foss.st.com \
    --cc=cedric.madianga@gmail.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=pierre-yves.mordret@st.com \
    --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