From: Zhou Yanjie <zhouyanjie@wanyeetech.com>
To: Stephen Boyd <sboyd@kernel.org>, linux-clk@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
mturquette@baylibre.com, robh+dt@kernel.org,
dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com,
rick.tyliu@ingenic.com, yanfei.li@ingenic.com,
sernia.zhou@foxmail.com, zhenwenjin@gmail.com,
paul@crapouillou.net
Subject: Re: [PATCH v12 5/7] clk: Ingenic: Add CGU driver for X1830.
Date: Thu, 28 May 2020 10:14:36 +0800 [thread overview]
Message-ID: <22e6a7a2-36fd-96ea-9084-8fac50b8c6b6@wanyeetech.com> (raw)
In-Reply-To: <159062842562.69627.2356351510003565560@swboyd.mtv.corp.google.com>
Hi Stephen,
在 2020/5/28 上午9:13, Stephen Boyd 写道:
> Quoting Zhou Yanjie (2020-05-27 10:56:33)
>> diff --git a/drivers/clk/ingenic/x1830-cgu.c b/drivers/clk/ingenic/x1830-cgu.c
>> new file mode 100644
>> index 000000000000..29a637f4a2cc
>> --- /dev/null
>> +++ b/drivers/clk/ingenic/x1830-cgu.c
>> @@ -0,0 +1,443 @@
>> +// SPDX-License-Identifier: GPL-2.0
>> +/*
>> + * X1830 SoC CGU driver
>> + * Copyright (c) 2019 \u5468\u7430\u6770 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
>> + */
>> +
>> +#include <linux/clk-provider.h>
>> +#include <linux/delay.h>
> Add linux/io.h here.
Sure.
>> +#include <linux/of.h>
>> +
>> +#include <dt-bindings/clock/x1830-cgu.h>
>> +
>> +#include "cgu.h"
> [...]
>> + return;
>> + }
>> +
>> + ingenic_cgu_register_syscore_ops(cgu);
>> +}
>> +CLK_OF_DECLARE_DRIVER(x1830_cgu, "ingenic,x1830-cgu", x1830_cgu_init);
> Same question about why this is DECLARE_DRIVER.
CGU has some children devices, this is useful for probing children
devices in the case where the device node is compatible with
"simple-mfd" (see commit 03d570e1a4dc for a reference).
Thanks and best regards!
next prev parent reply other threads:[~2020-05-28 2:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-27 17:56 [PATCH v12 0/7] Add support for the X1830 and fix bugs for X1000 周琰杰 (Zhou Yanjie)
2020-05-27 17:56 ` [PATCH v12 1/7] clk: Ingenic: Remove unnecessary spinlock when reading registers 周琰杰 (Zhou Yanjie)
2020-05-27 17:56 ` [PATCH v12 2/7] clk: Ingenic: Adjust cgu code to make it compatible with X1830 周琰杰 (Zhou Yanjie)
2020-05-27 17:56 ` [PATCH v12 3/7] dt-bindings: clock: Add documentation for X1830 bindings 周琰杰 (Zhou Yanjie)
2020-05-27 17:56 ` [PATCH v12 4/7] dt-bindings: clock: Add X1830 clock bindings 周琰杰 (Zhou Yanjie)
2020-05-27 17:56 ` [PATCH v12 5/7] clk: Ingenic: Add CGU driver for X1830 周琰杰 (Zhou Yanjie)
2020-05-28 1:13 ` Stephen Boyd
2020-05-28 2:14 ` Zhou Yanjie [this message]
2020-05-27 17:56 ` [PATCH v12 6/7] dt-bindings: clock: Add and reorder ABI for X1000 周琰杰 (Zhou Yanjie)
2020-05-27 17:56 ` [PATCH v12 7/7] clk: X1000: Add FIXDIV for SSI clock of X1000 周琰杰 (Zhou Yanjie)
2020-05-28 1:12 ` Stephen Boyd
2020-05-28 2:13 ` Zhou Yanjie
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=22e6a7a2-36fd-96ea-9084-8fac50b8c6b6@wanyeetech.com \
--to=zhouyanjie@wanyeetech.com \
--cc=aric.pzqi@ingenic.com \
--cc=devicetree@vger.kernel.org \
--cc=dongsheng.qiu@ingenic.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=paul@crapouillou.net \
--cc=rick.tyliu@ingenic.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=sernia.zhou@foxmail.com \
--cc=yanfei.li@ingenic.com \
--cc=zhenwenjin@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