From: WANG Xuerui <kernel@xen0n.name>
To: Yinbo Zhu <zhuyinbo@loongson.cn>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Huacai Chen <chenhuacai@kernel.org>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
Jianmin Lv <lvjianmin@loongson.cn>, Yun Liu <liuyun@loongson.cn>,
Yang Li <yang.lee@linux.alibaba.com>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
loongarch@lists.linux.dev
Subject: Re: [PATCH v1 1/2] clocksource: loongson2_hpet: add hpet driver support
Date: Fri, 30 Sep 2022 22:43:04 +0800 [thread overview]
Message-ID: <bc62d053-1e26-d7b7-3611-f0c9237d86f3@xen0n.name> (raw)
In-Reply-To: <20220930093510.10781-1-zhuyinbo@loongson.cn>
Hi,
On 9/30/22 17:35, Yinbo Zhu wrote:
> HPET (High Precision Event Timer) defines a new set of timers, which
> are used by the operating system to schedule threads, interrupt the
> kernel and interrupt the multimedia timer server. The operating
> system can assign different timers to different applications. By
> configuration, each timer can generate interrupt independently.
>
> The loongson2 HPET module includes a main count and three comparators
> , all of which are 32 bits wide. Among the three comparators, only
> one comparator supports periodic interrupt, all three comparators
> support non periodic interrupts.
>
> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
> ---
> MAINTAINERS | 6 +
> arch/loongarch/kernel/time.c | 3 +
> drivers/clocksource/Kconfig | 9 +
> drivers/clocksource/Makefile | 1 +
> drivers/clocksource/loongson2_hpet.c | 332 +++++++++++++++++++++++++++
> 5 files changed, 351 insertions(+)
> create mode 100644 drivers/clocksource/loongson2_hpet.c
Thanks for the contribution, but as HPET is a fairly common peripheral
that have well standardized behavior, why not simply add DT support to
the drivers/char/hpet.c and be done with it?
--
WANG "xen0n" Xuerui
Linux/LoongArch mailing list: https://lore.kernel.org/loongarch/
next prev parent reply other threads:[~2022-09-30 14:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-30 9:35 [PATCH v1 1/2] clocksource: loongson2_hpet: add hpet driver support Yinbo Zhu
2022-09-30 9:35 ` [PATCH v1 2/2] dt-bindings: hpet: add loongson2k hpet binding Yinbo Zhu
2022-09-30 9:58 ` Krzysztof Kozlowski
2022-10-08 3:21 ` Yinbo Zhu
2022-10-09 15:14 ` Krzysztof Kozlowski
2022-09-30 14:43 ` WANG Xuerui [this message]
2022-10-08 2:59 ` [PATCH v1 1/2] clocksource: loongson2_hpet: add hpet driver support Yinbo Zhu
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=bc62d053-1e26-d7b7-3611-f0c9237d86f3@xen0n.name \
--to=kernel@xen0n.name \
--cc=chenhuacai@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=jiaxun.yang@flygoat.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liuyun@loongson.cn \
--cc=loongarch@lists.linux.dev \
--cc=lvjianmin@loongson.cn \
--cc=robh+dt@kernel.org \
--cc=tglx@linutronix.de \
--cc=yang.lee@linux.alibaba.com \
--cc=zhuyinbo@loongson.cn \
/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;
as well as URLs for NNTP newsgroup(s).