From: Krzysztof Kozlowski <krzk@kernel.org>
To: Gary Yang <gary.yang@cixtech.com>,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
p.zabel@pengutronix.de, peter.chen@cixtech.com,
unicorn_wang@outlook.com, inochiama@gmail.com, alchark@gmail.com
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
cix-kernel-upstream@cixtech.com
Subject: Re: [PATCH v8 2/3] reset: add Sky1 soc reset support
Date: Mon, 9 Feb 2026 12:35:26 +0100 [thread overview]
Message-ID: <656acb84-ed6d-4251-8f0d-ef5602d3bf19@kernel.org> (raw)
In-Reply-To: <20260209093344.2013693-3-gary.yang@cixtech.com>
On 09/02/2026 10:33, Gary Yang wrote:
> +static int sky1_system_control_probe(struct platform_device *pdev)
> +{
> + struct device *dev = &pdev->dev;
> + const struct mfd_cell *cell =
> + (struct mfd_cell *)of_device_get_match_data(dev);
> +
> + return mfd_add_devices(dev, PLATFORM_DEVID_NONE, cell, 1, NULL, 0, NULL);
> +}
> +
> +static const struct of_device_id sky1_system_control_of_match[] = {
> + { .compatible = "cix,sky1-system-control",
> + .data = sky1_system_control_devs},
> + { .compatible = "cix,sky1-s5-system-control",
> + .data = sky1_s5_system_control_devs},
> + {},
> +};
> +MODULE_DEVICE_TABLE(of, sky1_system_control_of_match);
> +
> +static struct platform_driver sky1_system_control_driver = {
> + .driver = {
> + .name = "sky1-system-control",
> + .of_match_table = sky1_system_control_of_match,
> + },
> + .probe = sky1_system_control_probe,
I do not understand why do you need thish driver in the first place.
It's completely empty - just spawns reset driver, so you only need a
reset driver.
Layers of indirection are never helpful.
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-02-09 11:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 9:33 [PATCH v8 0/3] Add support for Cix Sky1 resets Gary Yang
2026-02-09 9:33 ` [PATCH v8 1/3] dt-bindings: soc: cix: document the simple-mfd syscon on Sky1 SoC Gary Yang
2026-02-09 10:11 ` Philipp Zabel
2026-02-09 11:34 ` Krzysztof Kozlowski
2026-02-10 3:37 ` 回复: " Gary Yang
2026-02-10 7:32 ` Krzysztof Kozlowski
2026-02-10 8:57 ` 回复: " Gary Yang
2026-02-09 9:33 ` [PATCH v8 2/3] reset: add Sky1 soc reset support Gary Yang
2026-02-09 11:30 ` Philipp Zabel
2026-02-11 1:56 ` 回复: " Gary Yang
2026-02-11 10:22 ` Philipp Zabel
2026-02-20 12:50 ` 回复: " Gary Yang
2026-02-09 11:35 ` Krzysztof Kozlowski [this message]
2026-02-10 9:19 ` Gary Yang
2026-02-09 9:33 ` [PATCH v8 3/3] arm64: dts: cix: add support for cix sky1 resets Gary Yang
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=656acb84-ed6d-4251-8f0d-ef5602d3bf19@kernel.org \
--to=krzk@kernel.org \
--cc=alchark@gmail.com \
--cc=cix-kernel-upstream@cixtech.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gary.yang@cixtech.com \
--cc=inochiama@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=peter.chen@cixtech.com \
--cc=robh@kernel.org \
--cc=unicorn_wang@outlook.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