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 7C4E5C7EE31 for ; Tue, 28 Feb 2023 01:58:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229862AbjB1B6I (ORCPT ); Mon, 27 Feb 2023 20:58:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbjB1B6G (ORCPT ); Mon, 27 Feb 2023 20:58:06 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86CC77DBD; Mon, 27 Feb 2023 17:58:03 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 4649624E36E; Tue, 28 Feb 2023 09:57:57 +0800 (CST) Received: from EXMBX172.cuchost.com (172.16.6.92) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 28 Feb 2023 09:57:57 +0800 Received: from [192.168.125.82] (113.72.145.171) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 28 Feb 2023 09:57:56 +0800 Message-ID: Date: Tue, 28 Feb 2023 09:57:55 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v5 2/2] hwmon: (sfctemp) Add StarFive JH71x0 temperature sensor Content-Language: en-US To: Conor Dooley CC: , , , , Jean Delvare , Guenter Roeck , Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Paul Walmsley" , Palmer Dabbelt , Albert Ou , Emil Renner Berthing , Samin Guo , References: <20230227134125.120638-1-hal.feng@starfivetech.com> <20230227134125.120638-3-hal.feng@starfivetech.com> From: Hal Feng In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.145.171] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX172.cuchost.com (172.16.6.92) X-YovoleRuleAgent: yovoleflag Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Feb 2023 14:03:26 +0000, Conor Dooley wrote: > On Mon, Feb 27, 2023 at 09:41:25PM +0800, Hal Feng wrote: >> From: Emil Renner Berthing >> >> Add driver for the StarFive JH71x0 temperature sensor. You >> can enable/disable it and read temperature in milli Celcius >> through sysfs. >> >> Signed-off-by: Emil Renner Berthing >> Co-developed-by: Samin Guo >> Signed-off-by: Samin Guo >> Signed-off-by: Hal Feng > >> +config SENSORS_SFCTEMP >> + tristate "Starfive JH71x0 temperature sensor" >> + depends on SOC_STARFIVE || COMPILE_TEST > > We (or I?) am trying to homogenise RISC-V with the rest of the kernel by > using ARCH_FOO rather than SOC_FOO. We've currently got a mix of both, > due to companies that started out with RISC-V having SOC_ symbols & > those with history in other archs having ARCH_ ones. > The ARCH_ definitions landed in mainline this week, so if you end up > resubmitting this driver, it'd save me a conversion if you were to use > the ARCH_ variant. Got it. I will use the ARCH_ symbol instead in the next version. Thanks. Best regards, Hal > >> + help >> + If you say yes here you get support for temperature sensor >> + on the Starfive JH71x0 SoCs. >> + >> + This driver can also be built as a module. If so, the module >> + will be called sfctemp.