Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1413986lql; Tue, 12 Mar 2024 17:22:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSnJ2Xs+d4N6Y/NyYwP7vxszE5p4qCVVY3DcXe2+edlffwFfZBSpKrrQME9hn9iy1df9uLKuUt2te3m/qcOyzfv6Bvz2Vs69OJ4DEeQw== X-Google-Smtp-Source: AGHT+IFc8MzUAHapFTDg2ccLVjScVBQEJf3TtprH3b/Y6SATbb0s1/26kSgQnXpYKmhsVXYtmhta X-Received: by 2002:a17:90a:9907:b0:29b:6f5a:4db5 with SMTP id b7-20020a17090a990700b0029b6f5a4db5mr1773620pjp.24.1710289371419; Tue, 12 Mar 2024 17:22:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710289371; cv=pass; d=google.com; s=arc-20160816; b=Ky0eXh6H8kPctqp0VJ0CeQWQF1zfo6S5gP+uV77JiIQfXt6QLkmc9Hucmtm8CSB2eM GyPtROHSL7gvoB5ZC+6JjmscKen2dLEzYCY2GQz6z931IOnu6GwQzBdn9lBSlfVdCXzY SbD+nwWTa2YhJY4zeRcwplkoIPDVxZeJuUplPhcZVNc38sEvOPfIXGwfqC17JV8pUtXy PisHZ2ut7ZVo3eQFpHXrhYHQuLehie1W0aAOuQfyWiD3SqgzEWnhOGsHKyxs414rW0mZ u81ZIWHpBZNscIwxVLIk4HvpYCqRIWayE+3rb1/fNk6P/zPxliixe8+H7WTcf7xZa6z/ kyew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EY/zd3I+RDkhsnrVHS1RIaB8erXsoc+pY5+WBGfC1kg=; fh=kIU2Sg/YLdCJBlHvhFjC/xrDxGo1swK5QLrlybDdiqA=; b=cufqvhVYLcKzliyiSEhI+TisAC1QyoUAO027hbZC8KVuVOKRHl2ZMqOHzFLMy5jX/C /tsMtpo6NZBbvRWuN2BofOmitc64l1yhelwbnfegkS7z9nUFhZeS9TuP8YOeLyHNBozG OIYl4sah70x71mJ3qqsZCOT0cUdmrATL7PJ38AnnNJDAb2t0os9J5qeTDHuaRfahQvfJ wn9Pjurz/j7dup+UFbdSV6W3wDyqELyMEre4RGjm+J21xKLl/DdP/Vf8AdY1VcgzGyRF GpTvJUebsIGXtHK8tdIWyf8pgaRBg9bLo+Ja+FcD11oFzwZSjm88Fc/CGfGXu+4GKY9F /4tw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=f9DdHUoU; arc=pass (i=1 spf=pass spfdomain=bewilderbeest.net dkim=pass dkdomain=bewilderbeest.net dmarc=pass fromdomain=bewilderbeest.net); spf=pass (google.com: domain of linux-kernel+bounces-100960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ip9-20020a17090b314900b0029bbdee09a2si335457pjb.151.2024.03.12.17.22.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 17:22:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=f9DdHUoU; arc=pass (i=1 spf=pass spfdomain=bewilderbeest.net dkim=pass dkdomain=bewilderbeest.net dmarc=pass fromdomain=bewilderbeest.net); spf=pass (google.com: domain of linux-kernel+bounces-100960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9E124B21E7A for ; Wed, 13 Mar 2024 00:21:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EEC0A31; Wed, 13 Mar 2024 00:21:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.b="f9DdHUoU" Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [71.19.156.171]) (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 16785182; Wed, 13 Mar 2024 00:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=71.19.156.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710289273; cv=none; b=fbSb20656YdZ3uAhXoKRYf8JtitZtuRapcxzWBcIw6CVX77t0BWyMGY3mMg3hEd3v4Pm84aRsV9BJ0cAr6yHqJK3klajnoZKDNcrgWOyLn53W+35TsQD8zTyrdADp+XOmujSRMYPbVUP+Ffs7hjsw3WnZ3ly8msgLq1N07TuMSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710289273; c=relaxed/simple; bh=h+oGPjpyxC+yBzEporjFKDQteq5fynJ48ffEoR1vIR4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TTaj+JznHMZHxlS7ch4CAPdRRBH9Jtkj+BzXi1BdMrgmBBJbKdEWoRGL85uD1xX2c59csYhR8i4P7qncQk46C00cKX2BNvUv5MohtXj3hNNYdmGBFyXk/Pk4yJo3/K3ug4S+WtGcoHRWTdatvy0zJQPxgEPpLJ9whf0jfcD5j60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bewilderbeest.net; spf=pass smtp.mailfrom=bewilderbeest.net; dkim=pass (1024-bit key) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.b=f9DdHUoU; arc=none smtp.client-ip=71.19.156.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bewilderbeest.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bewilderbeest.net Received: from hatter.bewilderbeest.net (unknown [IPv6:2602:61:712b:6300::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id D3F332DE; Tue, 12 Mar 2024 17:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1710289271; bh=EY/zd3I+RDkhsnrVHS1RIaB8erXsoc+pY5+WBGfC1kg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f9DdHUoUtrWwcxgHL4/JdBEBFZ67mPjYGk9o05HF1yu0zdlS+3LN99ssYeNyYPP0D 6hRiHalXht50T7hyVNipc/S/P+wtzUBFciIctR2gYVf7WPaZFg+SUAlXhC08iddTTr R/bW6yxuBVeNIpEAGHp+U3e37eeLd08dfSSGWqEc= Date: Tue, 12 Mar 2024 17:21:09 -0700 From: Zev Weiss 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 Subject: Re: [PATCH v4 3/3] hwmon: Driver for Nuvoton NCT7363Y Message-ID: References: <20240227005606.1107203-1-kcfeng0@nuvoton.com> <20240227005606.1107203-4-kcfeng0@nuvoton.com> <37e11daa-c24e-45b2-a22d-769693fd2038@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <37e11daa-c24e-45b2-a22d-769693fd2038@roeck-us.net> On Tue, Mar 12, 2024 at 04:58:12PM PDT, Guenter Roeck wrote: >On 3/12/24 16:18, Zev Weiss wrote: >>On Wed, Mar 06, 2024 at 11:35:31PM PST, Ban Feng wrote: >>>Hi Zev, >>> >>>On Sat, Mar 2, 2024 at 4:19 PM Zev Weiss wrote: >>>> >>>>On Mon, Feb 26, 2024 at 04:56:06PM PST, baneric926@gmail.com wrote: >>>>>From: Ban Feng >>>>> >>>>>NCT7363Y is an I2C based hardware monitoring chip from Nuvoton. >>>>> >>>>>Signed-off-by: Ban Feng >>>>>--- >> >> >> >>>>>+ >>>>>+static const struct of_device_id nct7363_of_match[] = { >>>>>+      { .compatible = "nuvoton,nct7363" }, >>>> >>>>As far as I can see from the code in this driver, it looks like this >>>>driver should also be compatible with the nct7362; shall we add the ID >>>>table entry for it now?  (Though I only have a datasheet for the >>>>nct7362, not the nct7363, so I don't know exactly how they differ.) >>> >>>As far as I know, the difference between these two ICs is 0x2A~0x2C >>>Fading LED for 7362, and 0x2A Watchdog Timer for 7363. >>>In my v1 patch, I indeed add the nct7362 to the ID table, however, >>>this makes it more complicated and our datasheet isn't public yet. >>>I think maybe supporting more chips will be done in the future, but not now. >>> >> >>If the only differences are in features the driver doesn't utilize, I'm not clear on how it adds any complexity.  As far as I'm aware, neither datasheet is public (NCT7363 nor NCT7362), so if we're going to have a public driver for one, why not also do so for the other?  It's a single additional line -- and furthermore, having made that change and tested it out, I can report that the driver seems to work just fine on NCT7362 hardware as well. >> > >"if we're going to have a public driver for one, why not also do so for the other" > >If you are trying to say that there should be two separate drivers, sorry, that >would be absolutely unacceptable. > Sorry if that was unclear -- it was very much *not* my intent to suggest adding a separate driver, merely that we make the nct7363 driver also support the nct7362. Zev