From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27076EB64D9 for ; Sat, 17 Jun 2023 03:25:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233805AbjFQDZu (ORCPT ); Fri, 16 Jun 2023 23:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbjFQDZp (ORCPT ); Fri, 16 Jun 2023 23:25:45 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AC9082D5D; Fri, 16 Jun 2023 20:25:42 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8Cx8Oi1J41kVTIGAA--.11243S3; Sat, 17 Jun 2023 11:25:41 +0800 (CST) Received: from [10.20.42.35] (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxG8q0J41kmtwdAA--.10184S3; Sat, 17 Jun 2023 11:25:40 +0800 (CST) Subject: Re: [PATCH v14 1/2] thermal: loongson-2: add thermal management support To: Daniel Lezcano , "Rafael J . Wysocki" , Amit Kucheria , Zhang Rui , Rob Herring , Krzysztof Kozlowski , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn, zhanghongchen , zhuyinbo@loongson.cn References: <20230426062018.19755-1-zhuyinbo@loongson.cn> From: zhuyinbo Message-ID: Date: Sat, 17 Jun 2023 11:25:40 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxG8q0J41kmtwdAA--.10184S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, 在 2023/6/12 下午10:22, Daniel Lezcano 写道: ... >> >> +#define LOONGSON2_SOC_MAX_SENSOR_NUM            4 >> + >> +#define LOONGSON2_TSENSOR_CTRL_HI            0x0 >> +#define LOONGSON2_TSENSOR_CTRL_LO            0x8 >> +#define LOONGSON2_TSENSOR_STATUS            0x10 >> +#define LOONGSON2_TSENSOR_OUT                0x14 > > Please use BIT() macros I learn about that BIT() is generally used to describe the functional bit or control bit or status bits of a register, but these register was some different register offset and not some control bit or status bit So using BIT() here seems a bit inappropriate, Do you think so? Thanks, Yinbo