From: Jonathan Cameron <jic23@kernel.org>
To: Randy Dunlap <rdunlap@infradead.org>,
linux-mips@vger.kernel.org,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-kernel@vger.kernel.org, John Crispin <john@phrozen.org>,
Russell King <linux@armlinux.org.uk>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
alsa-devel@alsa-project.org, kernel test robot <lkp@intel.com>
Subject: Re: [PATCH] mips: lantiq: add support for clk_set_parent()
Date: Wed, 29 Dec 2021 16:39:08 +0000 [thread overview]
Message-ID: <20211229163908.2eaf3656@jic23-huawei> (raw)
In-Reply-To: <20211229000345.24199-1-rdunlap@infradead.org>
On Tue, 28 Dec 2021 16:03:45 -0800
Randy Dunlap <rdunlap@infradead.org> wrote:
> Provide a simple implementation of clk_set_parent() in the lantiq
> subarch so that callers of it will build without errors.
>
> Fixes these build errors:
>
> ERROR: modpost: "clk_set_parent" [sound/soc/jz4740/snd-soc-jz4740-i2s.ko] undefined!
> ERROR: modpost: "clk_set_parent" [sound/soc/atmel/snd-soc-atmel-i2s.ko] undefined!
>
> Fixes: 171bb2f19ed6 ("MIPS: Lantiq: Add initial support for Lantiq SoCs")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Reported-by: kernel test robot <lkp@intel.com>
> --to=linux-mips@vger.kernel.org --cc="John Crispin <john@phrozen.org>" --cc="Jonathan Cameron <jic23@kernel.org>" --cc="Russell King <linux@armlinux.org.uk>" --cc="Andy Shevchenko <andy.shevchenko@gmail.com>" --cc=alsa-devel@alsa-project.org --to="Thomas Bogendoerfer <tsbogend@alpha.franken.de>"
I guess hitting this sooner or later was inevitable given the recent fix
of adding clk_get_parent() to these two. It might be worth adding a
WARN_ON() or similar to this function though so we know if anything
ever actually hits it at runtime. Seems like at least some of the
other similar stubs do so (omap1 for example).
With or without a warning, LGTM
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> ---
> arch/mips/lantiq/clk.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> --- linux-next-20211224.orig/arch/mips/lantiq/clk.c
> +++ linux-next-20211224/arch/mips/lantiq/clk.c
> @@ -164,6 +164,12 @@ struct clk *clk_get_parent(struct clk *c
> }
> EXPORT_SYMBOL(clk_get_parent);
>
> +int clk_set_parent(struct clk *clk, struct clk *parent)
> +{
> + return 0;
> +}
> +EXPORT_SYMBOL(clk_set_parent);
> +
> static inline u32 get_counter_resolution(void)
> {
> u32 res;
next prev parent reply other threads:[~2021-12-29 16:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-29 0:03 [PATCH] mips: lantiq: add support for clk_set_parent() Randy Dunlap
2021-12-29 16:39 ` Jonathan Cameron [this message]
2022-01-03 19:51 ` Thomas Bogendoerfer
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=20211229163908.2eaf3656@jic23-huawei \
--to=jic23@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=andy.shevchenko@gmail.com \
--cc=john@phrozen.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=lkp@intel.com \
--cc=rdunlap@infradead.org \
--cc=tsbogend@alpha.franken.de \
/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