From: Katsuhiro Suzuki <katsuhiro@katsuster.net>
To: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>
Cc: linux-rockchip@lists.infradead.org, alsa-devel@alsa-project.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ASoC: rk3328: fix disabling mclk on pclk probe failure
Date: Thu, 28 Apr 2022 13:44:43 +0900 [thread overview]
Message-ID: <d2d0ac77-e8bc-dd69-0a8a-470e42276d8c@katsuster.net> (raw)
In-Reply-To: <20220427172310.138638-1-frattaroli.nicolas@gmail.com>
Hello Nicolas,
Oh, indeed. Thanks for fix.
Reviewed-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
On 2022/04/28 2:23, Nicolas Frattaroli wrote:
> If preparing/enabling the pclk fails, the probe function should
> unprepare and disable the previously prepared and enabled mclk,
> which it doesn't do. This commit rectifies this.
>
> Fixes: c32759035ad2 ("ASoC: rockchip: support ACODEC for rk3328")
> Signed-off-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
> ---
> sound/soc/codecs/rk3328_codec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/codecs/rk3328_codec.c b/sound/soc/codecs/rk3328_codec.c
> index 758d439e8c7a..86b679cf7aef 100644
> --- a/sound/soc/codecs/rk3328_codec.c
> +++ b/sound/soc/codecs/rk3328_codec.c
> @@ -481,7 +481,7 @@ static int rk3328_platform_probe(struct platform_device *pdev)
> ret = clk_prepare_enable(rk3328->pclk);
> if (ret < 0) {
> dev_err(&pdev->dev, "failed to enable acodec pclk\n");
> - return ret;
> + goto err_unprepare_mclk;
> }
>
> base = devm_platform_ioremap_resource(pdev, 0);
next prev parent reply other threads:[~2022-04-28 5:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-27 17:23 Nicolas Frattaroli
2022-04-28 4:44 ` Katsuhiro Suzuki [this message]
2022-04-28 16:46 ` Mark Brown
2022-04-29 13:39 ` 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=d2d0ac77-e8bc-dd69-0a8a-470e42276d8c@katsuster.net \
--to=katsuhiro@katsuster.net \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=frattaroli.nicolas@gmail.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/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
all inboxes | Powered by JetHome®