All of lore.kernel.org
 help / color / mirror / Atom feed
From: Igor Prusov <prusovigor@gmail.com>
To: Michal Simek <michal.simek@amd.com>
Cc: Igor Prusov <ivprusov@sberdevices.ru>,
	Daniel Schwierzeck <daniel.schwierzeck@gmail.com>,
	Lukasz Majewski <lukma@denx.de>,
	Sean Anderson <seanga2@gmail.com>,
	Ryan Chen <ryan_chen@aspeedtech.com>,
	Chia-Wei Wang <chiawei_wang@aspeedtech.com>,
	Aspeed BMC SW team <BMC-SW@aspeedtech.com>,
	Joel Stanley <joel@jms.id.au>, Stefan Roese <sr@denx.de>,
	Patrick Delaunay <patrick.delaunay@foss.st.com>,
	Patrice Chotard <patrice.chotard@foss.st.com>,
	kernel@sberdevices.ru, u-boot@lists.denx.de,
	uboot-stm32@st-md-mailman.stormreply.com
Subject: Re: [RFC PATCH v1 6/7] clk: treewide: switch to clock dump from clk_ops
Date: Tue, 2 May 2023 21:40:56 +0300	[thread overview]
Message-ID: <6451593a.c20a0220.2fb7d.0870@mx.google.com> (raw)
In-Reply-To: <6b4101b8-c047-b8aa-e54b-e8eee03fa2fc@amd.com>

Hello Michal,

On Tue, May 02, 2023 at 04:02:00PM +0200, Michal Simek wrote:
> 
> 
> On 4/27/23 22:37, Igor Prusov wrote:
> > Switch to using new dump operation in clock provider drivers instead of
> > overriding soc_clk_dump.
> > 
> > Signed-off-by: Igor Prusov <ivprusov@sberdevices.ru>
> > ---
> >   arch/mips/mach-pic32/cpu.c             | 23 ---------------
> >   drivers/clk/aspeed/clk_ast2600.c       | 13 ++++-----
> >   drivers/clk/clk_k210.c                 | 11 +++-----
> >   drivers/clk/clk_pic32.c                | 39 ++++++++++++++++++++++++++
> >   drivers/clk/clk_versal.c               |  7 ++++-
> >   drivers/clk/clk_zynq.c                 | 19 ++++---------
> >   drivers/clk/clk_zynqmp.c               | 13 ++++-----
> >   drivers/clk/imx/clk-imx8.c             | 11 +++-----
> >   drivers/clk/mvebu/armada-37xx-periph.c |  5 +++-
> >   drivers/clk/stm32/clk-stm32mp1.c       | 29 ++++++-------------
> >   10 files changed, 83 insertions(+), 87 deletions(-)
> > 
> > diff --git a/arch/mips/mach-pic32/cpu.c b/arch/mips/mach-pic32/cpu.c
> > index de449e3c6a..2875a1ec7c 100644
> > --- a/arch/mips/mach-pic32/cpu.c
> > +++ b/arch/mips/mach-pic32/cpu.c
> > @@ -148,26 +148,3 @@ const char *get_core_name(void)
> >   	return str;
> >   }
> >   #endif
> > -#ifdef CONFIG_CMD_CLK
> > -
> > -int soc_clk_dump(void)
> > -{
> > -	int i;
> > -
> > -	printf("PLL Speed: %lu MHz\n",
> > -	       CLK_MHZ(rate(PLLCLK)));
> > -
> > -	printf("CPU Speed: %lu MHz\n", CLK_MHZ(rate(PB7CLK)));
> > -
> > -	printf("MPLL Speed: %lu MHz\n", CLK_MHZ(rate(MPLL)));
> > -
> > -	for (i = PB1CLK; i <= PB7CLK; i++)
> > -		printf("PB%d Clock Speed: %lu MHz\n", i - PB1CLK + 1,
> > -		       CLK_MHZ(rate(i)));
> > -
> > -	for (i = REF1CLK; i <= REF5CLK; i++)
> > -		printf("REFO%d Clock Speed: %lu MHz\n", i - REF1CLK + 1,
> > -		       CLK_MHZ(rate(i)));
> > -	return 0;
> > -}
> > -#endif
> > diff --git a/drivers/clk/aspeed/clk_ast2600.c b/drivers/clk/aspeed/clk_ast2600.c
> > index b3cc8392fa..08db21d394 100644
> > --- a/drivers/clk/aspeed/clk_ast2600.c
> > +++ b/drivers/clk/aspeed/clk_ast2600.c
> > @@ -1109,6 +1109,7 @@ struct aspeed_clks {
> >   	const char *name;
> >   };
> > +#if IS_ENABLED(CONFIG_CMD_CLK)
> >   static struct aspeed_clks aspeed_clk_names[] = {
> >   	{ ASPEED_CLK_HPLL, "hpll" },
> >   	{ ASPEED_CLK_MPLL, "mpll" },
> > @@ -1123,18 +1124,12 @@ static struct aspeed_clks aspeed_clk_names[] = {
> >   	{ ASPEED_CLK_HUARTX, "huxclk" },
> >   };
> > -int soc_clk_dump(void)
> > +int ast2600_clk_dump(struct udevice *dev)
> 
> static? apply for all below too.

Indeed, will fix in v2, thanks!

> 
> M

-- 
Best Regards,
Igor Prusov

  reply	other threads:[~2023-05-02 19:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-27 20:37 [RFC PATCH v1 0/7] clk: Switch from soc_clk_dump to clk_ops function Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 1/7] clk: zynq: Move soc_clk_dump to Zynq clock driver Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 2/7] clk: ast2600: Move soc_clk_dump function Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 3/7] clk: k210: " Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 4/7] clk: Add dump operation to clk_ops Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 5/7] cmd: clk: Use dump function from clk_ops Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 6/7] clk: treewide: switch to clock dump " Igor Prusov
2023-05-02 14:02   ` Michal Simek
2023-05-02 18:40     ` Igor Prusov [this message]
2023-04-27 20:37 ` [RFC PATCH v1 7/7] cmd: clk: Remove __weak from soc_clk_dump Igor Prusov

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=6451593a.c20a0220.2fb7d.0870@mx.google.com \
    --to=prusovigor@gmail.com \
    --cc=BMC-SW@aspeedtech.com \
    --cc=chiawei_wang@aspeedtech.com \
    --cc=daniel.schwierzeck@gmail.com \
    --cc=ivprusov@sberdevices.ru \
    --cc=joel@jms.id.au \
    --cc=kernel@sberdevices.ru \
    --cc=lukma@denx.de \
    --cc=michal.simek@amd.com \
    --cc=patrice.chotard@foss.st.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=ryan_chen@aspeedtech.com \
    --cc=seanga2@gmail.com \
    --cc=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-stm32@st-md-mailman.stormreply.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 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.