From: Frank Li <Frank.li@oss.nxp.com>
To: arina.kharlamova@mbzuai.ac.ae
Cc: Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>, Frank Li <Frank.Li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
Shawn Guo <shawnguo@kernel.org>, Heiko Stuebner <heiko@sntech.de>,
Sugar Zhang <sugar.zhang@rock-chips.com>,
Thierry Reding <thierry.reding@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
Sameer Pujar <spujar@nvidia.com>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-sound@vger.kernel.org, patches@opensource.cirrus.com,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-tegra@vger.kernel.org,
Wentao Liang <vulab@iscas.ac.cn>
Subject: Re: [PATCH 4/6] ASoC: mxs-saif: Use devm helpers to register mclk
Date: Thu, 3 Dec 2026 10:54:50 -0600 [thread overview]
Message-ID: <axGe2lzUc4_W2qDr@SMW015318> (raw)
In-Reply-To: <20261201-s2p-asoc-misc-v1-4-eda774714731@mbzuai.ac.ae>
On Tue, Dec 01, 2026 at 11:23:35PM +0400, Arina Kharlamova via B4 Relay wrote:
> [You don't often get email from devnull+arina.kharlamova.mbzuai.ac.ae@kernel.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> From: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
>
> mxs_saif_mclk_init() registers the "mxs_saif_mclk" divider and an OF
> clock provider for it, and nothing unregisters them. The divider uses
> saif->base + SAIF_CTRL as its register and saif->base is mapped with
> devm_platform_ioremap_resource(). When probe fails later, for example
> with -EPROBE_DEFER from the DMA PCM registration, or the driver is
> unbound, the clock stays registered and points into a mapping that is
> gone.
>
> On the next probe clk_register_divider() returns -EEXIST, which
> mxs_saif_mclk_init() treats as success, so the clock keeps the old
> register address.
>
> Register the divider with devm_clk_hw_register_divider() and the
> provider with devm_of_clk_add_hw_provider(). Both are then removed
> before the register mapping when the driver is unbound or probe fails.
>
> Fixes: 7c9e6150f2e7 ("ASoC: mxs: register saif mclk to clock framework")
> ---
> This also covers the error path fixed by Wentao Liang's patch; only one
> of the two is needed:
> https://lore.kernel.org/all/20261104024048.1508618-1-vulab@iscas.ac.cn/
>
> Signed-off-by: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
Your s-o-b need before --- and just after Fixes, other it will be discard
when apply patch.
Frank
WARNING: multiple messages have this Message-ID (diff)
From: Frank Li <Frank.li@oss.nxp.com>
To: arina.kharlamova@mbzuai.ac.ae
Cc: Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>, Frank Li <Frank.Li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
Shawn Guo <shawnguo@kernel.org>, Heiko Stuebner <heiko@sntech.de>,
Sugar Zhang <sugar.zhang@rock-chips.com>,
Thierry Reding <thierry.reding@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
Sameer Pujar <spujar@nvidia.com>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-sound@vger.kernel.org, patches@opensource.cirrus.com,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-tegra@vger.kernel.org,
Wentao Liang <vulab@iscas.ac.cn>
Subject: Re: [PATCH 4/6] ASoC: mxs-saif: Use devm helpers to register mclk
Date: Thu, 3 Dec 2026 10:54:50 -0600 [thread overview]
Message-ID: <axGe2lzUc4_W2qDr@SMW015318> (raw)
In-Reply-To: <20261201-s2p-asoc-misc-v1-4-eda774714731@mbzuai.ac.ae>
On Tue, Dec 01, 2026 at 11:23:35PM +0400, Arina Kharlamova via B4 Relay wrote:
> [You don't often get email from devnull+arina.kharlamova.mbzuai.ac.ae@kernel.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> From: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
>
> mxs_saif_mclk_init() registers the "mxs_saif_mclk" divider and an OF
> clock provider for it, and nothing unregisters them. The divider uses
> saif->base + SAIF_CTRL as its register and saif->base is mapped with
> devm_platform_ioremap_resource(). When probe fails later, for example
> with -EPROBE_DEFER from the DMA PCM registration, or the driver is
> unbound, the clock stays registered and points into a mapping that is
> gone.
>
> On the next probe clk_register_divider() returns -EEXIST, which
> mxs_saif_mclk_init() treats as success, so the clock keeps the old
> register address.
>
> Register the divider with devm_clk_hw_register_divider() and the
> provider with devm_of_clk_add_hw_provider(). Both are then removed
> before the register mapping when the driver is unbound or probe fails.
>
> Fixes: 7c9e6150f2e7 ("ASoC: mxs: register saif mclk to clock framework")
> ---
> This also covers the error path fixed by Wentao Liang's patch; only one
> of the two is needed:
> https://lore.kernel.org/all/20261104024048.1508618-1-vulab@iscas.ac.cn/
>
> Signed-off-by: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
Your s-o-b need before --- and just after Fixes, other it will be discard
when apply patch.
Frank
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2026-12-03 16:55 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 19:23 [PATCH 0/6] ASoC: fix error and remove paths in several drivers Arina Kharlamova
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` [PATCH 1/6] ASoC: bcm: bcm63xx-pcm-whistler: Fix dma_desc leak and double free Arina Kharlamova
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` [PATCH 2/6] ASoC: wm8903: Use devm_gpiochip_add_data() to add the GPIO chip Arina Kharlamova
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-02 17:42 ` Charles Keepax
2026-12-02 17:42 ` Charles Keepax
2026-12-01 19:23 ` [PATCH 3/6] ASoC: wm8903: Free the IRQ when component registration fails Arina Kharlamova
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-02 17:44 ` Charles Keepax
2026-12-02 17:44 ` Charles Keepax
2026-12-01 19:23 ` [PATCH 4/6] ASoC: mxs-saif: Use devm helpers to register mclk Arina Kharlamova
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-01 19:32 ` sashiko-bot
2026-12-03 13:48 ` Markus Elfring
2026-12-03 13:48 ` Markus Elfring
2026-12-03 16:54 ` Frank Li [this message]
2026-12-03 16:54 ` Frank Li
2026-12-01 19:23 ` [PATCH 5/6] ASoC: rockchip: rockchip_pdm: Fix unbalanced clk disable in remove Arina Kharlamova
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` [PATCH 6/6] ASoC: tegra: tegra210_ahub: Depopulate child devices on remove Arina Kharlamova
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` Arina Kharlamova via B4 Relay
2026-12-04 16:52 ` Mark Brown
2026-12-04 16:52 ` Mark Brown
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=axGe2lzUc4_W2qDr@SMW015318 \
--to=frank.li@oss.nxp.com \
--cc=Frank.Li@nxp.com \
--cc=arina.kharlamova@mbzuai.ac.ae \
--cc=broonie@kernel.org \
--cc=festevam@gmail.com \
--cc=heiko@sntech.de \
--cc=imx@lists.linux.dev \
--cc=jonathanh@nvidia.com \
--cc=kernel@pengutronix.de \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=perex@perex.cz \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=spujar@nvidia.com \
--cc=sugar.zhang@rock-chips.com \
--cc=thierry.reding@kernel.org \
--cc=tiwai@suse.com \
--cc=vulab@iscas.ac.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.