From: "Stefan Dösinger" <stefandoesinger@gmail.com>
To: Lee Jones <lee@kernel.org>
Cc: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Brian Masney <bmasney@redhat.com>, Vinod Koul <vkoul@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Russell King <linux@armlinux.org.uk>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-phy@lists.infradead.org, mfd@lists.linux.dev
Subject: Re: [PATCH v10 04/12] mfd: zx297520v3: Add a clock and reset MFD driver
Date: Fri, 14 Aug 2026 20:46:11 +0300 [thread overview]
Message-ID: <gxF9XGmoS_qmWIfVagXDVQ@gmail.com> (raw)
In-Reply-To: <20260812131503.GR1072730@google.com>
[-- Attachment #1: Type: text/plain, Size: 1931 bytes --]
Hi,
Thanks for your feedback!
Am Mittwoch, 12. August 2026, 16:15:03 Ostafrikanische Zeit schrieb Lee Jones:
> > +config MFD_ZTE_ZX297520V3_CRM
> > + tristate "ZTE zx297520v3 Clock and Reset Manager"
> > + depends on ARCH_ZTE || COMPILE_TEST
> > + select MFD_CORE
> > + select REGMAP_MMIO
>
> Is this used?
Thinking about it: Not in the way the build system cares, so I'll remove it.
The MFD child drivers call device_node_to_regmap(dev->parent->of_node), so a
MMIO regmap gets constructed for the MFD parent. But since the calls are in
the child drivers, REGMAP_MMIO shouldn't be needed to build and run this
particular driver, and the child drivers enable REGMAP_MMIO on their own.
> > + * Copyright (C) 2026 Stefan Dösinger
>
> Personal copyright, are you sure?
>
> Is that okay with ZTE?
I'm not affiliated with them. This work is my personal hobby project to have
some fun and learn things.
I'm not copying code from their kernel dumps either, the quality of the
drivers there is pretty atrocious.
If ZTE wants to have copyright of the upstream drivers I won't stop them from
doing the work themselves :-)
> > +enum zx297520v3_parent_type {
> > + ZX297520V3_INVALID = 0,
> > + ZX297520V3_TOPCRM,
> > + ZX297520V3_MATRIXCRM,
> > + ZX297520V3_LSPCRM,
>
> None of these are readable. I suggest you improve the nomenclature.
I saw that most existing drivers use "undecorated" device names, i.e.
"TOPCRM", "MATRIXCRM", "LSPCRM" in this driver's case. I am concerned that
"TOPCRM" is generic enough that a (future) global header might define a macro
or enum value with that name, so I opted to semi-namespace them with the SoC
name.
Following the example of max*.c, what do you think of TYPE_TOPCRM,
TYPE_MATRIXCRM etc?
The rest of your comments are clear to me, I'll implement them in the next
submission.
Cheers,
Stefan
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 870 bytes --]
next prev parent reply other threads:[~2026-08-14 17:46 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-09 21:28 [PATCH v10 00/12] ZTE zx297520v3 clock bindings and driver Stefan Dösinger
2026-08-09 21:28 ` [PATCH v10 01/12] dt-bindings: clk: zte: Add zx297520v3 top clock and reset controller Stefan Dösinger
2026-08-10 7:12 ` sashiko-bot
2026-08-10 15:38 ` Rob Herring
2026-08-10 18:49 ` Stefan Dösinger
2026-08-14 18:09 ` Rob Herring
2026-08-09 21:28 ` [PATCH v10 02/12] dt-bindings: clk: zte: Add zx297520v3 matrix " Stefan Dösinger
2026-08-10 7:07 ` sashiko-bot
2026-08-09 21:28 ` [PATCH v10 03/12] dt-bindings: clk: zte: Add zx297520v3 LSP " Stefan Dösinger
2026-08-10 7:05 ` sashiko-bot
2026-08-09 21:28 ` [PATCH v10 04/12] mfd: zx297520v3: Add a clock and reset MFD driver Stefan Dösinger
2026-08-10 7:10 ` sashiko-bot
2026-08-12 13:15 ` Lee Jones
2026-08-14 17:46 ` Stefan Dösinger [this message]
2026-08-09 21:28 ` [PATCH v10 05/12] clk: zte: Add Clock registration infrastructure Stefan Dösinger
2026-08-10 7:17 ` sashiko-bot
2026-08-10 21:47 ` Brian Masney
2026-08-09 21:28 ` [PATCH v10 06/12] clk: zte: Add regmap-based clocks Stefan Dösinger
2026-08-10 7:10 ` sashiko-bot
2026-08-09 21:28 ` [PATCH v10 07/12] clk: zte: Add zx PLL support infrastructure Stefan Dösinger
2026-08-10 7:13 ` sashiko-bot
2026-08-10 21:56 ` Brian Masney
2026-08-09 21:28 ` [PATCH v10 08/12] clk: zte: Introduce a driver for zx297520v3 top clocks Stefan Dösinger
2026-08-10 7:15 ` sashiko-bot
2026-08-10 21:58 ` Brian Masney
2026-08-09 21:28 ` [PATCH v10 09/12] clk: zte: Introduce a driver for zx297520v3 matrix clocks Stefan Dösinger
2026-08-10 7:14 ` sashiko-bot
2026-08-10 21:59 ` Brian Masney
2026-08-09 21:28 ` [PATCH v10 10/12] clk: zte: Introduce a driver for zx297520v3 LSP clocks Stefan Dösinger
2026-08-10 7:10 ` sashiko-bot
2026-08-10 21:59 ` Brian Masney
2026-08-09 21:28 ` [PATCH v10 11/12] reset: zte: Add a zx297520v3 reset driver Stefan Dösinger
2026-08-10 7:15 ` sashiko-bot
2026-08-10 7:03 ` [PATCH v10 12/12] ARM: dts: zte: Declare zx297520v3 CRM device nodes Stefan Dösinger
2026-08-10 7:11 ` sashiko-bot
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=gxF9XGmoS_qmWIfVagXDVQ@gmail.com \
--to=stefandoesinger@gmail.com \
--cc=bmasney@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=mfd@lists.linux.dev \
--cc=mturquette@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=vkoul@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