From: "Lothar Waßmann" <LW@KARO-electronics.de>
To: Aisheng Dong <aisheng.dong@nxp.com>
Cc: Stephen Boyd <sboyd@kernel.org>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
"mturquette@baylibre.com" <mturquette@baylibre.com>,
dl-linux-imx <linux-imx@nxp.com>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
Fabio Estevam <fabio.estevam@nxp.com>,
"shawnguo@kernel.org" <shawnguo@kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH V9 2/7] clk: imx: add scu clock common part
Date: Mon, 17 Dec 2018 11:27:52 +0100 [thread overview]
Message-ID: <20181217112752.07e43d05@karo-electronics.de> (raw)
In-Reply-To: <AM0PR04MB4211E44C3B64033C3795BDB380A60@AM0PR04MB4211.eurprd04.prod.outlook.com>
Hi,
On Tue, 11 Dec 2018 03:35:48 +0000 Aisheng Dong wrote:
> > -----Original Message-----
> > From: Stephen Boyd [mailto:sboyd@kernel.org]
> > Quoting Aisheng DONG (2018-12-04 06:39:25)
> > > diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index
> > > 43a3ecc..63e7b01 100644
> > > --- a/drivers/clk/imx/Kconfig
> > > +++ b/drivers/clk/imx/Kconfig
> > > @@ -3,3 +3,7 @@
> > > config MXC_CLK
> > > bool
> > > depends on ARCH_MXC
> > > +
> > > +config MXC_CLK_SCU
> >
> > Is there any reason to make this a hidden option instead of making it a
> > selectable option? It can still depend on ARCH_MXC and ARM64, but otherwise
> > it should be compilable as long as CONFIG_IMX_SCU is defined (this should
> > also be a config we depend on here).
> >
>
> This is mostly following the exist using that CLK is selected by SoC config option.
> https://patchwork.kernel.org/patch/10677309/
>
> As CLK usually is required for platform to run well, so we did not make it selectable.
>
> > > + bool
> > > + depends on ARCH_MXC && ARM64
> > > diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile index
> > > f850424..4abed37 100644
> > > --- a/drivers/clk/imx/Makefile
> > > +++ b/drivers/clk/imx/Makefile
> > > @@ -20,6 +20,9 @@ obj-$(CONFIG_MXC_CLK) += \
> > > clk-pllv4.o \
> > > clk-sccg-pll.o
> > >
> > > +obj-$(CONFIG_MXC_CLK_SCU) += \
> > > + clk-scu.o
> > > +
> > > obj-$(CONFIG_SOC_IMX1) += clk-imx1.o
> > > obj-$(CONFIG_SOC_IMX21) += clk-imx21.o
> > > obj-$(CONFIG_SOC_IMX25) += clk-imx25.o diff --git
> > > a/drivers/clk/imx/clk-scu.c b/drivers/clk/imx/clk-scu.c new file mode
> > > 100644 index 0000000..ec8a471
> > > --- /dev/null
> > > +++ b/drivers/clk/imx/clk-scu.c
> > > @@ -0,0 +1,265 @@
> > > +// SPDX-License-Identifier: GPL-2.0+
> > > +/*
> > > + * Copyright 2018 NXP
> > > + * Dong Aisheng <aisheng.dong@nxp.com>
> > > + */
> > > +
> > > +#include <linux/clk-provider.h>
> > > +#include <linux/err.h>
> > > +#include <linux/slab.h>
> > > +
> > > +#include "clk-scu.h"
> > > +
> > > +struct imx_sc_ipc *ccm_ipc_handle;
> >
> > Why does this need to be a global? Can it be in each clk_scu instance instead?
> >
>
> No, no need to be in each clk_scu instance.
> There's only one handler.
>
Shouldn't it be 'static'?
Lothar Waßmann
next prev parent reply other threads:[~2018-12-17 10:38 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-04 14:39 [PATCH V9 0/7] clk: imx: add imx8qxp clock support Aisheng DONG
2018-12-04 14:39 ` [PATCH V9 1/7] clk: imx: add configuration option for mmio clks Aisheng DONG
2018-12-10 20:55 ` Stephen Boyd
2018-12-11 2:36 ` Aisheng Dong
2018-12-11 19:29 ` Stephen Boyd
2018-12-12 1:09 ` Aisheng Dong
2018-12-12 10:27 ` Aisheng Dong
2018-12-12 22:23 ` Stephen Boyd
2018-12-13 0:32 ` Aisheng Dong
2018-12-04 14:39 ` [PATCH V9 2/7] clk: imx: add scu clock common part Aisheng DONG
2018-12-10 21:56 ` Stephen Boyd
2018-12-11 3:35 ` Aisheng Dong
2018-12-17 10:27 ` Lothar Waßmann [this message]
2018-12-17 10:30 ` Aisheng Dong
2018-12-04 14:39 ` [PATCH V9 3/7] dt-bindings: clock: imx8qxp: add SCU clock IDs Aisheng DONG
2018-12-04 14:39 ` [PATCH V9 4/7] clk: imx: add imx8qxp clk driver Aisheng DONG
2018-12-04 14:39 ` [PATCH V9 5/7] dt-bindings: clock: add imx8qxp lpcg clock binding Aisheng DONG
2018-12-04 14:39 ` [PATCH V9 6/7] clk: imx: add lpcg clock support Aisheng DONG
2018-12-04 14:39 ` [PATCH V9 7/7] clk: imx: add imx8qxp lpcg driver Aisheng DONG
2018-12-10 20:46 ` [PATCH V9 0/7] clk: imx: add imx8qxp clock support Stephen Boyd
2018-12-11 2:04 ` Aisheng Dong
2018-12-11 4:05 ` Aisheng Dong
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=20181217112752.07e43d05@karo-electronics.de \
--to=lw@karo-electronics.de \
--cc=aisheng.dong@nxp.com \
--cc=fabio.estevam@nxp.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-imx@nxp.com \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
--cc=shawnguo@kernel.org \
/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