[PATCH v3 5/7] dmaengine: stm32: Disable manual bind and unbind
Frank Li
Frank.li at oss.nxp.com
Fri Dec 4 09:56:37 PST 2026
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 at foss.st.com>
> Link: https://lore.kernel.org/r/f2a156ee-55d4-4a00-ac75-bb51f1785a9d@foss.st.com
> Signed-off-by: Tian Xuechen <202300460064 at mail.sdu.edu.cn>
> ---
This difference purpose patch. You'd better send seperately.
Reviewed-by: Frank Li <Frank.Li at 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,
> },
More information about the linux-arm-kernel
mailing list