Linux Sound subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Arina Kharlamova" <arina.kharlamova@mbzuai.ac.ae>
Cc: linux-sound@vger.kernel.org, imx@lists.linux.dev, Frank.Li@kernel.org
Subject: Re: [PATCH 4/6] ASoC: mxs-saif: Use devm helpers to register mclk
Date: Tue, 01 Dec 2026 19:32:24 +0000	[thread overview]
Message-ID: <sashiko-outbox-244081@kernel.org> (raw)
In-Reply-To: <20261201-s2p-asoc-misc-v1-4-eda774714731@mbzuai.ac.ae>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] ASoC: mxs-saif: missing Signed-off-by trailer above ---
  separator
--

commit 5021fc1fda76b542f9e9ddbe9928d5a2500e70f7
Author: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>

> ASoC: mxs-saif: Use devm helpers to register mclk
>
> 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")

[Severity: High]
The Signed-off-by trailer was placed below the first "---" separator line
in the patch, so git am strips it from the commit message.  It should be
moved above the "---" separator right after the Fixes trailer.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-s2p-asoc-misc-v1-0-eda774714731@mbzuai.ac.ae?part=4

  reply	other threads:[~2026-12-01 19:32 UTC|newest]

Thread overview: 8+ 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 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 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 via B4 Relay
2026-12-01 19:23 ` [PATCH 3/6] ASoC: wm8903: Free the IRQ when component registration fails Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` [PATCH 4/6] ASoC: mxs-saif: Use devm helpers to register mclk Arina Kharlamova via B4 Relay
2026-12-01 19:32   ` sashiko-bot [this message]
2026-12-01 19:23 ` [PATCH 5/6] ASoC: rockchip: rockchip_pdm: Fix unbalanced clk disable in remove Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` [PATCH 6/6] ASoC: tegra: tegra210_ahub: Depopulate child devices on remove Arina Kharlamova via B4 Relay

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=sashiko-outbox-244081@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=arina.kharlamova@mbzuai.ac.ae \
    --cc=imx@lists.linux.dev \
    --cc=linux-sound@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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