From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Chen-Yu Tsai <wenst@chromium.org>, Arnd Bergmann <arnd@kernel.org>
Cc: mturquette@baylibre.com, sboyd@kernel.org,
matthias.bgg@gmail.com, johnson.wang@mediatek.com,
miles.chen@mediatek.com, chun-jie.chen@mediatek.com,
daniel@makrotopia.org, fparent@baylibre.com, msp@baylibre.com,
nfraprado@collabora.com, rex-bc.chen@mediatek.com,
zhaojh329@gmail.com, sam.shih@mediatek.com,
edward-jw.yang@mediatek.com, yangyingliang@huawei.com,
granquet@baylibre.com, pablo.sun@mediatek.com,
sean.wang@mediatek.com, chen.zhong@mediatek.com,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, kernel@collabora.com
Subject: Re: [PATCH v2 37/47] clk: mediatek: Split MT8195 clock drivers and allow module build
Date: Fri, 17 Feb 2023 13:56:52 +0100 [thread overview]
Message-ID: <f12eff8f-7f6f-cd93-2c3e-4390d42f98ee@collabora.com> (raw)
In-Reply-To: <CAGXv+5Gf6idN3LMkei503cXnuxo7HNc8=8fG0jENVHDtxDg5jQ@mail.gmail.com>
Il 17/02/23 08:37, Chen-Yu Tsai ha scritto:
> On Tue, Feb 14, 2023 at 9:42 PM AngeloGioacchino Del Regno
> <angelogioacchino.delregno@collabora.com> wrote:
>>
>> MT8195 clock drivers were encapsulated in one single (and big) Kconfig
>> option: there's no reason to do that, as it is totally unnecessary to
>> build in all or none of them.
>>
>> Split them out: keep boot-critical clocks as bool and allow choosing
>> non critical clocks as tristate.
>>
>> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
>> ---
>> drivers/clk/mediatek/Kconfig | 86 +++++++++++++++++++++++++++++++++++
>> drivers/clk/mediatek/Makefile | 20 +++++---
>> 2 files changed, 99 insertions(+), 7 deletions(-)
>>
>> diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig
>> index 45b7aea7648d..88937d111e98 100644
>> --- a/drivers/clk/mediatek/Kconfig
>> +++ b/drivers/clk/mediatek/Kconfig
>> @@ -692,6 +692,92 @@ config COMMON_CLK_MT8195
>> help
>> This driver supports MediaTek MT8195 clocks.
>>
>> +config COMMON_CLK_MT8195_APUSYS
>> + tristate "Clock driver for MediaTek MT8195 apusys"
>> + depends on COMMON_CLK_MT8195
>> + help
>> + This driver supports MediaTek MT8195 AI Processor Unit System clocks.
>> +
>> +config COMMON_CLK_MT8195_AUDSYS
>> + tristate "Clock driver for MediaTek MT8195 audsys"
>> + depends on COMMON_CLK_MT8195
>> + help
>> + This driver supports MediaTek MT8195 audsys clocks.
>> +
>> +config COMMON_CLK_MT8195_CAMSYS
>> + tristate "Clock driver for MediaTek MT8195 camsys"
>> + depends on COMMON_CLK_MT8195_VPPSYS
>
> One other thing. If a Kconfig option immediately follows its dependency,
> then it gets indented nicely in menuconfig, but only if.
> If other options are interspersed, then the indentation gets reset.
>
> So could you reorder the options to follow the dependency graph?
>
Sure, I will!
> Also how you chose the dependencies should be mentioned in the commit log.
> These are pure run time dependencies, not compile time nor link/load ones.
>
Right.
> Last, I think an argument could be made against the proliferation of
> Kconfig options, as it dramatically increases the combinations of
> allrandconfigs. Maybe Arnd (who IIRC frequently runs allrandconfig)
> could chime in on whether this is actually a concern or not.
>
I understand, but I don't see any way around that.
In my opinion, we shall give flexibility, and this is the only way to achieve
that: if you don't use IMGSYS, CAMSYS, WPESYS and IPESYS you should *not* be
forced to add that to the mix, as this would result in a footprint increase
for no *final* practical reason.
It's true, today we have big storage capacities and fast machines, but we can
still see a reduction in boot times (bootloader kernel load time, other than
actual kernel boot time), even if minimal, with this added flexibility.
Save a few milliseconds here, a few milliseconds there (not necessarily on
clock drivers, expand this to others) and you start reaching a meaningful
increase in boot performance.
>> + help
>> + This driver supports MediaTek MT8195 camsys and camsys_raw clocks.
>> +
>> +config COMMON_CLK_MT8195_IMGSYS
>> + tristate "Clock driver for MediaTek MT8195 imgsys"
>> + depends on COMMON_CLK_MT8195_VPPSYS
>> + help
>> + This driver supports MediaTek MT8195 imgsys and imgsys2 clocks.
>> +
>> +config COMMON_CLK_MT8195_IMP_IIC_WRAP
>> + tristate "Clock driver for MediaTek MT8195 imp_iic_wrap"
>> + depends on COMMON_CLK_MT8195
>> + help
>> + This driver supports MediaTek MT8195 I2C/I3C clocks.
>> +
>> +config COMMON_CLK_MT8195_IPESYS
>> + tristate "Clock driver for MediaTek MT8195 ipesys"
>> + depends on COMMON_CLK_MT8195_IMGSYS
>> + help
>> + This driver supports MediaTek MT8195 ipesys clocks.
>> +
>> +config COMMON_CLK_MT8195_MFGCFG
>> + tristate "Clock driver for MediaTek MT8195 mfgcfg"
>> + depends on COMMON_CLK_MT8195
>> + help
>> + This driver supports MediaTek MT8195 mfgcfg clocks.
>> +
>> +config COMMON_CLK_MT8195_VDOSYS
>> + tristate "Clock driver for MediaTek MT8195 vdosys"
>> + depends on COMMON_CLK_MT8195
>
> Not sure why this option is here, out of order?
My alphabet skills finally failed me, lol.
I'll fix that for v3 :-)
Thanks!
Angelo
next prev parent reply other threads:[~2023-02-17 12:57 UTC|newest]
Thread overview: 101+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-14 13:40 [PATCH v2 00/47] MediaTek clocks: full module build and cleanups AngeloGioacchino Del Regno
2023-02-14 13:40 ` [PATCH v2 01/47] clk: mediatek: clk-mtk: Switch to device_get_match_data() AngeloGioacchino Del Regno
2023-02-14 13:40 ` [PATCH v2 02/47] clk: mediatek: clk-mtk: Introduce clk_mtk_pdev_{probe,remove}() AngeloGioacchino Del Regno
2023-02-14 13:40 ` [PATCH v2 03/47] clk: mediatek: Migrate to mtk_clk_pdev_probe() for multimedia clocks AngeloGioacchino Del Regno
2023-02-14 13:40 ` [PATCH v2 04/47] clk: mediatek: Add divider clocks to mtk_clk_simple_{probe,remove}() AngeloGioacchino Del Regno
2023-02-14 13:40 ` [PATCH v2 05/47] clk: mediatek: mt2712: Migrate topckgen/mcucfg to mtk_clk_simple_probe() AngeloGioacchino Del Regno
2023-02-14 13:40 ` [PATCH v2 06/47] clk: mediatek: mt2712: Compress clock arrays entries to 90 columns AngeloGioacchino Del Regno
2023-02-14 13:40 ` [PATCH v2 07/47] clk: mediatek: mt2712: Add error handling to clk_mt2712_apmixed_probe() AngeloGioacchino Del Regno
2023-02-14 13:40 ` [PATCH v2 08/47] clk: mediatek: mt2712: Move apmixedsys clock driver to its own file AngeloGioacchino Del Regno
2023-02-16 7:30 ` Chen-Yu Tsai
2023-02-14 13:40 ` [PATCH v2 09/47] clk: mediatek: mt2712: Change to use module_platform_driver macro AngeloGioacchino Del Regno
2023-02-16 7:31 ` Chen-Yu Tsai
2023-02-14 13:40 ` [PATCH v2 10/47] clk: mediatek: mt8365: Move apmixedsys clock driver to its own file AngeloGioacchino Del Regno
2023-02-14 13:40 ` [PATCH v2 11/47] clk: mediatek: mt8365: Convert simple_gate to mtk_gate clocks AngeloGioacchino Del Regno
2023-02-16 7:54 ` Chen-Yu Tsai
2023-02-14 13:40 ` [PATCH v2 12/47] clk: mediatek: mt8365: Join top_misc_mux_gates and top_misc_muxes arrays AngeloGioacchino Del Regno
2023-02-16 7:56 ` Chen-Yu Tsai
2023-02-14 13:40 ` [PATCH v2 13/47] clk: mediatek: mt8365: Convert to mtk_clk_simple_{probe,remove}() AngeloGioacchino Del Regno
2023-02-16 7:58 ` Chen-Yu Tsai
2023-02-14 13:40 ` [PATCH v2 14/47] clk: mediatek: mt8167: Compress GATE_TOPx macros AngeloGioacchino Del Regno
2023-02-14 13:40 ` [PATCH v2 15/47] clk: mediatek: mt8167: Move apmixedsys as platform_driver in new file AngeloGioacchino Del Regno
2023-02-14 13:40 ` [PATCH v2 16/47] clk: mediatek: mt8167: Remove __initconst annotation from arrays AngeloGioacchino Del Regno
2023-02-16 8:00 ` Chen-Yu Tsai
2023-02-14 13:40 ` [PATCH v2 17/47] clk: mediatek: mt8167: Convert to mtk_clk_simple_{probe,remove}() AngeloGioacchino Del Regno
2023-02-16 8:01 ` Chen-Yu Tsai
2023-02-14 13:40 ` [PATCH v2 18/47] clk: mediatek: mt8183: Move apmixedsys clock driver to its own file AngeloGioacchino Del Regno
2023-02-16 8:11 ` Chen-Yu Tsai
2023-02-14 13:40 ` [PATCH v2 19/47] clk: mediatek: mt8183: Compress clocks arrays entries where possible AngeloGioacchino Del Regno
2023-02-16 8:22 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 20/47] clk: mediatek: mt8183: Convert all remaining clocks to common probe AngeloGioacchino Del Regno
2023-02-16 8:55 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 21/47] clk: mediatek: Consistently use GATE_MTK() macro AngeloGioacchino Del Regno
2023-02-16 10:27 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 22/47] clk: mediatek: mt7622: Properly use CLK_IS_CRITICAL flag AngeloGioacchino Del Regno
2023-02-16 10:45 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 23/47] clk: mediatek: mt7622: Move apmixedsys clock driver to its own file AngeloGioacchino Del Regno
2023-02-16 10:52 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 24/47] clk: mediatek: mt7622: Move infracfg to clk-mt7622-infracfg.c AngeloGioacchino Del Regno
2023-02-16 10:53 ` Chen-Yu Tsai
2023-02-16 11:45 ` AngeloGioacchino Del Regno
2023-02-14 13:41 ` [PATCH v2 25/47] clk: mediatek: mt7622: Convert to platform driver and simple probe AngeloGioacchino Del Regno
2023-02-16 10:55 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 26/47] clk: mediatek: mt8516: Move apmixedsys clock driver to its own file AngeloGioacchino Del Regno
2023-02-16 10:56 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 27/47] clk: mediatek: mt8516: Convert to platform driver and simple probe AngeloGioacchino Del Regno
2023-02-16 11:00 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 28/47] clk: mediatek: mt8516: Allow building clock drivers as modules AngeloGioacchino Del Regno
2023-02-16 11:01 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 29/47] clk: mediatek: Propagate struct device with mtk_clk_register_dividers() AngeloGioacchino Del Regno
2023-02-17 4:09 ` Chen-Yu Tsai
2023-02-17 10:57 ` AngeloGioacchino Del Regno
2023-02-14 13:41 ` [PATCH v2 30/47] clk: mediatek: mt7986-apmixed: Use PLL_AO flag to set critical clock AngeloGioacchino Del Regno
2023-02-17 4:10 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 31/47] clk: mediatek: mt7986-infracfg: Migrate to common probe mechanism AngeloGioacchino Del Regno
2023-02-17 4:10 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 32/47] clk: mediatek: mt7986-eth: " AngeloGioacchino Del Regno
2023-02-17 4:12 ` Chen-Yu Tsai
2023-02-17 10:58 ` AngeloGioacchino Del Regno
2023-02-14 13:41 ` [PATCH v2 33/47] clk: mediatek: mt8186-mcu: " AngeloGioacchino Del Regno
2023-02-17 4:12 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 34/47] clk: mediatek: Switch to module_platform_driver() where possible AngeloGioacchino Del Regno
2023-02-17 4:19 ` Chen-Yu Tsai
2023-02-17 11:18 ` AngeloGioacchino Del Regno
2023-02-14 13:41 ` [PATCH v2 35/47] clk: mediatek: Add MODULE_LICENSE() where missing AngeloGioacchino Del Regno
2023-02-17 4:22 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 36/47] clk: mediatek: mt2712: Change Kconfig options to allow module build AngeloGioacchino Del Regno
2023-02-17 4:24 ` Chen-Yu Tsai
2023-02-17 5:01 ` Chen-Yu Tsai
2023-02-17 11:25 ` AngeloGioacchino Del Regno
2023-02-17 15:19 ` Chen-Yu Tsai
2023-02-20 9:01 ` AngeloGioacchino Del Regno
2023-02-14 13:41 ` [PATCH v2 37/47] clk: mediatek: Split MT8195 clock drivers and " AngeloGioacchino Del Regno
2023-02-17 4:31 ` Chen-Yu Tsai
2023-02-17 11:29 ` AngeloGioacchino Del Regno
2023-02-17 15:16 ` Chen-Yu Tsai
2023-02-17 7:37 ` Chen-Yu Tsai
2023-02-17 12:56 ` AngeloGioacchino Del Regno [this message]
2023-02-14 13:41 ` [PATCH v2 38/47] clk: mediatek: Allow building MT8192 non-critical clocks as modules AngeloGioacchino Del Regno
2023-02-17 4:31 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 39/47] clk: mediatek: Allow MT7622 clocks to be built " AngeloGioacchino Del Regno
2023-02-17 4:32 ` Chen-Yu Tsai
2023-02-17 5:02 ` Chen-Yu Tsai
2023-02-17 11:31 ` AngeloGioacchino Del Regno
2023-02-14 13:41 ` [PATCH v2 40/47] clk: mediatek: Allow all MT8167 " AngeloGioacchino Del Regno
2023-02-17 7:25 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 41/47] clk: mediatek: Allow all MT8183 " AngeloGioacchino Del Regno
2023-02-17 7:26 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 42/47] clk: mediatek: Allow building most MT6765 clock drivers " AngeloGioacchino Del Regno
2023-02-17 7:26 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 43/47] clk: mediatek: Allow building most MT6797 " AngeloGioacchino Del Regno
2023-02-17 7:26 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 44/47] clk: mediatek: Split configuration options for MT8186 clock drivers AngeloGioacchino Del Regno
2023-02-17 7:38 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 45/47] clk: mediatek: mt8192: Move apmixedsys clock driver to its own file AngeloGioacchino Del Regno
2023-02-17 8:02 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 46/47] clk: mediatek: Kconfig: Allow module build for core mt8192 clocks AngeloGioacchino Del Regno
2023-02-17 8:02 ` Chen-Yu Tsai
2023-02-14 13:41 ` [PATCH v2 47/47] clk: mediatek: Add MODULE_DEVICE_TABLE() where appropriate AngeloGioacchino Del Regno
2023-02-17 8:04 ` Chen-Yu Tsai
2023-02-17 8:05 ` [PATCH v2 00/47] MediaTek clocks: full module build and cleanups Chen-Yu Tsai
2023-02-17 11:48 ` AngeloGioacchino Del Regno
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=f12eff8f-7f6f-cd93-2c3e-4390d42f98ee@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=arnd@kernel.org \
--cc=chen.zhong@mediatek.com \
--cc=chun-jie.chen@mediatek.com \
--cc=daniel@makrotopia.org \
--cc=edward-jw.yang@mediatek.com \
--cc=fparent@baylibre.com \
--cc=granquet@baylibre.com \
--cc=johnson.wang@mediatek.com \
--cc=kernel@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=miles.chen@mediatek.com \
--cc=msp@baylibre.com \
--cc=mturquette@baylibre.com \
--cc=nfraprado@collabora.com \
--cc=pablo.sun@mediatek.com \
--cc=rex-bc.chen@mediatek.com \
--cc=sam.shih@mediatek.com \
--cc=sboyd@kernel.org \
--cc=sean.wang@mediatek.com \
--cc=wenst@chromium.org \
--cc=yangyingliang@huawei.com \
--cc=zhaojh329@gmail.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®