Received: by 2002:a05:7208:13ca:b0:7f:395a:35b6 with SMTP id r10csp380rbe; Wed, 28 Feb 2024 08:46:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW11MBvoK19Z4BZOWhrjkEiDN2+djJPkT9IQrLcDZiUOD0yEeHJCmiQdjU82Ufe4CRm4sJenzevUL5GCcfZGenMMIpO1CvvgIY1Ve0b8w== X-Google-Smtp-Source: AGHT+IGewDGjXyS9r1nY9Q4GmH147Qa8Jpn/Yr8zhD6ytNR1wMLQ/61TyipudJsV7HpBtbcJyJ8C X-Received: by 2002:a05:6a20:762a:b0:1a0:d25b:aaac with SMTP id m42-20020a056a20762a00b001a0d25baaacmr3848218pze.32.1709138777916; Wed, 28 Feb 2024 08:46:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709138777; cv=pass; d=google.com; s=arc-20160816; b=iN2yHgNtUn7x6qYNaPGs/RUT0qN3Uk4hVMfViF/wf8fCYy3zoZwRoej4XBUn/A0IBi tge0cLWq0G4Xah3NcYpCjluJT6Veg3wQwWF8JiFxjtZo+f2y0hOUuc4dt/Y4btqwM58O 8v2h1qNdaMTsK7o75z1NsdUAD1riHwFmLtBY6szGdBcTQciUcDHE2QOY/OeAXWB562tf OiJ9meT09ruglCLKylzylte42RCt8F9VP+ghZfbM5MN2MOj4MQROErFUrYaX/6HImQOG 2rXTc9SAVO9tJs6bx+S3x0AVhdRv0c4maKqjK6unovs7Dtbi72b3JKCl1QLug7X3kqGB Yz0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=G5iaHTW6j0pOTAds7hsRlC/3TCFxll09hDy9OwKA67A=; fh=kIU2Sg/YLdCJBlHvhFjC/xrDxGo1swK5QLrlybDdiqA=; b=M3xMvMp9dmRDAWTEq4V/RB3jWm5u9hygBoZtpl5+tRKFZLV/NXOCzUYo2F8Yv/eD8v juFXXgPK8z9BKt7fKu5UPh6ALbiLj9s+CvUJKbLj6kfxti/++O9sH8c1FH7bjr7WlVNo ZLTX4PSkMB9RbHDPod3MVmspmaVFgHV+98CUl4oxRU1Ja5I58FEF2LNnEXmeJB4m4wJZ TLSxR+VdNFPuwti46tb1ozH6D4CGBXKZ2HD+pmeW6TlEhLRgL4t4FvYrw/K4ncNH0gce 2yv7dkbYPdAujZP41docOWrzRgDlRrZX1gPb3Q7uKT6oCab9AdI8fJSGDgbXeIdkE5Lq j41g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-85363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85363-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e2-20020a63f542000000b005dc48468987si7660222pgk.754.2024.02.28.08.46.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 08:46:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-85363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85363-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4B2A028CFD7 for ; Wed, 28 Feb 2024 16:27:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8ECC03FBA5; Wed, 28 Feb 2024 16:26:50 +0000 (UTC) Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 466F120DD5; Wed, 28 Feb 2024 16:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709137610; cv=none; b=WG1R80tsZPUrym1b77/VK0NhGVDKJMWQfYVEMAfreJ/q1/RqGMMUnYLNIKbQVnf+QE8baWyXG562gunDmKZ5lk6iWocIBX5ce1fuSiYS438bqt2eeg7PrCqsVuLVzx9USZGD1jJ1S3haoKjtzc81G0Prq/CpVHRKe1/7d3dC190= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709137610; c=relaxed/simple; bh=i0uJzDDNx/9MRtcLNxLIpGvbtgkEiz4pwvdJzLFqJh8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=l51WB6c4hbQ0C5YQUL7fJFjx0wJ0n+cBM6XzQnJHloo/AGeWOtfGvcdzTEHvt/2Ph3maHuVg5e0oyiQkd99tG84ahxgYxMEGcdVl6l+QPkIBkjGSYObtQOz1G7/0aBHWvc7klqs2bd97Q88N2LGaD3RTiAyzwm5Z9H/ukMBCqZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [192.168.0.53] (ip5f5aedb1.dynamic.kabel-deutschland.de [95.90.237.177]) (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) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id F2C2D61E5FE04; Wed, 28 Feb 2024 17:25:44 +0100 (CET) Message-ID: <35dcecdd-ee19-40d6-80ab-5eed9718e639@molgen.mpg.de> Date: Wed, 28 Feb 2024 17:25:44 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Commit messages (was: [PATCH v4 3/3] hwmon: Driver for Nuvoton NCT7363Y) Content-Language: en-US To: Guenter Roeck Cc: Ban Feng , jdelvare@suse.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, corbet@lwn.net, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, kcfeng0@nuvoton.com, kwliu@nuvoton.com, openbmc@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, DELPHINE_CHIU@wiwynn.com, naresh.solanki@9elements.com, billy_tsai@aspeedtech.com References: <20240227005606.1107203-1-kcfeng0@nuvoton.com> <20240227005606.1107203-4-kcfeng0@nuvoton.com> <62f38808-7d5f-4466-a65e-b6a64b2e7c01@molgen.mpg.de> <4b06d535-6739-47b5-ad1e-0ff94322620e@roeck-us.net> <24ee4bf3-aa91-483d-a9be-5c47e5c37ed7@roeck-us.net> From: Paul Menzel In-Reply-To: <24ee4bf3-aa91-483d-a9be-5c47e5c37ed7@roeck-us.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear Guenter, Thank you for your reply. Am 28.02.24 um 17:03 schrieb Guenter Roeck: > On 2/28/24 03:03, Paul Menzel wrote: >> Am 28.02.24 um 10:03 schrieb Guenter Roeck: >>> On 2/27/24 23:57, Paul Menzel wrote: >> >>>> Am 27.02.24 um 01:56 schrieb baneric926@gmail.com: >>>>> From: Ban Feng >>>>> >>>>> NCT7363Y is an I2C based hardware monitoring chip from Nuvoton. >>>> >>>> Please reference the datasheet. >>> >>> Note that something like >>> >>> Datasheet: Available from Nuvoton upon request >>> >>> is quite common for hardware monitoring chips and acceptable. >> >> Yes, it would be nice to document it though. (And finally for vendors >> to just make them available for download.) > > Nuvoton is nice enough and commonly makes datasheets available on request. > The only exception I have seen so far is where they were forced into an NDA > by a large chip and board vendor, which prevented them from publishing a > specific datasheet. Nice, that they are better in this regard than others. > Others are much worse. Many PMIC vendors don't publish their datasheets at > all, and sometimes chips don't even officially exist (notorious for chips > intended for the automotive market). Just look at the whole discussion > around MAX31335. > > Anyway, there are lots of examples in Documentation/hwmon/. I don't see > the need to add further documentation, and I specifically don't want to > make it official that "Datasheet not public" is acceptable as well. > We really don't have a choice unless we want to exclude a whole class > of chips from the kernel, but that doesn't make it better. I know folks figure it out eventually, but I found it helpful to have the datesheet name in the commit message to know what to search for, ask for, or in case of difference between datasheet revision what to compare against. >>>> Could you please give a high level description of the driver design? >>> >>> Can you be more specific ? I didn't have time yet to look into details, >>> but at first glance this looks like a standard hardware monitoring >>> driver. >>> One could argue that the high level design of such drivers is described >>> in Documentation/hwmon/hwmon-kernel-api.rst. >>> >>> I don't usually ask for a additional design information for hwmon drivers >>> unless some chip interaction is unusual and needs to be explained, >>> and then I prefer to have it explained in the code. Given that, I am >>> quite curious and would like to understand what you are looking for. >> For a 10+ lines commit, in my opinion the commit message should say >> something about the implementation. Even it is just, as you wrote, a >> note, that it follows the standard design. > > Again, I have not looked into the submission, but usually we ask for that > to be documented in Documentation/hwmon/. I find that much better than > a soon-to-be-forgotten commit message. I don't mind something like > "The NCT7363Y is a fan controller with up to 16 independent fan input >  monitors and up to 16 independent PWM outputs. It also supports up >  to 16 GPIO pins" > or in other words a description of the chip, not the implementation. > That a driver hwmon driver uses the hardware monitoring API seems to be > obvious to me, so I don't see the value of adding it to the commit > description. I would not mind having something there, but I don't > see it as mandatory. > > On the  other side, granted, that is just _my_ personal opinion. > Do we have a common guideline for what exactly should be in commit > descriptions for driver submissions ? I guess I should look that up. `Documentation/hwmon/submitting-patches.rst` refers to `Documentation/process/submitting-patches.rst`, and there *Describe your changes* seems to have been written for documenting bug fixes or enhancements and not new additions. It for example contains: > Once the problem is established, describe what you are actually doing > about it in technical detail. It's important to describe the change > in plain English for the reviewer to verify that the code is behaving > as you intend it to. I agree with your description, but I am also convinced if you write 500 lines of code, that you can write ten lines of commit messages giving a broad overview. In this case, saying that it follows the standard driver model would be good enough for me. Also, at least for me, often having to bisect stuff and using `git blame` to look at old commits, commit messages are very valuable to me, and not “forgotten”. ;-) Kind regards, Paul