Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3786369rwb; Fri, 30 Sep 2022 08:17:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4i2p353BoNIvJKC0MFTKpgLlDlzrLcTSIV+WPkUNr91sIFMPngHYTj2qlm3Rv/Oy/1UkEv X-Received: by 2002:a17:907:60c7:b0:783:4fe0:dad0 with SMTP id hv7-20020a17090760c700b007834fe0dad0mr6953083ejc.342.1664551067320; Fri, 30 Sep 2022 08:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664551067; cv=none; d=google.com; s=arc-20160816; b=enz885VZrKsFG7RLqK/9qNFpRLpHkx5f0iGB7KbfCNgSk9piVRN446Mt9gIXxAVHm+ dhPcWHVVN+xQ0QTnr7aaxL7LxuFI3ga7uMRQpoMXbWGx9CeaMzZ3qDjRAKZaGMfVldJN y1zW99MsnoLa8Z0yGAk1KaNmKUvht/0aXTY0/LgucLnu7D8234hAjzY9E4id42kKhtw+ +Q1kDWms7/dgIYNDGajEbCEYC1/hj0DZkxwU281pQJgT1a6uwFiW9hkqu82kTqbuhTij VLyj+yRM2jtcrq88LEuwjkhdrxS12PlJmnwrVh33DAQoCLv59X2UB2yvYJKzCl1rciB4 Vt7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=cALuJSIoi/TrXoUBv2fRMrmm7tytLkAviKFp2UDbGzE=; b=xo0Czxe/I7vU6roA0NV7JyQcUiNsTtm7lNNNy02GwRb5gpfX+/kTEFm+lDWyR706NM ZJ9XyKHfWManqmmGYktg5lTHGKA/2k6U1vZtXk6rAyPP9dkjLZ6KW9BKbDvtoC2Bq7LI OWqXC1Yn7HOQ0mFwuvrILVdDR7rLpUj8wgWpRUsehoObbiFrfGab8B2dEp2IPcSKIf+0 4WHvVo/l7EIlO+TI1wghIseiGJcpyhTCe+OPmymnocLmTXix5SW9X+LU5+XMttiZ5/yB Jmvp3dt/jdybt/BSLR6gXMrzwCfYplFrkSAMeGtZiikYSFZLC6CGgyp4o3/6c/iUFRw4 4jTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=miPn2lcz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hk14-20020a170906c9ce00b00780af308970si1778847ejb.185.2022.09.30.08.17.21; Fri, 30 Sep 2022 08:17:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=miPn2lcz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231237AbiI3OnN (ORCPT + 99 others); Fri, 30 Sep 2022 10:43:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbiI3OnK (ORCPT ); Fri, 30 Sep 2022 10:43:10 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0750310AB0A; Fri, 30 Sep 2022 07:43:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1664548985; bh=+6qTIFFJKA3rP5CBKrEGP9nTyy0TCuPtEQRDHlQDQBg=; h=Date:Subject:To:References:From:In-Reply-To:From; b=miPn2lcznclcMGrbjklHkagM1M++XmC4PMekCkrtWMhqTgzqizH11cubsnsI4fjhO MaHAsKUMXHYaLaDsa4v9A1bh1kJfVA3mnR7AL4pTH/lYdc0RepeXoGMXunBnigPnb6 /bNdXEVnqsnVSrkLOUjv2bnnm4v6SSl8KZC+ABNY= Received: from [192.168.9.172] (unknown [101.228.138.200]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 6C470600F8; Fri, 30 Sep 2022 22:43:05 +0800 (CST) Message-ID: Date: Fri, 30 Sep 2022 22:43:04 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:107.0) Gecko/20100101 Thunderbird/107.0a1 Subject: Re: [PATCH v1 1/2] clocksource: loongson2_hpet: add hpet driver support Content-Language: en-US To: Yinbo Zhu , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Huacai Chen , Jiaxun Yang , Jianmin Lv , Yun Liu , Yang Li , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, loongarch@lists.linux.dev References: <20220930093510.10781-1-zhuyinbo@loongson.cn> From: WANG Xuerui In-Reply-To: <20220930093510.10781-1-zhuyinbo@loongson.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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/